Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8014 in orxonox.OLD for branches/network/src/story_entities


Ignore:
Timestamp:
May 31, 2006, 8:21:07 AM (18 years ago)
Author:
rennerc
Message:

new NetworkGameManager works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/story_entities/multi_player_world_data.cc

    r7984 r8014  
    4545#include "network_manager.h"
    4646#include "network_game_manager.h"
     47#include "player_stats.h"
    4748
    4849
     
    203204      this->localPlayer = new Player();
    204205
     206#if 0
    205207      Playable* playable;
    206208      const std::list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);
     
    215217        playable->setPlayDirection(Quaternion(M_PI, Vector(0.0, 1.0, 0.0)));
    216218      }
     219#endif
    217220    }
    218221    else
     
    244247 
    245248  State::setPlayer(this->localPlayer);
     249 
    246250}
    247251
     
    265269  /* call underlying function */
    266270  GameWorldData::loadScene(root);
     271 
     272  if ( NetworkManager::getInstance()->isGameServer() )
     273  {
     274    NetworkGameManager::getInstance()->signalNewPlayer( 0 );
     275    State::getPlayer()->setPlayable( PlayerStats::getStats( 0 )->getPlayable() );
     276  }
    267277}
    268278
Note: See TracChangeset for help on using the changeset viewer.