- Timestamp:
- Oct 28, 2006, 10:40:56 PM (18 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/Makefile.am
r9656 r9906 43 43 synchronizeable_var/synchronizeable_uint.cc \ 44 44 synchronizeable_var/synchronizeable_ip.cc \ 45 synchronizeable_var/synchronizeable_classid.cc \ 45 46 \ 46 47 ip.cc … … 94 95 synchronizeable_var/synchronizeable_uint.h \ 95 96 synchronizeable_var/synchronizeable_ip.h \ 97 synchronizeable_var/synchronizeable_classid.h \ 96 98 \ 97 99 ip.h -
branches/network/src/lib/network/message_manager.cc
r9901 r9906 242 242 assert( i + messageLength <= length ); 243 243 // make sure there is a message handler for this message type 244 if ( !( messageHandlerMap.find( (MessageType)messageType ) != messageHandlerMap.end()) )245 {246 PRINTF(0)("messagetype: %d\n", messageType);247 this->objectList().debugAll( 0 );248 }244 //if ( !( messageHandlerMap.find( (MessageType)messageType ) != messageHandlerMap.end()) ) 245 //{ 246 // PRINTF(0)("messagetype: %d\n", messageType); 247 // this->objectList().debugAll( 0 ); 248 // } 249 249 250 250 assert( messageHandlerMap.find( (MessageType)messageType ) != messageHandlerMap.end()); -
branches/network/src/lib/network/network_stream.cc
r9869 r9906 1188 1188 if( NullParent::staticClassID() == leafClassId || Synchronizeable::staticClassID() == leafClassId || NetworkGameManager::staticClassID() == leafClassId) 1189 1189 { 1190 PRINTF( 1)("Don't create Object with ID %x, ignored!\n", (int)leafClassId);1190 PRINTF(0)("Don't create Object with ID %d, ignored!\n", (int)leafClassId); 1191 1191 offset += syncDataLength; 1192 1192 continue; … … 1194 1194 else 1195 1195 ; /// FIXME CLASS_ID :: b = Factory::fabricate( leafClassId ); 1196 1196 b = Factory::fabricate( ObjectListBase::retrieveIdentity( leafClassId ) ); 1197 1197 if ( !b ) 1198 1198 { 1199 PRINTF(1)("Could not fabricate Object with classID % x\n", leafClassId);1199 PRINTF(1)("Could not fabricate Object with classID %d\n", leafClassId); 1200 1200 offset += syncDataLength; 1201 1201 continue; … … 1208 1208 sync->setSynchronized(true); 1209 1209 1210 PRINTF( 0)("Fabricated %s with id %d\n", sync->getClassCName(), sync->getUniqueID());1210 PRINTF(1)("Fabricated %s with id %d\n", sync->getClassCName(), sync->getUniqueID()); 1211 1211 } 1212 1212 else 1213 1213 { 1214 PRINTF(1)("Class with ID % xis not a synchronizeable!\n", (int)leafClassId);1214 PRINTF(1)("Class with ID %d is not a synchronizeable!\n", (int)leafClassId); 1215 1215 delete b; 1216 1216 offset += syncDataLength; -
branches/network/src/lib/network/synchronizeable.cc
r9901 r9906 30 30 31 31 #include "converter.h" 32 33 #include "synchronizeable_var/synchronizeable_classid.h" 32 34 33 35 … … 57 59 assert( syncVarList.size() == 0 ); 58 60 assert( this->getClassID() == this->objectList().id() ); 59 mLeafClassId = this->registerVarId( new SynchronizeableInt( (int*)&leafClassID, (int*)&leafClassID, "leafClassId", PERMISSION_MASTER_SERVER) ); 61 62 mLeafClassId = this->registerVarId( new SynchronizeableClassID( this, "leafClassId", PERMISSION_MASTER_SERVER) ); 60 63 61 64 this->registerVar( new SynchronizeableInt( &this->owner, &this->owner, "owner", PERMISSION_MASTER_SERVER ) );
Note: See TracChangeset
for help on using the changeset viewer.