Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6121 in orxonox.OLD for branches/objectmanager/src/story_entities


Ignore:
Timestamp:
Dec 15, 2005, 1:34:32 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: packing the first entities into their lists

Location:
branches/objectmanager/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/objectmanager/src/story_entities/world.cc

    r6120 r6121  
    141141  SoundEngine::getInstance()->flushAllSources();
    142142
    143   delete ObjectManager::getInstance();
     143  if (State::getObjectManager() == &this->objectManager)
     144    State::setObjectManager(NULL);
    144145  // erease everything that is left.
    145146  delete PNode::getNullParent();
     
    214215ErrorMessage World::preLoad()
    215216{
     217  State::setObjectManager(&this->objectManager);
    216218  State::setWorldEntityList(this->entities = new tList<WorldEntity>());
    217219  this->cycle = 0;
  • branches/objectmanager/src/story_entities/world.h

    r6048 r6121  
    1111#include "story_entity.h"
    1212#include "p_node.h"
     13#include "object_manager.h"
    1314
    14 class World;
     15
    1516class WorldEntity;
    1617class Camera;
     
    1819class GLMenuImageScreen;
    1920class Terrain;
    20 class GarbageCollector;
    21 class Text;
    2221class TiXmlElement;
    2322
    2423class Shell;
    2524class OggPlayer;
     25
    2626template<class T> class tList;
    2727
     
    104104    bool bPause;                        //!< pause mode
    105105
     106    ObjectManager      objectManager;   //!< The ObjectManager of this World.
     107
    106108    GLMenuImageScreen* glmis;           //!< The Level-Loader Display
    107109
Note: See TracChangeset for help on using the changeset viewer.