70 virtual void start()
override;
71 virtual void end()
override;
73 virtual void spawnPlayer(
PlayerInfo* player)
override;
75 virtual void playerScored(
PlayerInfo* player,
int score = 1)
override;
82 { this->center_ = center; }
83 void setConfigValues();
89 virtual void spawnPlayersIfRequested()
override;
int scoreLimit_
If a player scored that much points, the game is ended.
Definition: Pong.h:98
Declaration of the PongCenterpoint class.
void setCenterpoint(PongCenterpoint *center)
Set the PongCenterpoint (the playing field).
Definition: Pong.h:81
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
Timer starttimer_
A timer to delay the start of the game.
Definition: Pong.h:97
WeakPtr< PongBall > ball_
The Pong ball.
Definition: Pong.h:95
The PongCenterpoint implements the playing field Pong takes place in and allows for many parameters o...
Definition: PongCenterpoint.h:120
Declaration of the Timer class, used to call functions after a given time-interval.
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Implements a Pong minigame (Wikipedia::Pong).
Definition: Pong.h:64
Definition: Deathmatch.h:37
WeakPtr< PongCenterpoint > center_
The playing field.
Definition: Pong.h:94
Definition: PlayerInfo.h:39
#define _PongExport
Definition: PongPrereqs.h:60
Shared library macros, enums, constants and forward declarations for the pong module ...
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105