Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 10, 2006, 2:00:20 AM (19 years ago)
Author:
patrick
Message:

network: skybox parenting fix

Location:
branches/network/src/story_entities
Files:
3 edited

Legend:

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

    r6424 r6459  
    200200  this->isRunning = true;
    201201
     202  State::setCurrentStoryEntity(dynamic_cast<StoryEntity*>(this));
     203
    202204  this->run();
    203205}
  • branches/network/src/story_entities/game_world.h

    r6424 r6459  
    99
    1010#include "story_entity.h"
    11 
     11#include "game_world_data.h"
    1212
    1313class TiXmlElement;
     
    5656
    5757
     58    inline void setSky(WorldEntity* sky) { this->dataTank->sky = sky; }
     59
     60
    5861  protected:
    5962    /* world - running functions */
  • branches/network/src/story_entities/multi_player_world_data.cc

    r6424 r6459  
    4848
    4949#include "glmenu_imagescreen.h"
     50
    5051
    5152
     
    177178    this->localPlayer = new Player();
    178179    Playable* playable;
    179     const list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);
     180    const std::list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);
     181    assert( playableList != NULL);
     182
     183    std::list<BaseObject*>::const_iterator entity;
     184    for (entity = playableList->begin(); entity != playableList->end(); entity++)
     185      PRINTF(0)("Got a playable, class: %s, name: %s\n", (*entity)->getClassName(), (*entity)->getName());
     186
     187
    180188    if (playableList != NULL)
    181189    {
     
    184192    }
    185193
    186 
    187194    /* init the pnode tree */
    188195    PNode::getNullParent()->init();
Note: See TracChangeset for help on using the changeset viewer.