Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Arrow movessvn add Waypoint.h!

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