68 PortalRoute(
unsigned int start,
unsigned int end );
183 #endif // __ROUTE_H__
PortalRoute(unsigned int start, unsigned int end)
Constructor.
Definition: Route.cpp:49
The basic structure defining a way "point" along a path through a navigation mesh. It consists of the navigation mesh edge to pass through and the node one should be in while heading to the edge.
Definition: WayPortal.h:64
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
float _maxWidth
The maximum width an agent can be to take this route.
Definition: Route.h:163
unsigned int getStartNode() const
Returns the identifier for the first node on the route.
Definition: Route.h:80
bool isEquivalent(const PortalRoute *route)
Reports if the two routes have the same envelope.
Definition: Route.cpp:68
void appendWayPortal(const NavMeshEdge *edge, unsigned int node)
Appends a way portal to the path.
Definition: Route.cpp:59
unsigned int getPortalNode(size_t i) const
Reports the node for the ith portal.
Definition: Route.h:103
~PortalRoute()
Destructor.
Definition: Route.cpp:54
unsigned int _endNode
The end node.
Definition: Route.h:158
The navigation mesh adjacency graph edge.
Definition: NavMeshEdge.h:72
unsigned int _startNode
The start node.
Definition: Route.h:153
Class for computing paths through a navigation mesh.
Definition: PathPlanner.h:133
float _length
The length of the route.
Definition: Route.h:174
The definition of a route through a navigation mesh from a start to an end node.
Definition: Route.h:60
WayPortal * getPortal(size_t i)
Gets the ith portal.
Definition: Route.h:111
const WayPortal * getPortal(size_t i) const
Gets a const version of the ith portal.
Definition: Route.h:119
std::vector< WayPortal > _portals
The list of portals to pass through along the route.
Definition: Route.h:179
float getLength() const
Report the length of the path.
Definition: Route.h:144
Defines a way portal for a navigation mesh route/path.
size_t getPortalCount() const
Reports the number of portals on the route.
Definition: Route.h:94
float _bestSmallest
The smallest agent width for which this has proven to be the optimal path.
Definition: Route.h:169
unsigned int getEndNode() const
Returns the identifier for the destination node on the route.
Definition: Route.h:87