35 #ifndef _PongCenterpoint_H__ 36 #define _PongCenterpoint_H__ 133 { this->balltemplate_ = balltemplate; }
139 {
return this->balltemplate_; }
146 { this->battemplate_ = battemplate; }
152 {
return this->battemplate_; }
159 { this->width_ = dimension.x; this->height_ = dimension.y; }
165 {
return Vector2(this->width_, this->height_); }
172 { this->ballspeed_ = ballspeed; }
178 {
return this->ballspeed_; }
185 { this->ballaccfactor_ = ballaccfactor; }
191 {
return this->ballaccfactor_; }
198 { this->batspeed_ = batspeed; }
204 {
return this->batspeed_; }
211 { this->batlength_ = batlength; }
217 {
return this->batlength_; }
220 void checkGametype();
float ballspeed_
The speed of then ball.
Definition: PongCenterpoint.h:225
float getBallAccelerationFactor() const
Get the ball's acceleration factor.
Definition: PongCenterpoint.h:190
float batspeed_
The speed of the bat.
Definition: PongCenterpoint.h:227
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
float batlength_
The length of the bat (in z-direction) as a percentage of the height of the playing field...
Definition: PongCenterpoint.h:228
float ballaccfactor_
The acceleration factor of the ball.
Definition: PongCenterpoint.h:226
void setFieldDimension(const Vector2 &dimension)
Set the dimensions of the playing field.
Definition: PongCenterpoint.h:158
::std::string string
Definition: gtest-port.h:756
void setBatSpeed(float batspeed)
Set the speed of the bats.
Definition: PongCenterpoint.h:197
float getBatLength() const
Get the length of the bats.
Definition: PongCenterpoint.h:216
float height_
The width of the playing field.
Definition: PongCenterpoint.h:231
xmlelement
Definition: Super.h:519
The PongCenterpoint implements the playing field Pong takes place in and allows for many parameters o...
Definition: PongCenterpoint.h:120
Declaration and implementation of several math-functions, typedefs of some Ogre::Math classes to the ...
float getBallSpeed() const
Get the speed of the ball.
Definition: PongCenterpoint.h:177
void setBalltemplate(const std::string &balltemplate)
Set the template for the ball.
Definition: PongCenterpoint.h:132
virtual ~PongCenterpoint()
Definition: PongCenterpoint.h:124
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
std::string battemplate_
The template for the bats.
Definition: PongCenterpoint.h:223
Mode
Definition: CorePrereqs.h:102
float getBatSpeed() const
Get the speed of the bats.
Definition: PongCenterpoint.h:203
void setBallSpeed(float ballspeed)
Set the speed of the ball.
Definition: PongCenterpoint.h:171
void setBattemplate(const std::string &battemplate)
Set the template for the bats.
Definition: PongCenterpoint.h:145
const std::string & getBattemplate() const
Get the template of the bats.
Definition: PongCenterpoint.h:151
void setBatLength(float batlength)
Set the length of the bats.
Definition: PongCenterpoint.h:210
const std::string & getBalltemplate() const
Get the template of the ball.
Definition: PongCenterpoint.h:138
float width_
The height of the playing field.
Definition: PongCenterpoint.h:230
std::string balltemplate_
The template for the ball.
Definition: PongCenterpoint.h:222
void setBallAccelerationFactor(float ballaccfactor)
Set the ball's acceleration factor.
Definition: PongCenterpoint.h:184
#define _PongExport
Definition: PongPrereqs.h:60
Vector2 getFieldDimension() const
Get the dimensions of the playing field.
Definition: PongCenterpoint.h:164
Shared library macros, enums, constants and forward declarations for the pong module ...