- Timestamp:
- May 31, 2010, 4:55:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/orxonox/infos/GametypeInfo.cc
r7031 r7062 112 112 } 113 113 114 void GametypeInfo::sendStaticMessage(const std::string& message, unsigned int clientID )114 void GametypeInfo::sendStaticMessage(const std::string& message, unsigned int clientID, const ColourValue& colour) 115 115 { 116 116 if (GameMode::isMaster()) 117 117 { 118 118 if (clientID == CLIENTID_SERVER) 119 this->dispatchStaticMessage(message );119 this->dispatchStaticMessage(message, colour); 120 120 else 121 callMemberNetworkFunction(GametypeInfo, dispatchStaticMessage, this->getObjectID(), clientID, message );121 callMemberNetworkFunction(GametypeInfo, dispatchStaticMessage, this->getObjectID(), clientID, message, colour); 122 122 } 123 123 } … … 152 152 } 153 153 154 void GametypeInfo::dispatchStaticMessage(const std::string& message )154 void GametypeInfo::dispatchStaticMessage(const std::string& message, const ColourValue& colour) 155 155 { 156 156 for (ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it) 157 it->staticmessage(this, message );157 it->staticmessage(this, message, colour); 158 158 } 159 159
Note: See TracChangeset
for help on using the changeset viewer.