Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7369 in orxonox.OLD


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

orxonox/trunk: some minor movement and renaming

Location:
trunk/src/story_entities
Files:
3 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);
  • trunk/src/story_entities/game_world_data.cc

    r7311 r7369  
    2828#include "util/loading/game_loader.h"
    2929
    30 #include "p_node.h"
    3130#include "world_entity.h"
    3231#include "player.h"
    3332#include "camera.h"
    34 #include "environment.h"
    35 #include "terrain.h"
    36 #include "test_entity.h"
    3733#include "terrain.h"
    3834#include "skybox.h"
     
    5854#include "glmenu_imagescreen.h"
    5955
    60 #include "animation_player.h"
    61 #include "animation3d.h"
    62 
    6356#include "game_rules.h"
    6457
     
    114107
    115108  GraphicsEngine::getInstance()->displayFPS(true);
    116 
    117   /* initialize some graphics engines and graphical elements */
    118   AnimationPlayer::getInstance();
    119   PhysicsEngine::getInstance();
    120109}
    121110
     
    339328  /* delete some garphics and scene eingines */
    340329  delete LightManager::getInstance();
    341   delete AnimationPlayer::getInstance();
    342   delete PhysicsEngine::getInstance();
    343330
    344331  if (this->music != NULL)
  • trunk/src/story_entities/game_world_data.h

    r7368 r7369  
    1919class GLMenuImageScreen;
    2020
    21 class TiXmlElement;
    2221class OggPlayer;
    2322class GameRules;
Note: See TracChangeset for help on using the changeset viewer.