- Timestamp:
- Oct 24, 2016, 4:01:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/QuestGuide_HS16/src/orxonox/worldentities/Waypoint.h
r11237 r11243 6 6 #include "OrxonoxPrereqs.h" 7 7 #include "StaticEntity.h" 8 #include " overlays/OverlaysPrereqs.h"8 #include "graphics/Model.h" 9 9 10 10 #include <map> … … 13 13 #include "util/OgreForwardRefs.h" 14 14 #include "tools/interfaces/Tickable.h" 15 #include "interfaces/RadarListener.h"16 #include "overlays/OrxonoxOverlay.h"17 15 18 16 namespace orxonox … … 30 28 */ 31 29 32 class _OrxonoxExport Waypoint : public StaticEntity , public RadarListener33 {30 class _OrxonoxExport Waypoint : public StaticEntity { 31 34 32 public: 33 35 34 Waypoint(Context* context); 36 35 virtual ~Waypoint(); 37 36 38 virtual void addObject(RadarViewable* object) override;39 virtual void removeObject(RadarViewable* viewable) override;40 virtual void objectChanged(RadarViewable* viewable) override;41 37 42 using StaticEntity::setPosition; 43 using StaticEntity::setOrientation; 44 45 virtual void setPosition(const Vector3& position) override; 46 virtual void setOrientation(const Quaternion& orientation) override; 47 48 virtual void positionChanged() override { } 49 virtual void radarTick(float dt) override {} 50 51 virtual inline float getRadarSensitivity() const override 52 { return 1.0f; } 53 54 inline unsigned int getMarkerLimit() const 55 { return this->markerLimit_; } 56 57 static void selectClosestTarget(); 58 static void selectNextTarget(); 38 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 59 39 60 40 61 41 62 42 private: 63 void registerVariables();43 64 44 //virtual bool isCollisionTypeLegal(CollisionType type) const override; 65 45 Model* model; 46 66 47 // network callbacks 67 inline void positionChanged()68 { this->setPosition(this->getPosition()); }69 inline void orientationChanged()70 { this->setOrientation(this->getOrientation()); }71 72 // Bullet btMotionState related73 virtual void setWorldTransform(const btTransform& worldTrans) override;74 virtual void getWorldTransform(btTransform& worldTrans) const override;75 48 }; 76 49 } 77 50 78 #endif /* _ StaticEntity_H__ */51 #endif /* _Waypoint_H__ */
Note: See TracChangeset
for help on using the changeset viewer.