#include <AIPathfind.h>
Inherits MemoryPoolObject.
Public Member Functions | |
| PathNode () | |
| Coord3D * | getPosition (void) |
| return position of this node | |
| const Coord3D * | getPosition (void) const |
| return position of this node | |
| void | setPosition (const Coord3D *pos) |
| set the position of this path node | |
| const Coord3D * | computeDirectionVector (void) |
| compute direction to next node | |
| PathNode * | getNext (void) |
| return next node in the path | |
| PathNode * | getPrevious (void) |
| return previous node in the path | |
| const PathNode * | getNext (void) const |
| return next node in the path | |
| const PathNode * | getPrevious (void) const |
| return previous node in the path | |
| PathfindLayerEnum | getLayer (void) const |
| return layer of this node. | |
| void | setLayer (PathfindLayerEnum layer) |
| set the layer of this path node | |
| void | setNextOptimized (PathNode *node) |
| PathNode * | getNextOptimized (Coord2D *dir=NULL, Real *dist=NULL) |
| const PathNode * | getNextOptimized (Coord2D *dir=NULL, Real *dist=NULL) const |
| < return next node in optimized path | |
| void | setCanOptimize (Bool canOpt) |
| Bool | getCanOptimize (void) const |
| PathNode * | prependToList (PathNode *list) |
| given a list, prepend this node, return new list | |
| PathNode * | appendToList (PathNode *list) |
| void | append (PathNode *list) |
| given a node, append to this node | |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Public Attributes | |
| Int | m_id |
Additional Inherited Members | |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
PathNodes are used to create a final Path to return from the pathfinder. Note that these are not used during the A* search.
Definition at line 63 of file AIPathfind.h.
| PathNode::PathNode | ( | ) |
Definition at line 119 of file AIPathfind.cpp.
| void PathNode::append | ( | PathNode * | list | ) |
given a node, append to this node
given a node, append new node to this.
Definition at line 197 of file AIPathfind.cpp.
given a list, append this node, return new list. slow implementation.
given a list, append this node, return new list. slow implementation.
Definition at line 175 of file AIPathfind.cpp.
| const Coord3D * PathNode::computeDirectionVector | ( | void | ) |
compute direction to next node
Compute direction vector to next node
Definition at line 212 of file AIPathfind.cpp.
|
inline |
Definition at line 103 of file AIPathfind.h.
|
inline |
return layer of this node.
Definition at line 79 of file AIPathfind.h.
|
inline |
return next node in the path
Definition at line 74 of file AIPathfind.h.
|
inline |
return next node in the path
Definition at line 76 of file AIPathfind.h.
| dist | return next node in optimized path |
Definition at line 84 of file AIPathfind.h.
|
inline |
< return next node in optimized path
Definition at line 93 of file AIPathfind.h.
|
inline |
return position of this node
Definition at line 68 of file AIPathfind.h.
|
inline |
return position of this node
Definition at line 69 of file AIPathfind.h.
|
inline |
return previous node in the path
Definition at line 75 of file AIPathfind.h.
|
inline |
return previous node in the path
Definition at line 77 of file AIPathfind.h.
given a list, prepend this node, return new list
Definition at line 163 of file AIPathfind.cpp.
|
inline |
Definition at line 102 of file AIPathfind.h.
|
inline |
set the layer of this path node
Definition at line 80 of file AIPathfind.h.
| void PathNode::setNextOptimized | ( | PathNode * | node | ) |
Definition at line 139 of file AIPathfind.cpp.
|
inline |
set the position of this path node
Definition at line 70 of file AIPathfind.h.
|
mutable |
Definition at line 116 of file AIPathfind.h.