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

#include <PressButton.hh>

Inheritance diagram for Action::PressButton:
Inheritance graph
Collaboration diagram for Action::PressButton:
Collaboration graph

Public Member Functions

 PressButton (EKey key)
 
 ~PressButton ()
 
- 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::PressButton::PressButton ( EKey  key)

Press a key

This action releases all keys, and the presses the specifies key

Parameters
keyThe key to press
Action::PressButton::~PressButton ( )

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