orxonox::ControllableEntity Class Reference

#include <src/orxonox/objects/worldentities/ControllableEntity.h>

Inheritance diagram for orxonox::ControllableEntity:

orxonox::MobileEntity orxonox::WorldEntity orxonox::Tickable orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::Pawn orxonox::PongBat orxonox::Spectator orxonox::SpaceShip orxonox::TeamBaseMatchBase orxonox::Destroyer

List of all members.

Public Member Functions

void addCameraPosition (CameraPosition *position)
virtual void boost ()
virtual void changedPlayer ()
 ControllableEntity (BaseObject *creator)
virtual void dropItems ()
virtual void fire (unsigned int firemode)
CameragetCamera () const
CameraPositiongetCameraPosition (unsigned int index) const
const std::list
< CameraPosition * > & 
getCameraPositions () const
const std::stringgetCameraPositionTemkplate () const
bool getDestroyWhenPlayerLeft () const
OverlayGroupgetHUD () const
const std::stringgetHudTemplate () const
float getMouseLookSpeed () const
PlayerInfogetPlayer () const
CameraPositiongetReverseCamera () const
ControllergetXMLController () const
virtual void greet ()
bool hasHumanController () const
bool hasLocalController () const
bool isInMouseLook () const
virtual void mouseLook ()
void moveFrontBack (float value)
virtual void moveFrontBack (const Vector2 &value)
void moveRightLeft (float value)
virtual void moveRightLeft (const Vector2 &value)
void moveUpDown (float value)
virtual void moveUpDown (const Vector2 &value)
void registerVariables ()
virtual void reload ()
void rotatePitch (float value)
virtual void rotatePitch (const Vector2 &value)
void rotateRoll (float value)
virtual void rotateRoll (const Vector2 &value)
void rotateYaw (float value)
virtual void rotateYaw (const Vector2 &value)
void setAngularVelocity (const Vector3 &velocity)
void setCameraPositionTemplate (const std::string &name)
void setConfigValues ()
 Function to collect the SetConfigValue-macro calls.
void setDestroyWhenPlayerLeft (bool bDestroy)
void setOrientation (const Quaternion &orientation)
void setPosition (const Vector3 &position)
void setReverseCamera (CameraPosition *camera)
void setVelocity (const Vector3 &velocity)
virtual void switchCamera ()
virtual void tick (float dt)
 Gets called every frame.
virtual void useItem ()
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~ControllableEntity ()

Protected Member Functions

virtual void parentChanged ()
virtual void removePlayer ()
void setHudTemplate (const std::string &name)
virtual void setPlayer (PlayerInfo *player)
virtual void startLocalHumanControl ()
virtual void stopLocalHumanControl ()

Private Member Functions

void networkcallback_changedplayerID ()
void overwrite ()
void processClientAngularVelocity ()
void processClientLinearVelocity ()
void processClientOrientation ()
void processClientPosition ()
void processOverwrite ()
void processServerAngularVelocity ()
void processServerLinearVelocity ()
void processServerOrientation ()
void processServerPosition ()
void setWorldTransform (const btTransform &worldTrans)
void setXMLController (Controller *controller)

Private Attributes

bool bDestroyWhenPlayerLeft_
bool bHasHumanController_
bool bHasLocalController_
bool bMouseLook_
Cameracamera_
Ogre::SceneNode * cameraPositionRootNode_
std::list< CameraPosition * > cameraPositions_
std::string cameraPositionTemplate_
Vector3 client_angular_velocity_
Vector3 client_linear_velocity_
Quaternion client_orientation_
unsigned int client_overwrite_
Vector3 client_position_
OverlayGrouphud_
std::string hudtemplate_
float mouseLookSpeed_
PlayerInfoplayer_
unsigned int playerID_
CameraPositionreverseCamera_
Vector3 server_angular_velocity_
Vector3 server_linear_velocity_
Quaternion server_orientation_
unsigned int server_overwrite_
Vector3 server_position_
Controllerxmlcontroller_

Friends

class PlayerInfo


Constructor & Destructor Documentation

orxonox::ControllableEntity::ControllableEntity ( BaseObject creator  ) 

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


Member Function Documentation

void orxonox::ControllableEntity::addCameraPosition ( CameraPosition position  ) 

virtual void orxonox::ControllableEntity::boost (  )  [inline, virtual]

Reimplemented in orxonox::SpaceShip.

Referenced by orxonox::HumanController::boost().

virtual void orxonox::ControllableEntity::changedPlayer (  )  [inline, virtual]

Reimplemented in orxonox::PongBat.

Referenced by removePlayer(), and setPlayer().

virtual void orxonox::ControllableEntity::dropItems (  )  [inline, virtual]

Reimplemented in orxonox::Pawn.

Referenced by orxonox::HumanController::dropItems().

virtual void orxonox::ControllableEntity::fire ( unsigned int  firemode  )  [inline, virtual]

Camera* orxonox::ControllableEntity::getCamera (  )  const [inline]

CameraPosition * orxonox::ControllableEntity::getCameraPosition ( unsigned int  index  )  const

References cameraPositions_.

Referenced by XMLPort().

const std::list<CameraPosition*>& orxonox::ControllableEntity::getCameraPositions (  )  const [inline]

const std::string& orxonox::ControllableEntity::getCameraPositionTemkplate (  )  const [inline]

Referenced by XMLPort().

bool orxonox::ControllableEntity::getDestroyWhenPlayerLeft (  )  const [inline]

OverlayGroup* orxonox::ControllableEntity::getHUD (  )  const [inline]

const std::string& orxonox::ControllableEntity::getHudTemplate (  )  const [inline]

Referenced by XMLPort().

