Changeset 5813 for code/branches/core5/src/modules
- Timestamp:
- Sep 27, 2009, 7:28:09 PM (15 years ago)
- Location:
- code/branches/core5/src/modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/gamestates/GSLevel.cc
r5806 r5813 48 48 49 49 #include "tools/interfaces/Tickable.h" 50 #include "Radar.h"51 50 #include "CameraManager.h" 52 51 #include "LevelManager.h" … … 67 66 , guiMouseOnlyInputState_(0) 68 67 , guiKeysOnlyInputState_(0) 69 , radar_(0)70 68 , cameraManager_(0) 71 69 { … … 104 102 // create the global CameraManager 105 103 this->cameraManager_ = new CameraManager(GraphicsManager::getInstance().getViewport()); 106 107 // Start the Radar108 this->radar_ = new Radar();109 104 } 110 105 … … 186 181 if (GameMode::isMaster()) 187 182 this->unloadLevel(); 188 189 if (this->radar_)190 {191 this->radar_->destroy();192 this->radar_ = 0;193 }194 183 195 184 if (this->cameraManager_) -
code/branches/core5/src/modules/gamestates/GSLevel.h
r5738 r5813 67 67 InputState* guiMouseOnlyInputState_; //!< input state if we only need the mouse to use the GUI 68 68 InputState* guiKeysOnlyInputState_; //!< input state if we only need the keys to use the GUI 69 Radar* radar_; //!< represents the Radar (not the HUD part)70 69 CameraManager* cameraManager_; //!< camera manager for this level 71 70 PlayerManager* playerManager_; //!< player manager for this level -
code/branches/core5/src/modules/overlays/hud/HUDNavigation.cc
r5738 r5813 39 39 #include "core/CoreIncludes.h" 40 40 #include "core/XMLPort.h" 41 #include "Scene.h" 41 42 #include "Radar.h" 42 43 … … 130 131 SUPER(HUDNavigation, tick, dt); 131 132 132 if (!Radar::getInstance().getFocus()) 133 // Get radar 134 Radar* radar = this->getOwner()->getScene()->getRadar(); 135 136 if (!radar->getFocus()) 133 137 { 134 138 this->overlay_->hide(); … … 150 154 */ 151 155 // transform to screen coordinates 152 Vector3 pos = /*transformationMatrix * */ Radar::getInstance().getFocus()->getRVWorldPosition();156 Vector3 pos = /*transformationMatrix * */radar->getFocus()->getRVWorldPosition(); 153 157 154 158 bool outOfView;
Note: See TracChangeset
for help on using the changeset viewer.