|
Pokebot
Pokemon FireRed bot
|
#include <MoveTo.hh>


Public Member Functions | |
| MoveTo (uint16_t x, uint16_t y, bool allowApprox=false) | |
| MoveTo (uint8_t tid) | |
| ~MoveTo () | |
| void | addListener (const std::string &signal, void(Action::MoveTo::*listener)()) |
| World::Path * | getPath () const |
Public Member Functions inherited from AAction | |
| AAction () | |
| Action::State | update () |
| virtual | ~AAction () |
| void | queue (AAction *act) |
| void | reset () |
| Action::State | getState () const |
| void | setState (Action::State st) |
| void | emit (const std::string &signal) |
| void | addListener (const std::string &signal, void(*listener)(AAction *)) |
| void | addListener (const std::string &signal, void(AAction::*listener)()) |
Additional Inherited Members | |
Protected Member Functions inherited from AAction | |
| uint32_t | _getCounter () const |
Protected Attributes inherited from AAction | |
| Data & | _data |
| Action::State | _state |
| std::queue< AAction * > | _actions |
| std::map< std::string, std::vector< std::function < void(AAction *)> > > | _listeners |
| Action::MoveTo::MoveTo | ( | uint16_t | x, |
| uint16_t | y, | ||
| bool | allowApprox = false |
||
| ) |
Move to a location
| x,y | Coordinates of the destination |
| allowApprox | If the bot should stop 1 tile before the destination |
| Action::MoveTo::MoveTo | ( | uint8_t | tid | ) |
Move to a person
| tid | Index of the person in the person array |
| Action::MoveTo::~MoveTo | ( | ) |
| void Action::MoveTo::addListener | ( | const std::string & | signal, |
| void(Action::MoveTo::*)() | listener | ||
| ) |
|
inline |
1.8.8