Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Tile data for A* computation. More...
#include <LongPathfinder.h>
Public Types | |
enum | { STATUS_UNEXPLORED = 0 , STATUS_OPEN = 1 , STATUS_CLOSED = 2 } |
Public Member Functions | |
bool | IsUnexplored () const |
bool | IsOpen () const |
bool | IsClosed () const |
void | SetStatusOpen () |
void | SetStatusClosed () |
int | GetPredI (int i) const |
int | GetPredJ (int j) const |
PathCost | GetCost () const |
void | SetCost (PathCost cost) |
u8 | GetStatus () const |
void | SetStatus (u8 s) |
int | GetPredDI () const |
int | GetPredDJ () const |
void | SetPred (int pi, int pj, int i, int j) |
Private Attributes | |
PathCost | g |
u32 | data |
Tile data for A* computation.
(We store an array of one of these per terrain tile, so it ought to be optimised for size)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |