Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/QuestGuide_HS16/src/modules/waypoints/Waypointarrow.h @ 11321

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

Arrow movessvn add Waypoint.h!

File size: 1.8 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
46
47        private:
48   
49            //virtual bool isCollisionTypeLegal(CollisionType type) const override;
50            Model* model;
51            WaypointGroup* waypoints_;
52            Waypoint* waypoint;
53            // network callbacks
54    };
55}
56
57#endif /* _Waypoint_H__ */
Note: See TracBrowser for help on using the repository browser.