ScummVM API documentation
Crab::PathfindingGrid Class Reference

Public Member Functions

void reset ()
 
void setupNodes (const TMX::TMXMap &map)
 
PathfindingGraphNodegetNodeAtPoint (Vector2f point)
 
PathfindingGraphNodegetNodeAtCoords (int x, int y)
 
Vector2i getDimensions ()
 
Vector2f getCellSize ()
 
PathfindingGraphNodegetNearestOpenNode (Vector2f nodePos, Vector2f comparePos)
 
Common::Array< PathfindingGraphNode * > cornerCheck (const PathfindingGraphNode *node1, const PathfindingGraphNode *node2)
 

Public Attributes

int _blockedCost
 
int _openCost
 
int _stairsCost
 

Static Public Attributes

static const int BLOCKED = -1
 
static const int OPEN = 1
 
static const int STAIRS = 5
 

The documentation for this class was generated from the following file: