Changeset 7552 for code/trunk/src/modules/notifications
- Timestamp:
- Oct 17, 2010, 10:50:43 PM (14 years ago)
- Location:
- code/trunk/src/modules/notifications
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/notifications/Notification.h
r7489 r7552 49 49 50 50 A Notification is just a datastructure that is used internally by the Notifications module. 51 51 52 @author 52 53 Damian 'Mozork' Frick 54 55 @ingroup Notifications 53 56 */ 54 57 class _NotificationsExport Notification : public OrxonoxClass -
code/trunk/src/modules/notifications/NotificationDispatcher.cc
r7489 r7552 118 118 else if(GameMode::isServer()) 119 119 { 120 //TODO: This may fail if the object has not been synchronized, yet.121 120 callMemberNetworkFunction(NotificationDispatcher, dispatch, this->getObjectID(), clientId, clientId); 122 121 } -
code/trunk/src/modules/notifications/NotificationDispatcher.h
r7488 r7552 39 39 40 40 #include <string> 41 41 42 #include "core/BaseObject.h" 42 43 #include "network/synchronisable/Synchronisable.h" … … 62 63 @endcode 63 64 But keep in mind, that NotificationDispatcher is an abstract class and in this example @ref orxonox::PlayerTrigger "PlayerTrigger" stands for any event that is caused by a @ref orxonox::PlayerTrigger "PlayerTrigger", so instead of @ref orxonox::PlayerTrigger "PlayerTrigger", there could be a @ref orxonox::DistanceTrigger "DistanceTrigger", or a @ref orxonox::DistanceMultiTrigger "DistanceMutliTrigger", or even an @ref orxonox::EventListener "EventListener" that waits for an event coming from any kind of @ref orxonox::PlayerTrigger "PlayerTrigger". 65 64 66 @author 65 67 Damian 'Mozork' Frick 68 69 @ingroup Notifications 66 70 */ 67 71 class _NotificationsExport NotificationDispatcher : public BaseObject, public Synchronisable -
code/trunk/src/modules/notifications/NotificationManager.cc
r7504 r7552 149 149 assert(notification); 150 150 151 std::time_t time = std::time(0); // TODO: Doesn't this expire? //!<Get current time.151 std::time_t time = std::time(0); // Get current time. 152 152 153 153 // Add the Notification to the list that holds all Notifications. -
code/trunk/src/modules/notifications/NotificationManager.h
r7489 r7552 53 53 It receives, organizes @ref orxonox::Notification "Notifications" and the redistributes them to the specific @ref orxonox::NotificationListener "NotificationListeners". 54 54 It also provides a static function to send @ref orxonox::Notification "Notifications" and works as a liaison between the @ref orxonox::NotificationQueue "NotificationQueues" and the GUI that displays notification, called NotificationLayer. 55 55 56 @author 56 57 Damian 'Mozork' Frick 58 59 @ingroup Notifications 57 60 */ 58 61 class _NotificationsExport NotificationManager // tolua_export -
code/trunk/src/modules/notifications/NotificationQueue.h
r7489 r7552 51 51 { // tolua_export 52 52 53 //! Container to allow easy handling. 53 /** 54 @brief 55 Container to allow easy handling of the @ref orxonox::Notification "Notifications". 56 57 @ingroup Notifications 58 */ 54 59 struct NotificationContainer 55 60 { … … 58 63 }; 59 64 60 //! Struct to allow ordering of @ref orxonox::NotificationContainer "NotificationContainers". 65 /** 66 @brief 67 Struct to allow ordering of @ref orxonox::NotificationContainer "NotificationContainers". 68 69 @ingroup Notifications 70 */ 61 71 struct NotificationContainerCompare { 62 72 bool operator() (const NotificationContainer* const & a, const NotificationContainer* const & b) const … … 76 86 @author 77 87 Damian 'Mozork' Frick 88 89 @ingroup Notifications 78 90 */ 79 91 class _NotificationsExport NotificationQueue // tolua_export -
code/trunk/src/modules/notifications/dispatchers/CommandNotification.h
r7489 r7552 60 60 Upon being triggered this would display the @ref orxonox::Notification "Notification" "Please press {the binding of the specified command} to do something". 61 61 For more information on what can be used for @code <PlayerTrigger /> @endcode see the @ref orxonox::NotificationDispatcher "NotificationDispatcher" documentation. 62 62 63 @author 63 64 Damian 'Mozork' Frick 65 66 @ingroup NotificationDispatchers 64 67 */ 65 68 class _NotificationsExport CommandNotification : public NotificationDispatcher -
code/trunk/src/modules/notifications/dispatchers/SimpleNotification.h
r7488 r7552 58 58 @endcode 59 59 For more information on what can be used for @code <PlayerTrigger /> @endcode see the @ref orxonox::NotificationDispatcher "NotificationDispatcher" documentation. 60 60 61 @author 61 62 Damian 'Mozork' Frick 63 64 @ingroup NotificationDispatchers 62 65 */ 63 66 class _NotificationsExport SimpleNotification : public NotificationDispatcher
Note: See TracChangeset
for help on using the changeset viewer.