Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7369 in orxonox.OLD for trunk/src/story_entities/game_world.cc


Ignore:
Timestamp:
Apr 25, 2006, 11:46:21 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some minor movement and renaming

File:
1 edited

Legend:

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

    r7368 r7369  
    5252#include "shell.h"
    5353
    54 #include "animation_player.h"
    55 #include "animation3d.h"
    56 
    5754#include "ogg_player.h"
    5855#include "shader.h"
     56
     57#include "animation_player.h"
    5958
    6059#include "game_rules.h"
     
    125124  State::setCurrentStoryEntity(dynamic_cast<StoryEntity*>(this));
    126125  this->dataTank->init();
     126
     127  /* initialize some engines and graphical elements */
     128  AnimationPlayer::getInstance();
     129  PhysicsEngine::getInstance();
     130
    127131}
    128132
     
    179183ErrorMessage GameWorld::unloadData()
    180184{
     185  PRINTF(3)("GameWorld::~GameWorld() - unloading the current GameWorld\n");
     186
     187  this->dataTank->unloadData();
     188
    181189  delete this->shell;
    182   PRINTF(3)("GameWorld::~GameWorld() - unloading the current GameWorld\n");
    183 
    184   this->dataTank->unloadData();
     190  this->shell = NULL;
     191  delete AnimationPlayer::getInstance();
     192  delete PhysicsEngine::getInstance();
    185193
    186194  State::setCurrentStoryEntity(NULL);
Note: See TracChangeset for help on using the changeset viewer.