62             virtual void tick(
float dt) 
override;
    64             virtual void moveFrontBack(
const Vector2& value) 
override; 
    65             virtual void moveRightLeft(
const Vector2& value) 
override; 
    67             virtual void changedPlayer() 
override; 
    74                 { this->speed_ = speed; }
    80                 { 
return this->speed_; }
    87                 { this->fieldHeight_ = height; }
    93                 { 
return this->fieldHeight_; }
   100                 { this->length_ = length; }
   106                 { 
return this->length_; }
   109             void registerVariables(); 
 float speed_
The movement speed of the bat. 
Definition: PongBat.h:113
 
bool bMoveLocal_
Helper to know whether the movement is caused by moveFrontBack() or moveRightLeft(). 
Definition: PongBat.h:112
 
float fieldHeight_
The height of the playing field. 
Definition: PongBat.h:115
 
void setLength(float length)
Set the length of the bat. 
Definition: PongBat.h:99
 
void setFieldHeight(float height)
Set the height of the playing field. 
Definition: PongBat.h:86
 
void setSpeed(float speed)
Set the speed of the bat. 
Definition: PongBat.h:73
 
virtual ~PongBat()
Definition: PongBat.h:60
 
float movement_
The amount (and direction), in z-direction, of movement of the bat. 
Definition: PongBat.h:111
 
bool bSteadiedPosition_
Helper boolean, to keep track of when to steady the position, to ensure network synchronicity. 
Definition: PongBat.h:116
 
float getSpeed() const 
Get the speed of the bat. 
Definition: PongBat.h:79
 
Die Wagnis Klasse hat die folgenden Aufgaben: 
Definition: ApplicationPaths.cc:66
 
float length_
The length of the bat (in z-direction) as percentage of the height of the playing field...
Definition: PongBat.h:114
 
float getLength() const 
Get the length of the bat. 
Definition: PongBat.h:105
 
The PongBat class manages the bats for Pong, which are the elements controlled by the players...
Definition: PongBat.h:56
 
float getFieldHeight() const 
Get the height of the playing field. 
Definition: PongBat.h:92
 
#define _PongExport
Definition: PongPrereqs.h:60
 
Shared library macros, enums, constants and forward declarations for the pong module  ...
 
The ControllableEntity is derived from the orxonox::MobileEntity. 
Definition: ControllableEntity.h:48