Pokebot
Pokemon FireRed bot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PathFinder Class Reference

#include <PathFinder.hh>

Collaboration diagram for PathFinder:
Collaboration graph

Classes

struct  Hill
 

Public Member Functions

 PathFinder (World::Map &m)
 
 ~PathFinder ()
 
World::Pathsearch (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
 

Constructor & Destructor Documentation

PathFinder::PathFinder ( World::Map m)
PathFinder::~PathFinder ( )

Member Function Documentation

bool PathFinder::_checkHills ( int  x,
int  y,
World::Map::Node next,
World::Map::Node curr 
)
protected
bool PathFinder::_checkOverWorld ( uint16_t  x,
uint16_t  y 
)
protected
bool PathFinder::_checkWalkable ( World::Map::Node n)
protected
uint8_t PathFinder::_getMovementCost ( World::Map::Node next)
protected
int PathFinder::_getNextIndex ( World::Path set)
protected
World::Path * PathFinder::_rebuildPath ( World::Path set,
World::Map::Node node 
)
protected
World::Path * PathFinder::search ( uint32_t  xs,
uint32_t  ys,
uint32_t  xe,
uint32_t  ye,
uint8_t  dist = 0 
)

Member Data Documentation

Data& PathFinder::_data
protected
std::vector<Hill> PathFinder::_hills
protected
World::Map& PathFinder::_m
protected
std::map<uint16_t, uint8_t> PathFinder::_movementCost
protected
std::vector<uint8_t> PathFinder::_notMoving
protected
const OverWorld* PathFinder::_ows
protected
std::vector<uint8_t> PathFinder::_walkableTiles
protected

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