8 #include <steeriously/Vector2.hpp>
32 Path(
int NumWaypoints, std::list<steer::Vector2>& waypoints);
44 Path(
int NumWaypoints,
float MinX,
float MinY,
float MaxX,
float MaxY,
bool looped);
55 assert(&(*m_currentWaypoint) != NULL);
56 return *m_currentWaypoint;
65 return !(m_currentWaypoint != m_wayPoints.end());
83 std::list<steer::Vector2>
createRandomPath(
int NumWaypoints,
float MinX,
float MinY,
float MaxX,
float MaxY);
108 void set(std::list<steer::Vector2> newPath)
110 m_wayPoints = newPath;
112 m_currentWaypoint = m_wayPoints.begin();
122 m_wayPoints = path.getPath();
123 m_currentWaypoint = m_wayPoints.begin();
139 std::list<steer::Vector2>
getPath()
const {
return m_wayPoints;}
143 std::list<steer::Vector2> m_wayPoints;
146 std::list<steer::Vector2>::iterator m_currentWaypoint;
148 unsigned int m_numWaypoints;