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/NotificationManager.cc

    r7474 r7484  
    6060    ManageScopedSingleton(NotificationManager, ScopeID::Graphics, false);
    6161
     62    // Setting console command to enter the edit mode.
    6263    SetConsoleCommand("enterEditMode", &NotificationManager::enterEditMode);
    6364
     
    106107    }
    107108
     109    /**
     110    @brief
     111        Sends a Notification with the specified message to the specified client from the specified sender.
     112    @param message
     113        The message that should be sent.
     114    @param clientId
     115        The id of the client the notification should be sent to.
     116    @param sender
     117        The sender that sent the notification.
     118    */
    108119    /*static*/ void NotificationManager::sendNotification(const std::string& message, unsigned int clientId, const std::string& sender)
    109120    {
     121        // If we're in standalone mode or we're already no the right client we create and send the Notification.
    110122        if(GameMode::isStandalone() || Host::getPlayerID() == clientId)
    111123        {
     
    113125            notification->send(sender);
    114126        }
     127        // If we're on the server (and the server is not the intended recipient of the Notification) we send it over the network.
    115128        else if(GameMode::isServer())
    116129        {
Note: See TracChangeset for help on using the changeset viewer.