orxonox::Engine Class Reference

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

Inheritance diagram for orxonox::Engine:

orxonox::Item orxonox::Tickable orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::MultiStateEngine

List of all members.

Public Member Functions

virtual void addToSpaceShip (SpaceShip *ship)
virtual void changedActivity ()
 This function gets called if the activity of the object changes.
 Engine (BaseObject *creator)
float getAccelerationBack () const
float getAccelerationBrake () const
float getAccelerationFront () const
float getAccelerationLeftRight () const
float getAccelerationUpDown () const
float getBoostFactor () const
virtual const Vector3 & getDirection () const
float getMaxSpeedBack () const
float getMaxSpeedFront () const
float getMaxSpeedLeftRight () const
float getMaxSpeedUpDown () const
SpaceShipgetShip () const
float getSpeedFactor () const
void loadSound (const std::string filename)
void registerVariables ()
void setAccelerationBack (float acceleration)
void setAccelerationBrake (float acceleration)
void setAccelerationFront (float acceleration)
void setAccelerationLeftRight (float acceleration)
void setAccelerationUpDown (float acceleration)
void setBoostFactor (float factor)
void setConfigValues ()
 Function to collect the SetConfigValue-macro calls.
void setMaxSpeedBack (float speed)
void setMaxSpeedFront (float speed)
void setMaxSpeedLeftRight (float speed)
void setMaxSpeedUpDown (float speed)
void setSpeedFactor (float factor)
virtual void tick (float dt)
 Gets called every frame.
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~Engine ()

Private Member Functions

void networkcallback_shipID ()

Private Attributes

float accelerationBack_
float accelerationBrake_
float accelerationFront_
float accelerationLeftRight_
float accelerationUpDown_
float blurStrength_
ShaderboostBlur_
float boostFactor_
float maxSpeedBack_
float maxSpeedFront_
float maxSpeedLeftRight_
float maxSpeedUpDown_
SpaceShipship_
unsigned int shipID_
SoundBasesound_
float speedFactor_


Constructor & Destructor Documentation

orxonox::Engine::Engine ( BaseObject creator  ) 

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


Member Function Documentation

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

void orxonox::Engine::changedActivity (  )  [virtual]

This function gets called if the activity of the object changes.

Reimplemented from orxonox::BaseObject.

References boostBlur_, orxonox::BaseObject::isVisible(), orxonox::Shader::setVisible(), and SUPER.

float orxonox::Engine::getAccelerationBack (  )  const [inline]

float orxonox::Engine::getAccelerationBrake (  )  const [inline]

float orxonox::Engine::getAccelerationFront (  )  const [inline]

float orxonox::Engine::getAccelerationLeftRight (  )  const [inline]

float orxonox::Engine::getAccelerationUpDown (  )  const [inline]

float orxonox::Engine::getBoostFactor (  )  const [inline]

const Vector3 & orxonox::Engine::getDirection (  )  const [virtual]

float orxonox::Engine::getMaxSpeedBack (  )  const [inline]

float orxonox::Engine::getMaxSpeedFront (  )  const [inline]

float orxonox::Engine::getMaxSpeedLeftRight (  )  const [inline]

float orxonox::Engine::getMaxSpeedUpDown (  )  const [inline]

SpaceShip* orxonox::Engine::getShip (  )  const [inline]

float orxonox::Engine::getSpeedFactor (  )  const [inline]

void orxonox::Engine::loadSound ( const std::string  filename  ) 

void orxonox::Engine::networkcallback_shipID (  )  [private]

void orxonox::Engine::registerVariables (  ) 

void orxonox::Engine::setAccelerationBack ( float  acceleration  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setAccelerationBrake ( float  acceleration  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setAccelerationFront ( float  acceleration  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setAccelerationLeftRight ( float  acceleration  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setAccelerationUpDown ( float  acceleration  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setBoostFactor ( float  factor  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setConfigValues (  ) 

Function to collect the SetConfigValue-macro calls.

Reimplemented from orxonox::OrxonoxClass.

References blurStrength_, and SetConfigValue.

Referenced by Engine().

void orxonox::Engine::setMaxSpeedBack ( float  speed  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setMaxSpeedFront ( float  speed  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setMaxSpeedLeftRight ( float  speed  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setMaxSpeedUpDown ( float  speed  )  [inline]

Referenced by XMLPort().

void orxonox::Engine::setSpeedFactor ( float  factor  )  [inline]

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

void orxonox::Engine::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::BaseObject.

Reimplemented in orxonox::MultiStateEngine.

References getBoostFactor(), loadSound(), setAccelerationBack(), setAccelerationBrake(), setAccelerationFront(), setAccelerationLeftRight(), setAccelerationUpDown(), setBoostFactor(), setMaxSpeedBack(), setMaxSpeedFront(), setMaxSpeedLeftRight(), setMaxSpeedUpDown(), SUPER, XMLPortParam, and XMLPortParamLoadOnly.


Member Data Documentation

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

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

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

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

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

Referenced by setConfigValues(), and tick().

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

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

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

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

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

unsigned int orxonox::Engine::shipID_ [private]

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


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

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