- Timestamp:
- Apr 25, 2006, 11:46:21 PM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r7368 r7369 52 52 #include "shell.h" 53 53 54 #include "animation_player.h"55 #include "animation3d.h"56 57 54 #include "ogg_player.h" 58 55 #include "shader.h" 56 57 #include "animation_player.h" 59 58 60 59 #include "game_rules.h" … … 125 124 State::setCurrentStoryEntity(dynamic_cast<StoryEntity*>(this)); 126 125 this->dataTank->init(); 126 127 /* initialize some engines and graphical elements */ 128 AnimationPlayer::getInstance(); 129 PhysicsEngine::getInstance(); 130 127 131 } 128 132 … … 179 183 ErrorMessage GameWorld::unloadData() 180 184 { 185 PRINTF(3)("GameWorld::~GameWorld() - unloading the current GameWorld\n"); 186 187 this->dataTank->unloadData(); 188 181 189 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(); 185 193 186 194 State::setCurrentStoryEntity(NULL); -
trunk/src/story_entities/game_world_data.cc
r7311 r7369 28 28 #include "util/loading/game_loader.h" 29 29 30 #include "p_node.h"31 30 #include "world_entity.h" 32 31 #include "player.h" 33 32 #include "camera.h" 34 #include "environment.h"35 #include "terrain.h"36 #include "test_entity.h"37 33 #include "terrain.h" 38 34 #include "skybox.h" … … 58 54 #include "glmenu_imagescreen.h" 59 55 60 #include "animation_player.h"61 #include "animation3d.h"62 63 56 #include "game_rules.h" 64 57 … … 114 107 115 108 GraphicsEngine::getInstance()->displayFPS(true); 116 117 /* initialize some graphics engines and graphical elements */118 AnimationPlayer::getInstance();119 PhysicsEngine::getInstance();120 109 } 121 110 … … 339 328 /* delete some garphics and scene eingines */ 340 329 delete LightManager::getInstance(); 341 delete AnimationPlayer::getInstance();342 delete PhysicsEngine::getInstance();343 330 344 331 if (this->music != NULL) -
trunk/src/story_entities/game_world_data.h
r7368 r7369 19 19 class GLMenuImageScreen; 20 20 21 class TiXmlElement;22 21 class OggPlayer; 23 22 class GameRules;
Note: See TracChangeset
for help on using the changeset viewer.