orxonox::MovableEntity Class Reference

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

Inheritance diagram for orxonox::MovableEntity:

orxonox::MobileEntity orxonox::ClientConnectionListener orxonox::WorldEntity orxonox::Tickable orxonox::OrxonoxClass orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::BigExplosion orxonox::ExplosionChunk orxonox::Planet orxonox::PongBall orxonox::Projectile orxonox::BillboardProjectile orxonox::LightningGunProjectile orxonox::ParticleProjectile

List of all members.

Public Member Functions

virtual bool collidesAgainst (WorldEntity *otherObject, btManifoldPoint &contactPoint)
 Virtual function that gets called when this object collides with another.
float getCollisionDamage ()
bool getEnableCollisionDamage ()
PawngetOwner () const
 MovableEntity (BaseObject *creator)
void registerVariables ()
void setCollisionDamage (float c)
void setEnableCollisionDamage (bool c)
void setOrientation (const Quaternion &orientation)
void setOwner (Pawn *owner)
void setPosition (const Vector3 &position)
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~MovableEntity ()

Private Member Functions

void clientConnected (unsigned int clientID)
void clientDisconnected (unsigned int clientID)
void overwriteOrientation ()
void overwritePosition ()
void processAngularVelocity ()
void processLinearVelocity ()
void resynchronize ()

Private Attributes

float collisionDamage_
Timer< MovableEntity > * continuousResynchroTimer_
bool enableCollisionDamage_
Quaternion overwrite_orientation_
Vector3 overwrite_position_
Pawnowner_
Timer< MovableEntityresynchronizeTimer_


Constructor & Destructor Documentation

orxonox::MovableEntity::MovableEntity ( BaseObject creator  ) 

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


Member Function Documentation

void orxonox::MovableEntity::clientConnected ( unsigned int  clientID  )  [private, virtual]

void orxonox::MovableEntity::clientDisconnected ( unsigned int  clientID  )  [private, virtual]

bool orxonox::MovableEntity::collidesAgainst ( WorldEntity otherObject,
btManifoldPoint &  contactPoint 
) [virtual]

Virtual function that gets called when this object collides with another.

Parameters:
otherObject The object this one has collided into. contactPoint Contact point provided by Bullet. Holds more information and can me modified. See return value. Returning false means that no modification to the contactPoint has been made. Return true otherwise! Condition is that enableCollisionCallback() was called.

Reimplemented from orxonox::WorldEntity.

Reimplemented in orxonox::Projectile.

References collisionDamage_, orxonox::Pawn::damage(), enableCollisionDamage_, orxonox::MobileEntity::getVelocity(), and orxonox::GameMode::isMaster().

float orxonox::MovableEntity::getCollisionDamage (  )  [inline]

Referenced by XMLPort().

bool orxonox::MovableEntity::getEnableCollisionDamage (  )  [inline]

Referenced by XMLPort().

Pawn* orxonox::MovableEntity::getOwner (  )  const [inline]

Reimplemented in orxonox::Projectile.

void orxonox::MovableEntity::overwriteOrientation (  )  [inline, private]

Referenced by registerVariables().

void orxonox::MovableEntity::overwritePosition (  )  [inline, private]

Referenced by registerVariables().

void orxonox::MovableEntity::processAngularVelocity (  )  [inline, private]

Referenced by registerVariables().

void orxonox::MovableEntity::processLinearVelocity (  )  [inline, private]

Referenced by registerVariables().

void orxonox::MovableEntity::registerVariables (  ) 

void orxonox::MovableEntity::resynchronize (  )  [private]

void orxonox::MovableEntity::setCollisionDamage ( float  c  )  [inline]

Referenced by XMLPort().

void orxonox::MovableEntity::setEnableCollisionDamage ( bool  c  )  [inline]

Referenced by XMLPort().

void orxonox::MovableEntity::setOrientation ( const Quaternion &  orientation  )  [inline, virtual]

void orxonox::MovableEntity::setOwner ( Pawn owner  )  [inline]

Reimplemented in orxonox::Projectile.

void orxonox::MovableEntity::setPosition ( const Vector3 &  position  )  [inline, virtual]

void orxonox::MovableEntity::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::Planet.

References getCollisionDamage(), getEnableCollisionDamage(), setCollisionDamage(), setEnableCollisionDamage(), SUPER, and XMLPortParam.


Member Data Documentation

Referenced by collidesAgainst().

Referenced by collidesAgainst().

Reimplemented in orxonox::Projectile.

Referenced by clientConnected().


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

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