orxonox::PongBall Class Reference

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

Inheritance diagram for orxonox::PongBall:

orxonox::MovableEntity orxonox::MobileEntity orxonox::ClientConnectionListener orxonox::WorldEntity orxonox::Tickable orxonox::OrxonoxClass orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

void applyBats ()
float getBatLength () const
Vector2 getFieldDimension () const
float getSpeed () const
 PongBall (BaseObject *creator)
void registerVariables ()
void setBatLength (float batlength)
void setBats (PongBat **bats)
void setFieldDimension (const Vector2 &dimension)
void setFieldDimension (float width, float height)
void setSpeed (float speed)
virtual void tick (float dt)
 Gets called every frame.
virtual ~PongBall ()

Static Public Attributes

static const float MAX_REL_Z_VELOCITY = 1.5

Private Attributes

PongBat ** bat_
unsigned int * batID_
float batlength_
SoundBasebatsound_
float fieldHeight_
float fieldWidth_
float relMercyOffset_
SoundBasescoresound_
SoundBasesidesound_
float speed_


Constructor & Destructor Documentation

orxonox::PongBall::PongBall ( BaseObject creator  ) 

virtual orxonox::PongBall::~PongBall (  )  [inline, virtual]


Member Function Documentation

void orxonox::PongBall::applyBats (  ) 

float orxonox::PongBall::getBatLength (  )  const [inline]

Vector2 orxonox::PongBall::getFieldDimension (  )  const [inline]

float orxonox::PongBall::getSpeed (  )  const [inline]

void orxonox::PongBall::registerVariables (  ) 

void orxonox::PongBall::setBatLength ( float  batlength  )  [inline]

Referenced by orxonox::Pong::start().

void orxonox::PongBall::setBats ( PongBat **  bats  ) 

void orxonox::PongBall::setFieldDimension ( const Vector2 &  dimension  )  [inline]

void orxonox::PongBall::setFieldDimension ( float  width,
float  height 
) [inline]

Referenced by orxonox::Pong::start().

void orxonox::PongBall::setSpeed ( float  speed  ) 

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


Member Data Documentation

Referenced by applyBats(), PongBall(), setBats(), and tick().

unsigned int* orxonox::PongBall::batID_ [private]

Referenced by registerVariables(), and tick().

Referenced by PongBall(), and tick().

Referenced by registerVariables(), and tick().

Referenced by registerVariables(), and tick().

const float orxonox::PongBall::MAX_REL_Z_VELOCITY = 1.5 [static]

Referenced by PongBall(), and registerVariables().

Referenced by PongBall(), and tick().

Referenced by PongBall(), and tick().

float orxonox::PongBall::speed_ [private]


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

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