Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2005, 1:21:26 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/ll2trunktemp: some more headers, now the level really gets loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/ll2trunktemp/src/story_entities/world.cc

    r3940 r3989  
    118118World::World( TiXmlElement* root)
    119119{
     120  this->constuctorInit("", -1);
     121
    120122        const char *string;
    121123        char *name;
     
    148150       
    149151  this->localPlayer = NULL;
    150   this->entities = new tList<WorldEntity>();
    151        
    152 
    153   this->setClassName ("World");
     152
    154153}
    155154
     
    161160World::World (char* name)
    162161{
    163   this->init(name, -1);
     162  this->constuctorInit(name, -1);
    164163  //NullParent* np = NullParent::getInstance();
    165164}
     
    171170World::World (int worldID)
    172171{
    173   this->init(NULL, worldID);
     172  this->constuctorInit(NULL, worldID);
    174173}
    175174
     
    216215   NO LEVEL LOADING HERE - NEVER!
    217216*/
    218 void World::init(char* name, int worldID)
     217void World::constuctorInit(char* name, int worldID)
    219218{
    220219  this->setClassName ("World");
     
    225224  this->debugWorldNr = worldID;
    226225  this->entities = new tList<WorldEntity>();
    227   AnimationPlayer::getInstance(); // initializes the animationPlayer
    228226}
    229227
     
    241239  wi->init(this);
    242240  this->garbageCollector = GarbageCollector::getInstance();
     241  AnimationPlayer::getInstance(); // initializes the animationPlayer
     242
     243  this->nullParent = NullParent::getInstance();
    243244}
    244245
     
    376377 
    377378      // initializing the TrackManager
    378       trackManager = TrackManager::getInstance();
     379  this->trackManager = TrackManager::getInstance();
    379380      //trackManager->addPoint(Vector(0,0,0));
    380381      trackManager->addPoint(Vector(150, -35, 5));
     
    838839     
    839840      /* update tick the rest */
    840       this->trackManager->tick(this->dt);
    841       this->localCamera->tick(this->dt);
     841      //      this->trackManager->tick(this->dt);
     842      //      this->localCamera->tick(this->dt);
    842843      this->garbageCollector->tick(seconds);
    843844
Note: See TracChangeset for help on using the changeset viewer.