#include <InputData.h>
Inheritance diagram for cmil::Hat:
Public Member Functions | |
Hat (const std::string &ident) | |
virtual InputData * | clone () |
virtual void | setPosition (HatAction::Position pos) |
const HatAction::Position | getPosition () const |
void | do_run (HatAction *action) const |
Private Attributes | |
HatAction::Position | m_pos |
Definition at line 306 of file InputData.h.
cmil::Hat::Hat | ( | const std::string & | ident | ) | [inline] |
Definition at line 308 of file InputData.h.
Referenced by clone().
Here is the caller graph for this function:
virtual InputData* cmil::Hat::clone | ( | ) | [inline, virtual] |
Implements cmil::InputData.
Definition at line 310 of file InputData.h.
References Hat().
00310 { 00311 return new Hat(*this); 00312 };
Here is the call graph for this function:
void cmil::Hat::do_run | ( | HatAction * | action | ) | const [inline] |
Definition at line 321 of file InputData.h.
References m_pos, and cmil::HatAction::Movement().
00321 { 00322 action->Movement(m_pos); 00323 };
Here is the call graph for this function:
const HatAction::Position cmil::Hat::getPosition | ( | ) | const [inline] |
virtual void cmil::Hat::setPosition | ( | HatAction::Position | pos | ) | [inline, virtual] |
Definition at line 314 of file InputData.h.
References m_pos.
Referenced by cmil::SDL::SDLControllers::translate().
00314 { 00315 m_pos = pos; 00316 };
Here is the caller graph for this function:
HatAction::Position cmil::Hat::m_pos [private] |
Definition at line 323 of file InputData.h.
Referenced by do_run(), getPosition(), and setPosition().