Changeset 9508 in orxonox.OLD for branches/proxy/src/lib/network/network_game_manager.cc
- Timestamp:
- Jul 27, 2006, 3:37:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_game_manager.cc
r9507 r9508 159 159 /** 160 160 * handler for remove synchronizeable messages 161 * @param message Id161 * @param messageType 162 162 * @param data 163 163 * @param dataLength … … 166 166 * @return true on successfull handling else handler will be called again 167 167 */ 168 bool NetworkGameManager::delSynchronizeableHandler( Message Id messageId, byte * data, int dataLength, void * someData, int userId )168 bool NetworkGameManager::delSynchronizeableHandler( MessageType messageType, byte * data, int dataLength, void * someData, int userId ) 169 169 { 170 170 … … 224 224 /** 225 225 * handler for MSGID_PREFEREDTEAM message 226 * @param message Id226 * @param messageType 227 227 * @param data 228 228 * @param dataLength … … 231 231 * @return 232 232 */ 233 bool NetworkGameManager::preferedTeamHandler( Message Id messageId, byte * data, int dataLength, void * someData, int userId )233 bool NetworkGameManager::preferedTeamHandler( MessageType messageType, byte * data, int dataLength, void * someData, int userId ) 234 234 { 235 235 assert( SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/); … … 314 314 315 315 316 bool NetworkGameManager::chatMessageHandler( Message Id messageId, byte * data, int dataLength, void * someData, int userId )316 bool NetworkGameManager::chatMessageHandler( MessageType messageType, byte * data, int dataLength, void * someData, int userId ) 317 317 { 318 318 PRINTF(0)("NetworkGameManager::chatMessageHandler %d %d\n", userId, SharedNetworkData::getInstance()->getHostID() ); 319 319 if ( (SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/) && userId != SharedNetworkData::getInstance()->getHostID() ) 320 320 { 321 MessageManager::getInstance()->sendMessage( message Id, data, dataLength, RT_ALL_BUT_ME, 0, MP_HIGHBANDWIDTH );321 MessageManager::getInstance()->sendMessage( messageType, data, dataLength, RT_ALL_BUT_ME, 0, MP_HIGHBANDWIDTH ); 322 322 } 323 323 … … 334 334 } 335 335 336 int messageType = 0;337 Converter::byteArrayToInt( data, & messageType);336 int chatType = 0; 337 Converter::byteArrayToInt( data, &chatType); 338 338 int senderUserId = 0; 339 339 Converter::byteArrayToInt( data+INTSIZE, &senderUserId ); … … 341 341 Converter::byteArrayToString( data+2*INTSIZE, message, dataLength-2*INTSIZE ); 342 342 343 rules.handleChatMessage( senderUserId, message, messageType);343 rules.handleChatMessage( senderUserId, message, chatType); 344 344 345 345 return true;
Note: See TracChangeset
for help on using the changeset viewer.