Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 23, 2010, 1:00:42 PM (14 years ago)
Author:
dafrick
Message:

Doing some documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/notifications/NotificationDispatcher.h

    r7474 r7484  
    4747    /**
    4848    @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".
    5062    @author
    5163        Damian 'Mozork' Frick
     
    7385            std::string sender_; //!< The name of the sender of the Notification dispatched by this NotificationDispatcher.
    7486
    75            void registerVariables(void);
     87            void registerVariables(void); //!< Register some variables for synchronisation.
    7688
    7789            /**
Note: See TracChangeset for help on using the changeset viewer.