Rev | Line | |
---|
[11230] | 1 | |
---|
[11237] | 2 | |
---|
[11230] | 3 | #ifndef _Waypoint_H__ |
---|
| 4 | #define _Waypoint_H__ |
---|
| 5 | |
---|
| 6 | #include "OrxonoxPrereqs.h" |
---|
| 7 | #include "StaticEntity.h" |
---|
[11243] | 8 | #include "graphics/Model.h" |
---|
[11230] | 9 | |
---|
[11237] | 10 | #include <map> |
---|
| 11 | #include <string> |
---|
| 12 | |
---|
| 13 | #include "util/OgreForwardRefs.h" |
---|
| 14 | #include "tools/interfaces/Tickable.h" |
---|
| 15 | |
---|
[11230] | 16 | namespace orxonox |
---|
| 17 | { |
---|
| 18 | /** |
---|
| 19 | @brief |
---|
| 20 | The StaticEntity is the simplest derivative of the @ref orxonox::WorldEntity class. This means all StaticEntity instances also have |
---|
| 21 | 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. |
---|
| 22 | |
---|
| 23 | In contrast to the MobileEntity the StaticEntity cannot move with respect to the parent to which it is attached. That's why |
---|
| 24 | it is called StaticEntity. It will keep the same position (always with respect to its parent) forever unless you call the |
---|
| 25 | function @see setPosition to changee it. |
---|
| 26 | |
---|
| 27 | A StaticEntity can only have the collisition type WorldEntity::None or WorldEntity::Static. The collsion types WorldEntity::Dynamic and WorldEntity::Kinematic are illegal. |
---|
| 28 | */ |
---|
| 29 | |
---|
[11243] | 30 | class _OrxonoxExport Waypoint : public StaticEntity { |
---|
| 31 | |
---|
[11230] | 32 | public: |
---|
[11243] | 33 | |
---|
[11230] | 34 | Waypoint(Context* context); |
---|
| 35 | virtual ~Waypoint(); |
---|
| 36 | |
---|
[11237] | 37 | |
---|
[11243] | 38 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; |
---|
[11230] | 39 | |
---|
| 40 | |
---|
[11237] | 41 | |
---|
[11230] | 42 | private: |
---|
[11243] | 43 | |
---|
[11230] | 44 | //virtual bool isCollisionTypeLegal(CollisionType type) const override; |
---|
[11243] | 45 | Model* model; |
---|
| 46 | |
---|
[11230] | 47 | // network callbacks |
---|
| 48 | }; |
---|
| 49 | } |
---|
| 50 | |
---|
[11243] | 51 | #endif /* _Waypoint_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.