OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
IPather Class Referenceabstract
Inheritance diagram for IPather:
LightClass LegacyPather RecastPather

Public Member Functions

virtual void FindPath (const Vector &start, const Vector &end, const PathSearchParameter &parameters)=0
 Find and set the path from start to end.
 
virtual void FindPathNear (const Vector &start, const Vector &end, float radius, const PathSearchParameter &parameters)=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 &parameters)=0
 Find and set the path away from the specified origin.
 
virtual bool TestPath (const Vector &start, const Vector &end, const PathSearchParameter &parameters)=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.
 
- Public Member Functions inherited from LightClass
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 IPatherCreatePather ()
 Create a new Pather object based on supported navigation features.
 

Member Function Documentation

◆ Clear()

virtual void IPather::Clear ( )
pure virtual

Clear the path.

Implemented in LegacyPather, and RecastPather.

◆ CreatePather()

IPather * IPather::CreatePather ( )
static

Create a new Pather object based on supported navigation features.

Returns
IPather*

◆ FindPath()

virtual void IPather::FindPath ( const Vector & start,
const Vector & end,
const PathSearchParameter & parameters )
pure virtual

Find and set the path from start to end.

Parameters
startStart of the path.
endEnd of the path
parameters

Implemented in LegacyPather, and RecastPather.

◆ FindPathAway()

virtual void IPather::FindPathAway ( const Vector & start,
const Vector & avoid,
const Vector & preferredDir,
float radius,
const PathSearchParameter & parameters )
pure virtual

Find and set the path away from the specified origin.

Parameters
startStart of the path
avoidLocation to avoid
preferredDirPreferred direction to use to escape from the location to avoid
radiusMinimum safe distance to avoid
parameters

Implemented in LegacyPather, and RecastPather.

◆ FindPathNear()

virtual void IPather::FindPathNear ( const Vector & start,
const Vector & end,
float radius,
const PathSearchParameter & parameters )
pure virtual

Find and set the path from start to end with the specified goal radius.

Parameters
startStart of the path
endEnd of the path
radiusThe radius at which to stop the path
parameters

Implemented in LegacyPather, and RecastPather.

◆ GetCurrentDelta()

virtual Vector IPather::GetCurrentDelta ( ) const
pure virtual

Return the current move delta.

Returns
Vector with the current move delta.

Implemented in LegacyPather, and RecastPather.

◆ GetCurrentDirection()

virtual Vector IPather::GetCurrentDirection ( ) const
pure virtual

Return the directional vector towards the path.

Returns
Vector with the current directional vector.

Implemented in LegacyPather, and RecastPather.

◆ GetDestination()

virtual Vector IPather::GetDestination ( ) const
pure virtual

Return the final destination.

Returns
Vector the destination.

Implemented in LegacyPather, and RecastPather.

◆ GetNode()

virtual PathNav IPather::GetNode ( unsigned int index = 0) const
pure virtual

Return the node at the specified index (0 = first node, and nodecount - 1 = last node).

Parameters
index
Returns
A copy of the path information.

Implemented in LegacyPather, and RecastPather.

◆ GetNodeCount()

virtual int IPather::GetNodeCount ( ) const
pure virtual

Return the number of nodes.

Returns
The number of nodes. If 0, then there is no path.

Implemented in LegacyPather, and RecastPather.

◆ HasReachedGoal()

virtual bool IPather::HasReachedGoal ( const Vector & origin) const
pure virtual

Return true if the origin is at the end of the goal.

Parameters
originThe current origin to test

Implemented in LegacyPather, and RecastPather.

◆ IsQuerying()

virtual bool IPather::IsQuerying ( ) const
pure virtual

Return true if the path is currently being calculated.

Returns
true
false

Implemented in LegacyPather, and RecastPather.

◆ TestPath()

virtual bool IPather::TestPath ( const Vector & start,
const Vector & end,
const PathSearchParameter & parameters )
pure virtual

Returns true if the path exists, false otherwise.

Parameters
startStart of the path.
endEnd of the path
parameters
Returns
true if the path exists

Implemented in LegacyPather, and RecastPather.

◆ UpdatePos()

virtual void IPather::UpdatePos ( const Vector & origin)
pure virtual

Update path movement.

Parameters
originThe origin to set

Implemented in LegacyPather, and RecastPather.


The documentation for this class was generated from the following files: