Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

anoid::plugin::Velocity Class Reference

#include <velocity.hh>

Inheritance diagram for anoid::plugin::Velocity:

Inheritance graph
[legend]
Collaboration diagram for anoid::plugin::Velocity:

Collaboration graph
[legend]
List of all members.

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

Member Function Documentation

Vector anoid::plugin::Velocity::getVelocity   [virtual]
 

Definition at line 25 of file velocity.cc.

References Vector(), and velocity.

Referenced by anoid::plugin::anoid::Pad::receive(), and anoid::plugin::Dynamics::receive().

void anoid::plugin::Velocity::init config::Configuration   c [virtual]
 

This is the real initialiser. It should take it's parameters from the provided configuration

Parameters:
c  the configuration describing this object and it's children

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.

void anoid::plugin::Velocity::receive base::Message   m [virtual]
 

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.

void anoid::plugin::Velocity::setVelocity simple::Vector   v
 

Definition at line 29 of file velocity.cc.

References Vector(), and velocity.

Referenced by anoid::plugin::anoid::Pad::receive().

void anoid::plugin::Velocity::update   [virtual]
 

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.


Member Data Documentation

simple::Vector anoid::plugin::Velocity::velocity [protected]
 

Definition at line 11 of file velocity.hh.

Referenced by getVelocity(), init(), receive(), anoid::plugin::Dynamics::receive(), setVelocity(), update(), and anoid::plugin::Acceleration::update().


The documentation for this class was generated from the following files:
Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen