Pokebot
Pokemon FireRed bot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
Action::MoveTo Class Reference

#include <MoveTo.hh>

Inheritance diagram for Action::MoveTo:
Inheritance graph
Collaboration diagram for Action::MoveTo:
Collaboration graph

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::PathgetPath () 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
 

Constructor & Destructor Documentation

Action::MoveTo::MoveTo ( uint16_t  x,
uint16_t  y,
bool  allowApprox = false 
)

Move to a location

Parameters
x,yCoordinates of the destination
allowApproxIf the bot should stop 1 tile before the destination
Action::MoveTo::MoveTo ( uint8_t  tid)

Move to a person

Parameters
tidIndex of the person in the person array
Action::MoveTo::~MoveTo ( )

Member Function Documentation

void Action::MoveTo::addListener ( const std::string &  signal,
void(Action::MoveTo::*)()  listener 
)
World::Path* Action::MoveTo::getPath ( ) const
inline

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