Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Doing some documentation.

Location:
code/trunk/src/modules/notifications/dispatchers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/notifications/dispatchers/CommandNotification.cc

    r7474 r7484  
    8080    }
    8181
     82    /**
     83    @brief
     84        Register some variables for synchronisation.
     85    */
    8286    void CommandNotification::registerVariables(void)
    8387    {
  • code/trunk/src/modules/notifications/dispatchers/CommandNotification.h

    r7474 r7484  
    4747        This class implements a method of displaying a Notification with information to an input command and the key the command is mapped to.
    4848        The message that is displayed is a string made out uf the concatenation of the preMessage, the key the specified command is mapped to and the postMessage.
     49
     50        In use it would like this:
     51        @code
     52        <CommandNotification preMessage="Please press " command="someCommand" postMessage=" to do something." >
     53            <events>
     54                <trigger>
     55                    <PlayerTrigger />
     56                </trigger>
     57            </events>
     58        </CommandNotification>
     59        @endcode
     60        Upon being triggered this would display the @ref orxonox::Notification "Notification" "Please press {the binding of the specified command} to do something".
     61        For more information on what can be used for @code <PlayerTrigger /> @endcode see the @ref orxonox::NotificationDispatcher "NotificationDispatcher" documentation.
    4962    @author
    5063        Damian 'Mozork' Frick
     
    8699            std::string postMessage_; //!< The last part of the displayed message.
    87100
    88             void registerVariables(void);
     101            void registerVariables(void); //!< Register some variables for synchronisation.
    89102
    90103            /**
  • code/trunk/src/modules/notifications/dispatchers/SimpleNotification.h

    r7456 r7484  
    4646    @brief
    4747        The SimpleNotification class enables the sending of (in XML) predefined Notifications upon some kind of triggering event.
     48
     49        In use it would like this:
     50        @code
     51        <SimpleNotification message="some message..." >
     52            <events>
     53                <trigger>
     54                    <PlayerTrigger />
     55                </trigger>
     56            </events>
     57        </SimpleNotification>
     58        @endcode
     59        For more information on what can be used for @code <PlayerTrigger /> @endcode see the @ref orxonox::NotificationDispatcher "NotificationDispatcher" documentation.
    4860    @author
    4961        Damian 'Mozork' Frick
Note: See TracChangeset for help on using the changeset viewer.