Enki::Robot Class Reference
[Core Enki classes]

#include <PhysicalEngine.h>

Inheritance diagram for Enki::Robot:

Enki::PhysicalObject Enki::Alice Enki::SbotActiveObject Enki::SbotActiveSoundObject List of all members.

Detailed Description

A robot is a PhysicalObject that has additional interactions and a controller.


Public Member Functions

void addLocalInteraction (LocalInteraction *li)
 Add a new local interaction, re-sort interaction vector from long ranged to short ranged.
void addGlobalInteraction (GlobalInteraction *gi)
 Add a global interaction, just add it at the end of the vector.
virtual void initLocalInteractions (double dt, World *w)
 Initialize the local interactions, call init on each one.
virtual void doLocalInteractions (double dt, World *w, PhysicalObject *po)
 Do the local interactions with other objects, call objectStep on each one.
virtual void doLocalWallsInteraction (double dt, World *w)
 Do the local interactions with walls, call wallsStep on each one.
virtual void finalizeLocalInteractions (double dt, World *w)
 All the local interactions are finished, call finalize on each one.
virtual void doGlobalInteractions (double dt, World *w)
 Do the global interactions, call step on each one.
void sortLocalInteractions (void)
 Sort local interactions. Called by addLocalInteraction ; can be called by subclasses in case of interaction radius change.

Protected Attributes

std::vector< LocalInteraction * > localInteractions
 Vector of local interactions.
std::vector< GlobalInteraction * > globalInteractions
 Vector of global interactions.


The documentation for this class was generated from the following files:
Generated on Sun Mar 1 03:10:09 2009 for Enki by  doxygen 1.5.1