Pokebot
Pokemon FireRed bot
|
#include <PathFinder.hh>
Classes | |
struct | Hill |
Public Member Functions | |
PathFinder (World::Map &m) | |
~PathFinder () | |
World::Path * | search (uint32_t xs, uint32_t ys, uint32_t xe, uint32_t ye, uint8_t dist=0) |
Protected Member Functions | |
int | _getNextIndex (World::Path *set) |
World::Path * | _rebuildPath (World::Path *set, World::Map::Node *node) |
bool | _checkHills (int x, int y, World::Map::Node &next, World::Map::Node &curr) |
bool | _checkWalkable (World::Map::Node &n) |
bool | _checkOverWorld (uint16_t x, uint16_t y) |
uint8_t | _getMovementCost (World::Map::Node &next) |
Protected Attributes | |
World::Map & | _m |
const OverWorld * | _ows |
Data & | _data |
std::map< uint16_t, uint8_t > | _movementCost |
std::vector< uint8_t > | _walkableTiles |
std::vector< Hill > | _hills |
std::vector< uint8_t > | _notMoving |
PathFinder::PathFinder | ( | World::Map & | m | ) |
PathFinder::~PathFinder | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
World::Path * PathFinder::search | ( | uint32_t | xs, |
uint32_t | ys, | ||
uint32_t | xe, | ||
uint32_t | ye, | ||
uint8_t | dist = 0 |
||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |