Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/QuestGuide_HS16/src/modules/waypoints/WaypointGroup.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: 1.9 KB
Line 
1
2
3#ifndef _WaypointGroup_H__
4#define _WaypointGroup_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 "core/CoreIncludes.h"
15#include "util/OgreForwardRefs.h"
16#include "Waypoint.h"
17
18namespace orxonox
19{
20    /**
21    @brief
22        The StaticEntity is the simplest derivative of the @ref orxonox::WorldEntity class. This means all StaticEntity instances also have
23        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.
24
25        In contrast to the MobileEntity the StaticEntity cannot move with respect to the parent to which it is attached. That's why
26        it is called StaticEntity. It will keep the same position (always with respect to its parent) forever unless you call the
27        function @see setPosition to changee it.
28
29        A StaticEntity can only have the collisition type WorldEntity::None or WorldEntity::Static. The collsion types WorldEntity::Dynamic and WorldEntity::Kinematic are illegal.
30    */
31
32    class _OrxonoxExport WaypointGroup : public StaticEntity {
33       
34        public:
35
36            WaypointGroup(Context* context);
37            virtual ~WaypointGroup();
38
39
40            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
41
42        //Waypoint* getWaypoint();
43        Waypoint* getWaypoint(unsigned int index);
44        void setWaypoint(Waypoint* object);
45
46
47        Waypoint* getActive();
48         
49
50        Waypoint* activateNext();
51
52           
53
54           
55
56
57        private:
58   
59            //virtual bool isCollisionTypeLegal(CollisionType type) const override;
60         
61        std::set<Waypoint*> waypoints_;
62        Waypoint* activeWaypoint;
63
64            // network callbacks
65    };
66}
67
68#endif /* _Waypoint_H__ */
Note: See TracBrowser for help on using the repository browser.