44 #ifndef __ROADMAP_PATH_H__
45 #define __ROADMAP_PATH_H__
47 #include "mengeCommon.h"
58 typedef stdext::hash_map< size_t, RoadMapPath * > PathMap;
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61 #include <tr1/unordered_map>
65 typedef std::tr1::unordered_map< size_t, RoadMapPath * > PathMap;
66 #endif // DOXYGEN_SHOULD_SKIP_THIS
181 #endif // __ROADMAP_PATH_H__
size_t getWayPointCount() const
Reports the number of waypoints in the path.
Definition: RoadMapPath.h:125
size_t _targetID
The index of the current target.
Definition: RoadMapPath.h:167
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
void setPrefDirection(const Agents::BaseAgent *agent, Agents::PrefVelocity &pVel)
Sets the direction of the preferred velocity (and target).
Definition: RoadMapPath.cpp:72
~RoadMapPath()
Destructor.
Definition: RoadMapPath.cpp:59
Vector2 getWayPoint(size_t i) const
Returns the position of the ith waypoint.
Definition: RoadMapPath.cpp:127
size_t _wayPointCount
The number of way points in the path.
Definition: RoadMapPath.h:172
The base, abstract class defining goals.
Definition: Goal.h:110
const BFSM::Goal * _goal
The ultimate goal.
Definition: RoadMapPath.h:156
void setWayPoint(size_t i, const Vector2 &pos)
Sets the position of the ith waypoint.
Definition: RoadMapPath.cpp:65
void setGoalPos(const BFSM::Goal *goal)
Sets the ultimate goal.
Definition: RoadMapPath.h:109
Vector2 _validPos
The last valid position – validity means the target goal was visible.
Definition: RoadMapPath.h:162
The namespace contains the Behavior Finite State Machine (BFSM) definition.
A path on a roadmap between vertices.
Definition: RoadMapPath.h:82
Vector2 * _wayPoints
The way points along the path.
Definition: RoadMapPath.h:177
const BFSM::Goal * getGoal() const
Returns the ultimate goal.
Definition: RoadMapPath.h:143
RoadMapPath(size_t pointCount)
Constructor.
Definition: RoadMapPath.cpp:53
The definition of a preferred velocity.
Definition: PrefVelocity.h:68
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
size_t getTargetID() const
Returns the current target waypoint index.
Definition: RoadMapPath.h:150
The namespace that contains the basic simulation mechanisms.