Changeset 1613 for code/branches/hud/src/orxonox/objects
- Timestamp:
- Jun 20, 2008, 12:05:12 AM (17 years ago)
- Location:
- code/branches/hud/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/objects/SpaceShip.cc
r1604 r1613 42 42 #include "core/Debug.h" 43 43 #include "GraphicsEngine.h" 44 #include "core/input/InputManager.h"44 //#include "core/input/InputManager.h" 45 45 #include "tools/ParticleInterface.h" 46 46 #include "RotatingProjectile.h" … … 49 49 #include "core/ConsoleCommand.h" 50 50 #include "network/Client.h" 51 #include "overlays/hud/HUDRadar.h"52 51 53 52 namespace orxonox … … 133 132 this->health_ = 100; 134 133 134 this->radarObject_ = static_cast<WorldEntity*>(this); 135 135 136 COUT(3) << "Info: SpaceShip was loaded" << std::endl; 136 137 } … … 144 145 if (this->tt2_) 145 146 delete this->tt2_; 146 147 if (setMouseEventCallback_)148 InputManager::removeMouseHandler("SpaceShip");149 150 147 if (this->cam_) 151 148 delete this->cam_; 152 153 if (!this->myShip_)154 HUDRadar::getInstance().removeRadarObject(this);155 149 } 156 150 } … … 161 155 myShip_=true; 162 156 else 163 HUDRadar::getInstance().addRadarObject(this,this->getProjectileColour());157 this->setRadarObjectColour(this->getProjectileColour()); 164 158 } 165 159 if(Model::create()) -
code/branches/hud/src/orxonox/objects/SpaceShip.h
r1558 r1613 36 36 #include "Camera.h" 37 37 #include "Model.h" 38 #include "RadarViewable.h" 38 39 #include "tools/BillboardSet.h" 39 40 40 41 namespace orxonox 41 42 { 42 class _OrxonoxExport SpaceShip : public Model 43 class _OrxonoxExport SpaceShip : public Model, public RadarViewable 43 44 { 44 45 public:
Note: See TracChangeset
for help on using the changeset viewer.