|
OpenMoHAA ..
|
Legacy navigation system. More...
#include <navigation_legacy_path.h>
Public Member Functions | |
| virtual void | FindPath (const Vector &start, const Vector &end, const PathSearchParameter ¶meters) override |
| Find and set the path from start to end. | |
| virtual void | FindPathNear (const Vector &start, const Vector &end, float radius, const PathSearchParameter ¶meters) override |
| 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) override |
| Find and set the path away from the specified origin. | |
| virtual bool | TestPath (const Vector &start, const Vector &end, const PathSearchParameter ¶meters) override |
| Returns true if the path exists, false otherwise. | |
| virtual void | UpdatePos (const Vector &origin) override |
| Update path movement. | |
| virtual void | Clear () override |
| Clear the path. | |
| virtual PathNav | GetNode (unsigned int index) const override |
| Return the node at the specified index (0 = first node, and nodecount - 1 = last node). | |
| virtual int | GetNodeCount () const override |
| Return the number of nodes. | |
| virtual Vector | GetCurrentDelta () const override |
| Return the current move delta. | |
| virtual Vector | GetCurrentDirection () const override |
| Return the directional vector towards the path. | |
| virtual Vector | GetDestination () const override |
| Return the final destination. | |
| virtual bool | HasReachedGoal (const Vector &origin) const override |
| Return true if the origin is at the end of the goal. | |
| virtual bool | IsQuerying () const override |
| Return true if the path is currently being calculated. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from IPather | |
| static IPather * | CreatePather () |
| Create a new Pather object based on supported navigation features. | |
Legacy navigation system.
It uses the legacy navigate algorithm from the old game, which uses manually placed PathNode. It's a wrapper to ActorPath.
|
overridevirtual |
Clear the path.
Implements IPather.
|
overridevirtual |
Find and set the path from start to end.
| start | Start of the path. |
| end | End of the path |
| parameters |
Implements IPather.
|
overridevirtual |
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 |
Implements IPather.
|
overridevirtual |
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 |
Implements IPather.
|
overridevirtual |
|
overridevirtual |
Return the directional vector towards the path.
Implements IPather.
|
overridevirtual |
|
overridevirtual |
Return the node at the specified index (0 = first node, and nodecount - 1 = last node).
| index |
Implements IPather.
|
overridevirtual |
Return the number of nodes.
Implements IPather.
|
overridevirtual |
Return true if the origin is at the end of the goal.
| origin | The current origin to test |
Implements IPather.
|
overridevirtual |
|
overridevirtual |
Returns true if the path exists, false otherwise.
| start | Start of the path. |
| end | End of the path |
| parameters |
Implements IPather.
|
overridevirtual |