#include <object.hh>
Inheritance diagram for anoid::base::Object:


Public Methods | |
| Object * | getParent () |
| AbstractWorld * | getWorld () |
| virtual Object * | add (Object *o) |
| Object (int i=0) | |
| virtual void | init (config::Configuration &c) |
| virtual void | update () |
| virtual void | redraw () |
| virtual void | receive (Message *m) |
| void | listen (const std::string &m) |
Protected Attributes | |
| int | ID |
| Object * | parent |
| AbstractWorld * | world |
| std::vector< Object * > | children |
Definition at line 28 of file object.hh.
|
|
Construct a new Object
Definition at line 22 of file object.cc. References anoid::simple::i(), and NULL. Referenced by anoid::plugin::Force::Force(). |
|
|
Add an object to this object (+ set up parent and world)
Reimplemented in anoid::base::Element. Definition at line 11 of file object.cc. References children, anoid::base::AbstractWorld::getFreshID(), ID, NULL, parent, and world. Referenced by init(). |
|
|
getParent
Definition at line 38 of file object.hh. Referenced by anoid::plugin::Force::Force(), and anoid::base::Ability::init(). |
|
|
getWorld
Definition at line 42 of file object.hh. Referenced by anoid::plugin::Force::Force(), anoid::plugin::Gravitation::getApplicationPoint(), anoid::plugin::Rotation::init(), anoid::plugin::Move::init(), anoid::plugin::Box::init(), anoid::base::Ability::init(), listen(), anoid::plugin::Scale::redraw(), anoid::plugin::Position::redraw(), anoid::base::Element::redraw(), anoid::plugin::Box::redraw(), anoid::plugin::Velocity::update(), anoid::plugin::SpinVelocity::update(), anoid::plugin::Dynamics::update(), and anoid::plugin::Acceleration::update(). |
|
|
This is the real initialiser. It should take it's parameters from the provided configuration
Reimplemented in anoid::base::Ability, anoid::plugin::Acceleration, anoid::plugin::Alpha, anoid::plugin::AscShape, anoid::plugin::Box, anoid::plugin::Color, anoid::plugin::Dynamics, anoid::plugin::Mass, anoid::plugin::Move, anoid::plugin::anoid::Pad, anoid::plugin::Position, anoid::plugin::Rotation, anoid::plugin::Scale, anoid::plugin::Sphere, anoid::plugin::Spin, anoid::plugin::SpinVelocity, anoid::plugin::Velocity, and anoid::main::World. Definition at line 25 of file object.cc. References add(), children, anoid::base::AbstractWorld::loadObject(), and world. |
|
|
Definition at line 58 of file object.cc. References getWorld(), and anoid::base::AbstractWorld::listen(). Referenced by anoid::plugin::anoid::Pad::init(). |
|
|
Called when a message has been sent, and this object has subscribed to it
Definition at line 52 of file object.cc. References children, and anoid::simple::i(). |
|
|
Called just after update has been called on the entire world. This should draw the objects (using OpenGL). Reimplemented in anoid::plugin::Alpha, anoid::plugin::AscShape, anoid::plugin::Box, anoid::plugin::Color, anoid::plugin::Dynamics, anoid::base::Element, anoid::plugin::Position, anoid::plugin::Rotation, anoid::plugin::Scale, anoid::base::Shape, anoid::plugin::Sphere, anoid::plugin::SpinVelocity, and anoid::main::World. Definition at line 46 of file object.cc. References children, and anoid::simple::i(). Referenced by anoid::main::Anoid::runLevel(). |
|
|
Called when the main loop is ready for another step. Should be used to perform any calculations prior to movement. Reimplemented in anoid::plugin::Acceleration, anoid::plugin::Dynamics, anoid::plugin::Move, anoid::plugin::Spin, anoid::plugin::SpinVelocity, anoid::plugin::Velocity, and anoid::main::World. Definition at line 40 of file object.cc. References children, and anoid::simple::i(). Referenced by anoid::main::Anoid::runLevel(). |
|
|
Definition at line 33 of file object.hh. Referenced by add(), anoid::main::World::begin(), anoid::main::World::end(), init(), receive(), redraw(), and update(). |
|
|
Definition at line 30 of file object.hh. Referenced by add(). |
|
|
Definition at line 31 of file object.hh. Referenced by add(), anoid::plugin::Sphere::init(), anoid::plugin::Box::init(), and anoid::plugin::AscShape::init(). |
|
|
Definition at line 32 of file object.hh. Referenced by add(), init(), and anoid::main::World::World(). |