[11274] | 1 | |
---|
| 2 | |
---|
[11287] | 3 | #ifndef _WaypointGroup_H__ |
---|
| 4 | #define _WaypointGroup_H__ |
---|
[11274] | 5 | |
---|
| 6 | #include "OrxonoxPrereqs.h" |
---|
[11318] | 7 | #include "Waypointprereqs.h" |
---|
[11287] | 8 | #include "worldentities/StaticEntity.h" |
---|
[11274] | 9 | #include "graphics/Model.h" |
---|
[11287] | 10 | #include "objects/triggers/DistanceTrigger.h" |
---|
[11274] | 11 | |
---|
| 12 | #include <map> |
---|
| 13 | #include <string> |
---|
| 14 | |
---|
[11287] | 15 | #include "core/CoreIncludes.h" |
---|
[11274] | 16 | #include "util/OgreForwardRefs.h" |
---|
[11287] | 17 | #include "Waypoint.h" |
---|
[11274] | 18 | |
---|
| 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 | |
---|
| 33 | class _OrxonoxExport WaypointGroup : public StaticEntity { |
---|
[11318] | 34 | |
---|
[11274] | 35 | public: |
---|
| 36 | |
---|
| 37 | WaypointGroup(Context* context); |
---|
| 38 | virtual ~WaypointGroup(); |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; |
---|
| 42 | |
---|
[11287] | 43 | //Waypoint* getWaypoint(); |
---|
[11274] | 44 | Waypoint* getWaypoint(unsigned int index); |
---|
[11287] | 45 | void setWaypoint(Waypoint* object); |
---|
[11274] | 46 | |
---|
| 47 | |
---|
[11298] | 48 | Waypoint* getActive(); |
---|
[11274] | 49 | |
---|
[11287] | 50 | |
---|
[11318] | 51 | void activateNext(); |
---|
[11274] | 52 | |
---|
[11321] | 53 | //Waypoint* getFirst(); |
---|
[11274] | 54 | |
---|
| 55 | |
---|
[11318] | 56 | |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | |
---|
[11274] | 60 | private: |
---|
[11318] | 61 | |
---|
[11274] | 62 | //virtual bool isCollisionTypeLegal(CollisionType type) const override; |
---|
[11318] | 63 | |
---|
[11287] | 64 | std::set<Waypoint*> waypoints_; |
---|
[11298] | 65 | Waypoint* activeWaypoint; |
---|
[11321] | 66 | unsigned int current = 0; |
---|
[11318] | 67 | //std::set<Waypoint*>::iterator it; |
---|
[11274] | 68 | |
---|
| 69 | // network callbacks |
---|
| 70 | }; |
---|
| 71 | } |
---|
| 72 | |
---|
| 73 | #endif /* _Waypoint_H__ */ |
---|