Changeset 10379 in orxonox.OLD for trunk/src/story_entities/game_world_data.cc
- Timestamp:
- Jan 26, 2007, 10:58:31 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world_data.cc
r10317 r10379 30 30 #include "player.h" 31 31 #include "camera.h" 32 #include "cameraman.h" 32 33 #include "terrain.h" 33 34 #include "skybox.h" … … 70 71 this->glmis = NULL; 71 72 72 this->localCamera = NULL; 73 73 74 this->localPlayer = NULL; 74 75 this->sky = NULL; … … 98 99 99 100 PNode::getNullParent(); 100 this->localCamera = new Camera(); 101 this->localCamera->setName ("GameWorld-Camera"); 102 State::setCamera(this->localCamera, this->localCamera->getTarget()); 103 101 Camera* localCamera = new Camera(); 102 localCamera->setName ("GameWorld-Camera"); 103 State::setCamera(localCamera, localCamera->getTarget()); 104 CameraMan* camMan = new CameraMan(); 105 State::setCameraman(camMan); 104 106 LightManager::getInstance(); 105 107 … … 283 285 State::setPlayer(NULL); 284 286 this->localPlayer = NULL; 285 this->localCamera = NULL;286 287 State::setCamera(NULL, NULL); 287 288 this->sky = NULL; … … 333 334 LoadParamXML(root, "GameRule", this, GameWorldData, loadGameRule); 334 335 335 LoadParam(root, "clip-region", this->localCamera, Camera, setClipRegion);336 LoadParam(root, "clip-region", State::getCameraman(), CameraMan, setClipRegion); 336 337 337 338 … … 339 340 //LoadParamXML(root, "PhysicsEngine", PhysicsEngine::getInstance(), PhysicsEngine, loadParams); 340 341 341 if( this->sky != NULL) 342 this->localCamera->addChild(this->sky); 343 OrxSound::SoundEngine::getInstance()->setListener(this->localCamera); 342 343 OrxSound::SoundEngine::getInstance()->setListener(State::getCamera()); 344 344 345 345 return ErrorMessage();
Note: See TracChangeset
for help on using the changeset viewer.