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

anoid::base::Ability Class Reference

#include <ability.hh>

Inheritance diagram for anoid::base::Ability:

Inheritance graph
[legend]
Collaboration diagram for anoid::base::Ability:

Collaboration graph
[legend]
List of all members.

Public Methods

std::string getName ()
virtual void init (config::Configuration &c)
virtual Ability * lookupFellowAbility (const char *c)

Protected Methods

void registerName (const char *c)

Protected Attributes

std::string name
ElementparentElement

Member Function Documentation

std::string anoid::base::Ability::getName   [inline]
 

Definition at line 18 of file ability.hh.

References name.

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

Reimplemented in anoid::plugin::Acceleration, anoid::plugin::Alpha, anoid::plugin::Color, anoid::plugin::Dynamics, anoid::plugin::Mass, anoid::plugin::Move, anoid::plugin::Position, anoid::plugin::Rotation, anoid::plugin::Scale, anoid::plugin::Spin, anoid::plugin::SpinVelocity, and anoid::plugin::Velocity.

Definition at line 12 of file ability.cc.

References anoid::base::Object::getParent(), anoid::base::Object::getWorld(), name, NULL, and parentElement.

Ability * anoid::base::Ability::lookupFellowAbility const char *    c [virtual]
 

Todo:
Error handling

Definition at line 32 of file ability.cc.

References anoid::base::Element::abilities, and parentElement.

void anoid::base::Ability::registerName const char *    c [protected]
 

Definition at line 36 of file ability.cc.

References anoid::base::Element::abilities, and parentElement.

Referenced by anoid::plugin::Velocity::init(), anoid::plugin::SpinVelocity::init(), anoid::plugin::Spin::init(), anoid::plugin::Scale::init(), anoid::plugin::Rotation::init(), anoid::plugin::Position::init(), anoid::plugin::Move::init(), anoid::plugin::Mass::init(), anoid::plugin::Dynamics::init(), anoid::plugin::Color::init(), anoid::plugin::Alpha::init(), and anoid::plugin::Acceleration::init().


Member Data Documentation

std::string anoid::base::Ability::name [protected]
 

Definition at line 14 of file ability.hh.

Referenced by getName(), and init().

Element* anoid::base::Ability::parentElement [protected]
 

Definition at line 16 of file ability.hh.

Referenced by anoid::plugin::SpinVelocity::init(), anoid::plugin::Rotation::init(), anoid::plugin::Move::init(), init(), lookupFellowAbility(), and registerName().


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