- Timestamp:
- Jan 6, 2006, 1:28:36 PM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_game_manager.cc
r6341 r6412 237 237 * @param classID: The ID of the class of which an entity should be created 238 238 */ 239 BaseObject* NetworkGameManager::createEntity( TiXmlElement* element)239 BaseObject* NetworkGameManager::createEntity(const TiXmlElement* element) 240 240 { 241 241 if ( this->isServer() ) … … 252 252 if ( !b ) 253 253 { 254 PRINTF(1)("Could not fabricate Object with class ID %x\n", element->Value() );254 PRINTF(1)("Could not fabricate Object with className %s\n", element->Value() ); 255 255 return NULL; 256 256 } -
branches/network/src/lib/network/network_game_manager.h
r6341 r6412 75 75 76 76 void createEntity( ClassID classID, int owner = 0 ); 77 BaseObject* createEntity( TiXmlElement* element);77 BaseObject* createEntity(const TiXmlElement* element); 78 78 void removeEntity( int uniqueID ); 79 79 void sendYouAre( int uniqueID, int userID ); -
branches/network/src/story_entities/game_world.cc
r6409 r6412 319 319 { 320 320 /* the frame-rate is limited to 100 frames per second, all other things are for nothing. */ 321 PRINTF(0)("fps = 1000 - frame rate is adjusted\n");321 //PRINTF(0)("fps = 1000 - frame rate is adjusted\n"); 322 322 SDL_Delay(10 - dt); 323 323 this->dt = 10; -
branches/network/src/story_entities/multi_player_world_data.cc
r6409 r6412 145 145 BaseObject* created = NetworkGameManager::getInstance()->createEntity(element); 146 146 if( created != NULL ) 147 PRINTF(1)("Created a %s: %s \n", created->getClassName(), created->getName());147 PRINTF(1)("Created a %s: %s (0x%8x) from %s\n", created->getClassName(), created->getName(), created->getLeafClassID(), element->Value()); 148 148 else 149 149 PRINTF(1)("NetworkWorld: could not create this entity\n"); … … 158 158 } 159 159 /* clients only spawn the SpaceShip */ 160 /// FIXME it is not said to be a SpaceShip 160 161 else if( !strcmp( element->Value(), "SpaceShip")) 161 162 { 162 163 BaseObject* created = Factory::fabricate(element); 163 164 if( created != NULL ) 164 PRINTF(1)("Created a %s: %s \n", created->getClassName(), created->getName());165 PRINTF(1)("Created a %s: %s (%8.u)\n", created->getClassName(), created->getName(), created->getLeafClassID()); 165 166 else 166 167 PRINTF(1)("NetworkWorld: could not create this entity\n"); -
branches/network/src/world_entities/power_ups/param_power_up.cc
r6243 r6412 53 53 void ParamPowerUp::init() 54 54 { 55 this->setClassID(CL_PARAM_POWER_UP, "ParamPowerUp"); 55 56 this->value = 0; 56 57 this->max_value = 0;
Note: See TracChangeset
for help on using the changeset viewer.