Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/QuestGuide_HS16/src/modules/waypoints/Waypointarrow.h @ 12106

Last change on this file since 12106 was 11332, checked in by ooguz, 8 years ago

Last Commit (waypointscale ist 0)

File size: 1.9 KB
Line 
1
2
3#ifndef _Waypointarrow_H__
4#define _Waypointarrow_H__
5
6#include "OrxonoxPrereqs.h"
7#include "worldentities/StaticEntity.h"
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"
16#include "core/XMLPort.h"
17
18
19namespace 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 Waypointarrow : public StaticEntity, public Tickable {
34       
35        public:
36
37            Waypointarrow(Context* context);
38            virtual ~Waypointarrow();
39            WaypointGroup* getWaypointgroup();
40
41
42            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
43
44            virtual void tick(float dt);
45            //static void toogleArrow();
46
47
48
49        private:
50   
51            //virtual bool isCollisionTypeLegal(CollisionType type) const override;
52            Model* model;
53            WaypointGroup* waypoints_;
54            Waypoint* waypoint;
55            // network callbacks
56    };
57}
58
59#endif /* _Waypoint_H__ */
Note: See TracBrowser for help on using the repository browser.