[11274] | 1 | |
---|
| 2 | |
---|
[11287] | 3 | #ifndef _Waypointarrow_H__ |
---|
| 4 | #define _Waypointarrow_H__ |
---|
[11274] | 5 | |
---|
| 6 | #include "OrxonoxPrereqs.h" |
---|
[11287] | 7 | #include "worldentities/StaticEntity.h" |
---|
[11274] | 8 | #include "graphics/Model.h" |
---|
| 9 | |
---|
| 10 | #include <string> |
---|
| 11 | |
---|
| 12 | #include "util/OgreForwardRefs.h" |
---|
| 13 | #include "tools/interfaces/Tickable.h" |
---|
| 14 | #include "interfaces/RadarListener.h" |
---|
| 15 | #include "WaypointGroup.h" |
---|
[11287] | 16 | #include "core/XMLPort.h" |
---|
[11274] | 17 | |
---|
[11287] | 18 | |
---|
[11274] | 19 | namespace orxonox |
---|
| 20 | { |
---|
| 21 | /** |
---|
| 22 | @brief |
---|
| 23 | The StaticEntity is the simplest derivative of the @ref orxonox::WorldEntity class. This means all StaticEntity instances also have |
---|
| 24 | a position in space, a mass, a scale, a frication, ... because every StaticEntity is a WorldEntity. You can attach StaticEntities to eachother ike @ref orxonox::WorldEntity WorldEntities. |
---|
| 25 | |
---|
| 26 | In contrast to the MobileEntity the StaticEntity cannot move with respect to the parent to which it is attached. That's why |
---|
| 27 | it is called StaticEntity. It will keep the same position (always with respect to its parent) forever unless you call the |
---|
| 28 | function @see setPosition to changee it. |
---|
| 29 | |
---|
| 30 | A StaticEntity can only have the collisition type WorldEntity::None or WorldEntity::Static. The collsion types WorldEntity::Dynamic and WorldEntity::Kinematic are illegal. |
---|
| 31 | */ |
---|
| 32 | |
---|
[11298] | 33 | class _OrxonoxExport Waypointarrow : public StaticEntity, public Tickable { |
---|
[11274] | 34 | |
---|
| 35 | public: |
---|
| 36 | |
---|
| 37 | Waypointarrow(Context* context); |
---|
| 38 | virtual ~Waypointarrow(); |
---|
[11298] | 39 | WaypointGroup* getWaypointgroup(); |
---|
[11274] | 40 | |
---|
| 41 | |
---|
| 42 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; |
---|
| 43 | |
---|
[11298] | 44 | virtual void tick(float dt); |
---|
[11332] | 45 | //static void toogleArrow(); |
---|
[11274] | 46 | |
---|
| 47 | |
---|
[11332] | 48 | |
---|
[11274] | 49 | private: |
---|
| 50 | |
---|
| 51 | //virtual bool isCollisionTypeLegal(CollisionType type) const override; |
---|
| 52 | Model* model; |
---|
[11298] | 53 | WaypointGroup* waypoints_; |
---|
| 54 | Waypoint* waypoint; |
---|
[11274] | 55 | // network callbacks |
---|
| 56 | }; |
---|
| 57 | } |
---|
| 58 | |
---|
| 59 | #endif /* _Waypoint_H__ */ |
---|