- Timestamp:
- Sep 23, 2010, 1:00:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/notifications/NotificationDispatcher.h
r7474 r7484 47 47 /** 48 48 @brief 49 A NotificationDispatcher is an entity that, upon being triggered, dispatches (or sends) a specified Notification. 49 A NotificationDispatcher is an entity that, upon being triggered, dispatches (or sends) a specified @ref orxonox::Notification "Notification". 50 51 Its standard usage is: 52 @code 53 <NotificationDispatcher> 54 <events> 55 <trigger> 56 <PlayerTrigger /> 57 </trigger> 58 </event> 59 </NotificationDispatcher> 60 @endcode 61 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". 50 62 @author 51 63 Damian 'Mozork' Frick … … 73 85 std::string sender_; //!< The name of the sender of the Notification dispatched by this NotificationDispatcher. 74 86 75 void registerVariables(void);87 void registerVariables(void); //!< Register some variables for synchronisation. 76 88 77 89 /**
Note: See TracChangeset
for help on using the changeset viewer.