Changeset 7062 for code/branches/presentation3/src/orxonox/infos
- Timestamp:
- May 31, 2010, 4:55:05 PM (14 years ago)
- Location:
- code/branches/presentation3/src/orxonox/infos
- Files:
-
- 2 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 -
code/branches/presentation3/src/orxonox/infos/GametypeInfo.h
r7031 r7062 64 64 void sendKillMessage(const std::string& message, unsigned int clientID); 65 65 void sendDeathMessage(const std::string& message, unsigned int clientID); 66 void sendStaticMessage(const std::string& message, unsigned int clientID );66 void sendStaticMessage(const std::string& message, unsigned int clientID, const ColourValue& colour); 67 67 void sendFadingMessage(const std::string& message, unsigned int clientID); 68 68 … … 70 70 void dispatchKillMessage(const std::string& message); 71 71 void dispatchDeathMessage(const std::string& message); 72 void dispatchStaticMessage(const std::string& message );72 void dispatchStaticMessage(const std::string& message,const ColourValue& colour); 73 73 void dispatchFadingMessage(const std::string& message); 74 74
Note: See TracChangeset
for help on using the changeset viewer.