Changeset 9907 in orxonox.OLD for branches/network
- Timestamp:
- Oct 28, 2006, 10:52:35 PM (18 years ago)
- Location:
- branches/network/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.cc
r9906 r9907 1193 1193 } 1194 1194 else 1195 ; /// FIXME CLASS_ID :: b = Factory::fabricate( leafClassId);1196 b = Factory::fabricate( ObjectListBase::retrieveIdentity( leafClassId ) );1195 b = Factory::fabricate( ObjectListBase::retrieveIdentity( leafClassId ) ); 1196 1197 1197 if ( !b ) 1198 1198 { -
branches/network/src/lib/network/synchronizeable.cc
r9906 r9907 271 271 // PRINTF(0)("sending %s %d\n", (*it)->getName().c_str(), n); 272 272 273 // if( this->isA( CL_PLAYABLE))273 // if( this->isA( Playable::staticClassID() )) 274 274 // { 275 275 // PRINTF(0)("ms: %i, ps: %i, c: %i, sender: %i, reciever: %i, owner: %i, perm: (ow %i, ms %i, s %i, a %i)\n", … … 457 457 //(*it)->debug(); 458 458 459 // if( this->isA( CL_PLAYABLE))459 // if( this->isA(Playable::staticClassID())) 460 460 // { 461 461 // PRINTF(0)("ms: %i, ps: %i, c: %i, sender: %i, reciever: %i, owner: %i, perm: (ow %i, ms %i, s %i, a %i)\n", -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_classid.cc
r9906 r9907 47 47 { 48 48 int res = Converter::intToByteArray( vPtrIn->getLeafClassID().id(), buf, maxLength ); 49 printf( "%s has id %d\n", vPtrIn->getClassName().c_str(), vPtrIn->getLeafClassID().id() );50 49 51 50 assert( res == INTSIZE ); -
branches/network/src/util/game_rules.cc
r9869 r9907 65 65 PRINTF(4)("Adding Mission Goal:%s\n", element->Value()); 66 66 BaseObject* created = Factory::fabricate(element); 67 if (created != NULL /*&& created->isA( CL_GAME_RULES)*/)67 if (created != NULL /*&& created->isA(GameRules::staticClassID())*/) 68 68 { 69 69 MissionGoal* mg = dynamic_cast<MissionGoal*>(created); -
branches/network/src/util/multiplayer_team_deathmatch.cc
r9869 r9907 499 499 500 500 assert( bo != NULL ); 501 assert( bo->isA( CL_PLAYABLE) );501 assert( bo->isA( Playable::staticClassID() ) ); 502 502 503 503 Playable & playable = *(dynamic_cast<Playable*>(bo)); -
branches/network/src/world_entities/power_ups/laser_power_up.cc
r9869 r9907 80 80 { 81 81 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z); 82 if (entity->isA(CL_PLAYABLE))82 if (entity->isA(Playable::staticClassID())) 83 83 this->toList(OM_DEAD); 84 84 } -
branches/network/src/world_entities/power_ups/turret_power_up.cc
r9869 r9907 76 76 { 77 77 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z); 78 if (entity->isA(CL_PLAYABLE))78 if (entity->isA(Playable::staticClassID())) 79 79 this->toList(OM_DEAD); 80 80 }
Note: See TracChangeset
for help on using the changeset viewer.