Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/QuestGuide_HS16/src/modules/waypoints/WaypointGroup.h @ 11287

Last change on this file since 11287 was 11287, checked in by ooguz, 7 years ago

Bugs fixed

File size: 1.8 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       
48
49
50           
51
52           
53
54
55        private:
56   
57            //virtual bool isCollisionTypeLegal(CollisionType type) const override;
58         
59        std::set<Waypoint*> waypoints_;
60
61            // network callbacks
62    };
63}
64
65#endif /* _Waypoint_H__ */
Note: See TracBrowser for help on using the repository browser.