#include <AIPathfind.h>
Static Public Member Functions | |
| static void | allocateCellInfos (void) |
| static void | releaseCellInfos (void) |
| static PathfindCellInfo * | getACellInfo (PathfindCell *cell, const ICoord2D &pos) |
| static void | releaseACellInfo (PathfindCellInfo *theInfo) |
Protected Attributes | |
| PathfindCellInfo * | m_nextOpen |
| PathfindCellInfo * | m_prevOpen |
| for A* "open" list, shared by closed list | |
| PathfindCellInfo * | m_pathParent |
| "parent" cell from pathfinder | |
| PathfindCell * | m_cell |
| Cell this info belongs to currently. | |
| UnsignedShort | m_totalCost |
| UnsignedShort | m_costSoFar |
| cost estimates for A* search | |
| ICoord2D | m_pos |
| have to include cell's coordinates, since cells are often accessed via pointer only | |
| ObjectID | m_goalUnitID |
| The objectID of the ground unit whose goal this is. | |
| ObjectID | m_posUnitID |
| The objectID of the ground unit that is occupying this cell. | |
| ObjectID | m_goalAircraftID |
| The objectID of the aircraft whose goal this is. | |
| ObjectID | m_obstacleID |
| the object ID who overlaps this cell | |
| UnsignedInt | m_isFree:1 |
| UnsignedInt | m_blockedByAlly:1 |
| True if this cell is blocked by an allied unit. | |
| UnsignedInt | m_obstacleIsFence:1 |
| True if occupied by a fence. | |
| UnsignedInt | m_obstacleIsTransparent:1 |
| UnsignedInt | m_open:1 |
| place for marking this cell as on the open list | |
| UnsignedInt | m_closed:1 |
| place for marking this cell as on the closed list | |
Static Protected Attributes | |
| static PathfindCellInfo * | s_infoArray = NULL |
| static PathfindCellInfo * | s_firstFree = NULL |
Friends | |
| class | PathfindCell |
Definition at line 207 of file AIPathfind.h.
|
static |
Allocates a pool of pathfind cell infos.
Definition at line 1110 of file AIPathfind.cpp.
|
static |
Gets a pathfindcellinfo.
Definition at line 1146 of file AIPathfind.cpp.
|
static |
Returns a pathfindcellinfo.
Definition at line 1177 of file AIPathfind.cpp.
|
static |
Releases a pool of pathfind cell infos.
Definition at line 1126 of file AIPathfind.cpp.
|
friend |
Definition at line 209 of file AIPathfind.h.
|
protected |
True if this cell is blocked by an allied unit.
Definition at line 239 of file AIPathfind.h.
|
protected |
Cell this info belongs to currently.
Definition at line 225 of file AIPathfind.h.
|
protected |
place for marking this cell as on the closed list
Definition at line 244 of file AIPathfind.h.
|
protected |
cost estimates for A* search
Definition at line 227 of file AIPathfind.h.
|
protected |
The objectID of the aircraft whose goal this is.
Definition at line 234 of file AIPathfind.h.
|
protected |
The objectID of the ground unit whose goal this is.
Definition at line 232 of file AIPathfind.h.
|
protected |
Definition at line 238 of file AIPathfind.h.
|
protected |
Definition at line 222 of file AIPathfind.h.
|
protected |
the object ID who overlaps this cell
Definition at line 236 of file AIPathfind.h.
|
protected |
True if occupied by a fence.
Definition at line 240 of file AIPathfind.h.
|
protected |
True if obstacle is transparent (undefined if obstacleid is invalid)
Definition at line 241 of file AIPathfind.h.
|
protected |
place for marking this cell as on the open list
Definition at line 243 of file AIPathfind.h.
|
protected |
"parent" cell from pathfinder
Definition at line 224 of file AIPathfind.h.
|
protected |
have to include cell's coordinates, since cells are often accessed via pointer only
Definition at line 230 of file AIPathfind.h.
|
protected |
The objectID of the ground unit that is occupying this cell.
Definition at line 233 of file AIPathfind.h.
|
protected |
for A* "open" list, shared by closed list
Definition at line 222 of file AIPathfind.h.
|
protected |
Definition at line 227 of file AIPathfind.h.
|
staticprotected |
Definition at line 219 of file AIPathfind.h.
|
staticprotected |
Definition at line 218 of file AIPathfind.h.