- Timestamp:
- Sep 23, 2010, 1:00:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/notifications/NotificationManager.cc
r7474 r7484 60 60 ManageScopedSingleton(NotificationManager, ScopeID::Graphics, false); 61 61 62 // Setting console command to enter the edit mode. 62 63 SetConsoleCommand("enterEditMode", &NotificationManager::enterEditMode); 63 64 … … 106 107 } 107 108 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 */ 108 119 /*static*/ void NotificationManager::sendNotification(const std::string& message, unsigned int clientId, const std::string& sender) 109 120 { 121 // If we're in standalone mode or we're already no the right client we create and send the Notification. 110 122 if(GameMode::isStandalone() || Host::getPlayerID() == clientId) 111 123 { … … 113 125 notification->send(sender); 114 126 } 127 // If we're on the server (and the server is not the intended recipient of the Notification) we send it over the network. 115 128 else if(GameMode::isServer()) 116 129 {
Note: See TracChangeset
for help on using the changeset viewer.