00068240.pdf


Vista previa del archivo PDF 00068240.pdf


Página 1...9 10 11121317

Vista previa de texto


};
NODE *OPEN;
NODE *CLOSED;
NODE *PATH;
STACK *Stack;
bool isPath;
int HEIGHT;
int WIDTH;
int TOTAL_TILES;
int *TileMap;
public:
AstarPathfinder( int *map );
~AstarPathfinder();
void InitAstarTileMap( int *map );
void RedoAstarTileMap( int *map );
bool NewPath( int source_x , int source_y , int dest_x , int dest_y );
bool ReachedGoal();
void PathNextNode();
int NodeGetX();
int NodeGetY();
int TileNum( int x , int y );
bool FreeTile( int x , int y );
private:
void BoundaryTiles();
void FreeNodes();
void FindPath( int source_x , int source_y , int dest_x , int dest_y );

11