Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/QuestGuide_HS16/src/modules/waypoints/Waypoint.h @ 11309

Last change on this file since 11309 was 11298, checked in by ooguz, 8 years ago

Arrow movessvn add Waypoint.h!

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