OpenMoHAA 0.82.0
|
Public Member Functions | |
virtual void | FindPath (const Vector &start, const Vector &end, const PathSearchParameter ¶meters)=0 |
Find and set the path from start to end. | |
virtual void | FindPathNear (const Vector &start, const Vector &end, float radius, const PathSearchParameter ¶meters)=0 |
Find and set the path from start to end with the specified goal radius. | |
virtual void | FindPathAway (const Vector &start, const Vector &avoid, const Vector &preferredDir, float radius, const PathSearchParameter ¶meters)=0 |
Find and set the path away from the specified origin. | |
virtual bool | TestPath (const Vector &start, const Vector &end, const PathSearchParameter ¶meters)=0 |
Returns true if the path exists, false otherwise. | |
virtual void | UpdatePos (const Vector &origin)=0 |
Update path movement. | |
virtual void | Clear ()=0 |
Clear the path. | |
virtual PathNav | GetNode (unsigned int index=0) const =0 |
Return the node at the specified index (0 = first node, and nodecount - 1 = last node). | |
virtual int | GetNodeCount () const =0 |
Return the number of nodes. | |
virtual Vector | GetCurrentDelta () const =0 |
Return the current move delta. | |
virtual Vector | GetCurrentDirection () const =0 |
Return the directional vector towards the path. | |
virtual Vector | GetDestination () const =0 |
Return the final destination. | |
virtual bool | HasReachedGoal (const Vector &origin) const =0 |
Return true if the origin is at the end of the goal. | |
virtual bool | IsQuerying () const =0 |
Return true if the path is currently being calculated. | |
![]() | |
void * | operator new (size_t s) |
void | operator delete (void *ptr) |
void * | operator new (size_t size, void *placement) |
void | operator delete (void *ptr, void *placement) |
template<typename T> | |
void * | operator new (size_t size, T &placement) |
template<typename T> | |
void | operator delete (void *ptr, T &placement) |
Static Public Member Functions | |
static IPather * | CreatePather () |
Create a new Pather object based on supported navigation features. | |
|
pure virtual |
Clear the path.
Implemented in LegacyPather, and RecastPather.
|
static |
Create a new Pather object based on supported navigation features.
|
pure virtual |
Find and set the path from start to end.
start | Start of the path. |
end | End of the path |
parameters |
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Find and set the path away from the specified origin.
start | Start of the path |
avoid | Location to avoid |
preferredDir | Preferred direction to use to escape from the location to avoid |
radius | Minimum safe distance to avoid |
parameters |
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Find and set the path from start to end with the specified goal radius.
start | Start of the path |
end | End of the path |
radius | The radius at which to stop the path |
parameters |
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Return the current move delta.
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Return the directional vector towards the path.
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Return the final destination.
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Return the node at the specified index (0 = first node, and nodecount - 1 = last node).
index |
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Return the number of nodes.
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Return true if the origin is at the end of the goal.
origin | The current origin to test |
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Return true if the path is currently being calculated.
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Returns true if the path exists, false otherwise.
start | Start of the path. |
end | End of the path |
parameters |
Implemented in LegacyPather, and RecastPather.
|
pure virtual |
Update path movement.
origin | The origin to set |
Implemented in LegacyPather, and RecastPather.