#include <move.hh>
Inheritance diagram for anoid::plugin::Move:


Public Methods | |
| virtual simple::Vector | getMovement () |
| simple::Vector | getOldPosition () |
| void | setPosition (simple::Vector &p) |
| void | setMovement (simple::Vector &m) |
| virtual void | init (config::Configuration &c) |
| virtual void | update () |
Protected Attributes | |
| simple::Vector | movement |
| simple::Vector | oldPosition |
Definition at line 13 of file move.hh.
|
|
Definition at line 19 of file move.cc. References movement, and Vector(). Referenced by update(). |
|
|
|
|
|
This is the real initialiser. It should take it's parameters from the provided configuration
Reimplemented from anoid::plugin::Position. Reimplemented in anoid::plugin::Acceleration, anoid::plugin::Dynamics, and anoid::plugin::Velocity. Definition at line 11 of file move.cc. References anoid::base::Object::getWorld(), movement, anoid::base::Ability::parentElement, and anoid::base::Ability::registerName(). |
|
|
|
|
|
Definition at line 23 of file move.cc. References anoid::plugin::Position::position, and Vector(). Referenced by anoid::plugin::anoid::Pad::receive(). |
|
|
Called when the main loop is ready for another step. Should be used to perform any calculations prior to movement. Reimplemented from anoid::base::Object. Reimplemented in anoid::plugin::Acceleration, anoid::plugin::Dynamics, and anoid::plugin::Velocity. Definition at line 31 of file move.cc. References getMovement(), oldPosition, and anoid::plugin::Position::position. |
|
|
Definition at line 15 of file move.hh. Referenced by getMovement(), init(), anoid::plugin::Velocity::receive(), setMovement(), and anoid::plugin::Velocity::update(). |
|
|
Definition at line 16 of file move.hh. Referenced by anoid::plugin::Dynamics::receive(), and update(). |