#include <InputData.h>
Inheritance diagram for cmil::Motion:


Public Member Functions | |
| Motion (const std::string &ident) | |
| virtual InputData * | clone () |
| std::string | getName () const |
| void | do_run (MotionAction *action) const |
| void | setMotion (int xrel, int yrel) |
Private Attributes | |
| unsigned int | m_xrel |
| unsigned int | m_yrel |
Definition at line 219 of file InputData.h.
| cmil::Motion::Motion | ( | const std::string & | ident | ) | [inline] |
Definition at line 221 of file InputData.h.
Referenced by clone().
Here is the caller graph for this function:

| virtual InputData* cmil::Motion::clone | ( | ) | [inline, virtual] |
Implements cmil::InputData.
Definition at line 223 of file InputData.h.
References Motion().
00223 { 00224 return new Motion(*this); 00225 };
Here is the call graph for this function:

| void cmil::Motion::do_run | ( | MotionAction * | action | ) | const [inline] |
Definition at line 232 of file InputData.h.
References m_xrel, m_yrel, and cmil::MotionAction::runMotion().
Here is the call graph for this function:

| std::string cmil::Motion::getName | ( | ) | const [inline, virtual] |
| void cmil::Motion::setMotion | ( | int | xrel, | |
| int | yrel | |||
| ) | [inline] |
Definition at line 236 of file InputData.h.
References Logger::log_error(), m_xrel, and m_yrel.
Referenced by cmil::SDL::SDLControllers::translate().
00236 { 00237 if( ((xrel * yrel) <= 1) ) { 00238 m_xrel = xrel; 00239 m_yrel = yrel; 00240 } 00241 else 00242 log_error("setMotion() unable to to set motion due to relative bounds exceeded"); 00243 }
Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int cmil::Motion::m_xrel [private] |
unsigned int cmil::Motion::m_yrel [private] |
1.4.7