float orxonox::ControllableEntity::getMouseLookSpeed (  )  const [inline]

PlayerInfo* orxonox::ControllableEntity::getPlayer (  )  const [inline]

CameraPosition* orxonox::ControllableEntity::getReverseCamera (  )  const [inline]

Controller* orxonox::ControllableEntity::getXMLController (  )  const [inline]

virtual void orxonox::ControllableEntity::greet (  )  [inline, virtual]

Reimplemented in orxonox::Spectator.

Referenced by orxonox::HumanController::greet().

bool orxonox::ControllableEntity::hasHumanController (  )  const [inline]

Referenced by orxonox::Engine::tick().

bool orxonox::ControllableEntity::hasLocalController (  )  const [inline]

bool orxonox::ControllableEntity::isInMouseLook (  )  const [inline]

void orxonox::ControllableEntity::mouseLook (  )  [virtual]

void orxonox::ControllableEntity::moveFrontBack ( float  value  )  [inline]

virtual void orxonox::ControllableEntity::moveFrontBack ( const Vector2 &  value  )  [inline, virtual]

void orxonox::ControllableEntity::moveRightLeft ( float  value  )  [inline]

virtual void orxonox::ControllableEntity::moveRightLeft ( const Vector2 &  value  )  [inline, virtual]

void orxonox::ControllableEntity::moveUpDown ( float  value  )  [inline]

virtual void orxonox::ControllableEntity::moveUpDown ( const Vector2 &  value  )  [inline, virtual]

void orxonox::ControllableEntity::networkcallback_changedplayerID (  )  [private]

void orxonox::ControllableEntity::overwrite (  )  [private]

void orxonox::ControllableEntity::parentChanged (  )  [protected, virtual]

void orxonox::ControllableEntity::processClientAngularVelocity (  )  [private]

void orxonox::ControllableEntity::processClientLinearVelocity (  )  [private]

void orxonox::ControllableEntity::processClientOrientation (  )  [private]

void orxonox::ControllableEntity::processClientPosition (  )  [private]

void orxonox::ControllableEntity::processOverwrite (  )  [private]

void orxonox::ControllableEntity::processServerAngularVelocity (  )  [private]

void orxonox::ControllableEntity::processServerLinearVelocity (  )  [private]

void orxonox::ControllableEntity::processServerOrientation (  )  [private]

void orxonox::ControllableEntity::processServerPosition (  )  [private]

void orxonox::ControllableEntity::registerVariables (  ) 

virtual void orxonox::ControllableEntity::reload (  )  [inline, virtual]

Reimplemented in orxonox::Pawn.

Referenced by orxonox::HumanController::reload().

void orxonox::ControllableEntity::removePlayer (  )  [protected, virtual]

void orxonox::ControllableEntity::rotatePitch ( float  value  )  [inline]

void orxonox::ControllableEntity::rotatePitch ( const Vector2 &  value  )  [virtual]

void orxonox::ControllableEntity::rotateRoll ( float  value  )  [inline]

void orxonox::ControllableEntity::rotateRoll ( const Vector2 &  value  )  [virtual]

void orxonox::ControllableEntity::rotateYaw ( float  value  )  [inline]

void orxonox::ControllableEntity::rotateYaw ( const Vector2 &  value  )  [virtual]

void orxonox::ControllableEntity::setAngularVelocity ( const Vector3 &  velocity  )  [virtual]

void orxonox::ControllableEntity::setCameraPositionTemplate ( const std::string name  )  [inline]

Referenced by XMLPort().

void orxonox::ControllableEntity::setConfigValues (  ) 

Function to collect the SetConfigValue-macro calls.

Reimplemented from orxonox::OrxonoxClass.

Reimplemented in orxonox::SpaceShip, and orxonox::Spectator.

References mouseLookSpeed_, and SetConfigValue.

Referenced by ControllableEntity().

void orxonox::ControllableEntity::setDestroyWhenPlayerLeft ( bool  bDestroy  )  [inline]

void orxonox::ControllableEntity::setHudTemplate ( const std::string name  )  [inline, protected]

void orxonox::ControllableEntity::setOrientation ( const Quaternion &  orientation  )  [virtual]

void orxonox::ControllableEntity::setPlayer ( PlayerInfo player  )  [protected, virtual]

void orxonox::ControllableEntity::setPosition ( const Vector3 &  position  )  [virtual]

void orxonox::ControllableEntity::setReverseCamera ( CameraPosition camera  )  [inline]

Referenced by addCameraPosition().

void orxonox::ControllableEntity::setVelocity ( const Vector3 &  velocity  )  [virtual]

void orxonox::ControllableEntity::setWorldTransform ( const btTransform &  worldTrans  )  [private, virtual]

void orxonox::ControllableEntity::setXMLController ( Controller controller  )  [private]

void orxonox::ControllableEntity::startLocalHumanControl (  )  [protected, virtual]

void orxonox::ControllableEntity::stopLocalHumanControl (  )  [protected, virtual]

void orxonox::ControllableEntity::switchCamera (  )  [virtual]

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

virtual void orxonox::ControllableEntity::useItem (  )  [inline, virtual]

Reimplemented in orxonox::Pawn.

Referenced by orxonox::HumanController::useItem().

void orxonox::ControllableEntity::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::MobileEntity.

Reimplemented in orxonox::Pawn, and orxonox::SpaceShip.

References addCameraPosition(), getCameraPosition(), getCameraPositionTemkplate(), getHudTemplate(), getXMLController(), setCameraPositionTemplate(), setHudTemplate(), setXMLController(), SUPER, XMLPortObject, and XMLPortParam.


Friends And Related Function Documentation

friend class PlayerInfo [friend]


Member Data Documentation

Referenced by ControllableEntity().


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

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