Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6412 in orxonox.OLD for branches


Ignore:
Timestamp:
Jan 6, 2006, 1:28:36 PM (19 years ago)
Author:
bensch
Message:

ParamPowerUp is now also loaded correctly

Location:
branches/network/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_game_manager.cc

    r6341 r6412  
    237237 * @param classID: The ID of the class of which an entity should be created
    238238 */
    239 BaseObject* NetworkGameManager::createEntity( TiXmlElement* element)
     239BaseObject* NetworkGameManager::createEntity(const TiXmlElement* element)
    240240{
    241241  if ( this->isServer() )
     
    252252    if ( !b )
    253253    {
    254       PRINTF(1)("Could not fabricate Object with classID %x\n", element->Value() );
     254      PRINTF(1)("Could not fabricate Object with className %s\n", element->Value() );
    255255      return NULL;
    256256    }
  • branches/network/src/lib/network/network_game_manager.h

    r6341 r6412  
    7575
    7676    void createEntity( ClassID classID, int owner = 0 );
    77     BaseObject* createEntity( TiXmlElement* element);
     77    BaseObject* createEntity(const TiXmlElement* element);
    7878    void removeEntity( int uniqueID );
    7979    void sendYouAre( int uniqueID, int userID );
  • branches/network/src/story_entities/game_world.cc

    r6409 r6412  
    319319    {
    320320      /* 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");
    322322      SDL_Delay(10 - dt);
    323323      this->dt = 10;
  • branches/network/src/story_entities/multi_player_world_data.cc

    r6409 r6412  
    145145        BaseObject* created = NetworkGameManager::getInstance()->createEntity(element);
    146146        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());
    148148        else
    149149          PRINTF(1)("NetworkWorld: could not create this entity\n");
     
    158158      }
    159159      /* clients only spawn the SpaceShip */
     160      /// FIXME it is not said to be a SpaceShip
    160161      else if( !strcmp( element->Value(), "SpaceShip"))
    161162      {
    162163        BaseObject* created = Factory::fabricate(element);
    163164        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());
    165166        else
    166167          PRINTF(1)("NetworkWorld: could not create this entity\n");
  • branches/network/src/world_entities/power_ups/param_power_up.cc

    r6243 r6412  
    5353void ParamPowerUp::init()
    5454{
     55  this->setClassID(CL_PARAM_POWER_UP, "ParamPowerUp");
    5556  this->value = 0;
    5657  this->max_value = 0;
Note: See TracChangeset for help on using the changeset viewer.