#include <velocity.hh>
Inheritance diagram for anoid::plugin::Velocity:


Public Methods | |
| virtual simple::Vector | getVelocity () |
| void | setVelocity (simple::Vector &v) |
| virtual void | init (config::Configuration &c) |
| virtual void | update () |
| virtual void | receive (base::Message *m) |
Protected Attributes | |
| simple::Vector | velocity |
|
|
Definition at line 25 of file velocity.cc. References Vector(), and velocity. Referenced by anoid::plugin::anoid::Pad::receive(), and anoid::plugin::Dynamics::receive(). |
|
|
This is the real initialiser. It should take it's parameters from the provided configuration
Reimplemented from anoid::plugin::Move. Reimplemented in anoid::plugin::Acceleration, and anoid::plugin::Dynamics. Definition at line 15 of file velocity.cc. References anoid::base::Ability::registerName(), and velocity. |
|
|
Reimplemented in anoid::plugin::Dynamics. Definition at line 38 of file velocity.cc. References CollisionMessage::getNormal(), CollisionMessage::getOther(), CollisionMessage::getP1(), CollisionMessage::getP2(), anoid::plugin::Move::movement, NULL, anoid::plugin::Position::position, and velocity. |
|
|
Definition at line 29 of file velocity.cc. References Vector(), and velocity. 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::plugin::Move. Reimplemented in anoid::plugin::Acceleration, and anoid::plugin::Dynamics. Definition at line 33 of file velocity.cc. References anoid::base::Object::getWorld(), anoid::plugin::Move::movement, and velocity. |
|
|
Definition at line 11 of file velocity.hh. Referenced by getVelocity(), init(), receive(), anoid::plugin::Dynamics::receive(), setVelocity(), update(), and anoid::plugin::Acceleration::update(). |