orxonox::MultiStateEngine Class Reference

#include <src/orxonox/objects/items/MultiStateEngine.h>

Inheritance diagram for orxonox::MultiStateEngine:

orxonox::Engine orxonox::Item orxonox::Tickable orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

void addActiveEffect (WorldEntity *effect)
void addBoostEffect (WorldEntity *effect)
void addBrakeEffect (WorldEntity *effect)
void addForwardEffect (WorldEntity *effect)
virtual void addToSpaceShip (SpaceShip *ship)
WorldEntitygetActiveEffect (unsigned int index) const
WorldEntitygetBoostEffect (unsigned int index) const
WorldEntitygetBrakeEffect (unsigned int index) const
WorldEntitygetForwardEffect (unsigned int index) const
 MultiStateEngine (BaseObject *creator)
void registerVariables ()
virtual void tick (float dt)
 Gets called every frame.
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~MultiStateEngine ()

Private Attributes

std::list< WorldEntity * > activeEffects_
std::list< WorldEntity * > boostEffects_
std::list< WorldEntity * > brakeEffects_
std::list< WorldEntity * > forwardEffects_
unsigned char state_


Constructor & Destructor Documentation

orxonox::MultiStateEngine::MultiStateEngine ( BaseObject creator  ) 

orxonox::MultiStateEngine::~MultiStateEngine (  )  [virtual]


Member Function Documentation

void orxonox::MultiStateEngine::addActiveEffect ( WorldEntity effect  ) 

void orxonox::MultiStateEngine::addBoostEffect ( WorldEntity effect  ) 

void orxonox::MultiStateEngine::addBrakeEffect ( WorldEntity effect  ) 

void orxonox::MultiStateEngine::addForwardEffect ( WorldEntity effect  ) 

void orxonox::MultiStateEngine::addToSpaceShip ( SpaceShip ship  )  [virtual]

WorldEntity * orxonox::MultiStateEngine::getActiveEffect ( unsigned int  index  )  const

References activeEffects_.

Referenced by XMLPort().

WorldEntity * orxonox::MultiStateEngine::getBoostEffect ( unsigned int  index  )  const

References boostEffects_.

Referenced by XMLPort().

WorldEntity * orxonox::MultiStateEngine::getBrakeEffect ( unsigned int  index  )  const

References brakeEffects_.

Referenced by XMLPort().

WorldEntity * orxonox::MultiStateEngine::getForwardEffect ( unsigned int  index  )  const

References forwardEffects_.

Referenced by XMLPort().

void orxonox::MultiStateEngine::registerVariables (  ) 

void orxonox::MultiStateEngine::tick ( float  dt  )  [virtual]

void orxonox::MultiStateEngine::XMLPort ( Element &  xmlelement,
XMLPort::Mode  mode 
) [virtual]

XML loading and saving.

Parameters:
xmlelement The XML-element
loading Loading (true) or saving (false)
Returns:
The XML-element

Reimplemented from orxonox::Engine.

References addActiveEffect(), addBoostEffect(), addBrakeEffect(), addForwardEffect(), getActiveEffect(), getBoostEffect(), getBrakeEffect(), getForwardEffect(), SUPER, and XMLPortObject.


Member Data Documentation

unsigned char orxonox::MultiStateEngine::state_ [private]

Reimplemented from orxonox::Synchronisable.

Referenced by MultiStateEngine(), registerVariables(), and tick().


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:22:45 2009 for Orxonox by  doxygen 1.5.6