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

anoid::plugin::Position Class Reference

#include <position.hh>

Inheritance diagram for anoid::plugin::Position:

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

Collaboration graph
[legend]
List of all members.

Public Methods

virtual simple::Vector getPosition ()
virtual void redraw ()
virtual void init (config::Configuration &c)

Protected Attributes

simple::Vector position

Detailed Description

This is the ability to have a position

Definition at line 14 of file position.hh.


Member Function Documentation

Vector anoid::plugin::Position::getPosition   [virtual]
 

Definition at line 12 of file position.cc.

References position, and Vector().

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

void anoid::plugin::Position::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::base::Ability.

Reimplemented in anoid::plugin::Acceleration, anoid::plugin::Dynamics, anoid::plugin::Move, and anoid::plugin::Velocity.

Definition at line 21 of file position.cc.

References position, and anoid::base::Ability::registerName().

void anoid::plugin::Position::redraw   [virtual]
 

Called just after update has been called on the entire world. This should draw the objects (using OpenGL).

Reimplemented from anoid::base::Object.

Reimplemented in anoid::plugin::Dynamics.

Definition at line 16 of file position.cc.

References anoid::base::Object::getWorld(), and position.


Member Data Documentation

simple::Vector anoid::plugin::Position::position [protected]
 

Definition at line 16 of file position.hh.

Referenced by getPosition(), init(), anoid::plugin::Velocity::receive(), anoid::plugin::Dynamics::receive(), redraw(), anoid::plugin::Move::setPosition(), and anoid::plugin::Move::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