Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8271 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
Jun 8, 2006, 4:50:50 PM (18 years ago)
Author:
bensch
Message:

merge

Location:
trunk/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r8255 r8271  
    139139}
    140140
    141 
     141#include "account.cc"
     142#include "object.cc"
    142143/**
    143144 *  loads the GameWorld by initializing all resources, and set their default values.
     
    181182  this->dataXML = (TiXmlElement*)root->Clone();
    182183
     184
     185  Object* obj= new Object();
     186  obj->setName("Obj");
     187  Account* a = new Account();
     188  a->setName("a");
     189  Account *b = new Account(30);
     190  b->setName("b");
     191 
     192  LoadParamXML(root, "ScriptManager", &this->scriptManager, ScriptManager, loadParams);
     193
    183194  delete XMLDoc;
    184195  this->releaseLoadScreen();
     
    191202ErrorMessage GameWorld::unloadData()
    192203{
     204
    193205  PRINTF(3)("GameWorld::~GameWorld() - unloading the current GameWorld\n");
     206  this->scriptManager.flush();
     207
    194208  delete this->shell;
    195209
     
    215229  this->bRunning = true;
    216230
     231  State::setScripManager(&this->scriptManager);
     232
    217233  this->run();
    218234}
     
    225241{
    226242  PRINTF(3)("GameWorld::stop() - got stop signal\n");
     243  State::setScripManager(NULL);
    227244  this->bRunning = false;
    228245}
  • trunk/src/story_entities/game_world.h

    r8190 r8271  
    1111#include "game_world_data.h"
    1212#include "playable.h"
     13#include "script_manager.h"
    1314
    1415namespace OrxShell { class Shell; };
    1516class WorldEntity;
    1617class GameRules;
     18
    1719
    1820/** How many frames time values to keep
     
    103105    GameRules*          gameRules;                    //!< Pointer to the data structure containig the game rules
    104106
    105 
    106107  private:
    107108    /* external modules interfaces */
     109    ScriptManager       scriptManager;
    108110    OrxShell::Shell*    shell;
    109111};
Note: See TracChangeset for help on using the changeset viewer.