- Timestamp:
- Nov 25, 2008, 1:14:19 AM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2171 r2256 61 61 this->weaponSystem_->getWeaponSetPointer(0)->getWeaponSlotPointer(0)->setAmmoType(true); 62 62 */ 63 64 this->setRadarObjectColour(ColourValue::Red); 65 this->setRadarObjectShape(RadarViewable::Dot); 63 66 64 67 this->registerVariables(); -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Pawn.h
r2098 r2256 33 33 34 34 #include "objects/worldentities/ControllableEntity.h" 35 #include "objects/RadarViewable.h" 35 36 36 37 namespace orxonox 37 38 { 38 class _OrxonoxExport Pawn : public ControllableEntity 39 class _OrxonoxExport Pawn : public ControllableEntity, public RadarViewable 39 40 { 40 41 public: … … 78 79 virtual void postSpawn(); 79 80 81 inline const WorldEntity* getWorldEntity() const 82 { return (WorldEntity*)this; } 83 80 84 protected: 81 85 virtual void spawn(); -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/SpaceShip.cc
r2254 r2256 229 229 } 230 230 } 231 232 void SpaceShip::setEngine(Engine* engine) 233 { 234 this->engine_ = engine; 235 if (engine && engine->getShip() != this) 236 engine->addToSpaceShip(this); 237 } 231 238 } -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/SpaceShip.h
r2254 r2256 58 58 virtual void boost(); 59 59 60 void setEngine(Engine* engine); 61 inline Engine* getEngine() const 62 { return this->engine_; } 63 60 64 void setMaxRotation(const Degree& value) 61 65 { this->maxRotation_ = value; }
Note: See TracChangeset
for help on using the changeset viewer.