Pyrogenesis
13997
|
Tile data for A* computation. More...
Public Types | |
enum | { STATUS_UNEXPLORED = 0, STATUS_OPEN = 1, STATUS_CLOSED = 2 } |
Public Member Functions | |
bool | IsUnexplored () |
bool | IsOpen () |
bool | IsClosed () |
void | SetStatusOpen () |
void | SetStatusClosed () |
u16 | GetPredI (u16 i) |
u16 | GetPredJ (u16 j) |
void | SetPred (u16 pi_, u16 pj_, u16 i, u16 j) |
u32 | GetStep () |
void | SetStep (u32 s) |
Public Attributes | |
u32 | cost |
u32 | h |
Private Attributes | |
u8 | status |
i8 | dpi |
i8 | dpj |
u32 | step |
Tile data for A* computation.
(We store an array of one of these per terrain tile, so it ought to be optimised for size)
Definition at line 47 of file CCmpPathfinder_Tile.cpp.
anonymous enum |
Enumerator | |
---|---|
STATUS_UNEXPLORED | |
STATUS_OPEN | |
STATUS_CLOSED |
Definition at line 50 of file CCmpPathfinder_Tile.cpp.
Definition at line 63 of file CCmpPathfinder_Tile.cpp.
Definition at line 64 of file CCmpPathfinder_Tile.cpp.
|
inline |
Definition at line 85 of file CCmpPathfinder_Tile.cpp.
|
inline |
Definition at line 58 of file CCmpPathfinder_Tile.cpp.
|
inline |
Definition at line 57 of file CCmpPathfinder_Tile.cpp.
|
inline |
Definition at line 56 of file CCmpPathfinder_Tile.cpp.
Definition at line 66 of file CCmpPathfinder_Tile.cpp.
|
inline |
Definition at line 60 of file CCmpPathfinder_Tile.cpp.
|
inline |
Definition at line 59 of file CCmpPathfinder_Tile.cpp.
|
inline |
Definition at line 86 of file CCmpPathfinder_Tile.cpp.
u32 PathfindTile::cost |
Definition at line 81 of file CCmpPathfinder_Tile.cpp.
|
private |
Definition at line 79 of file CCmpPathfinder_Tile.cpp.
|
private |
Definition at line 79 of file CCmpPathfinder_Tile.cpp.
u32 PathfindTile::h |
Definition at line 82 of file CCmpPathfinder_Tile.cpp.
|
private |
Definition at line 78 of file CCmpPathfinder_Tile.cpp.
|
private |
Definition at line 88 of file CCmpPathfinder_Tile.cpp.