35 #ifndef _PongScore_H__ 36 #define _PongScore_H__ 62 virtual void tick(
float dt)
override;
64 virtual void changedOwner()
override;
71 { this->bShowName_ = value; }
77 {
return this->bShowName_; }
84 { this->bShowScore_ = value; }
90 {
return this->bShowScore_; }
97 { this->bShowLeftPlayer_ = value; }
103 {
return this->bShowLeftPlayer_; }
110 { this->bShowRightPlayer_ = value; }
116 {
return this->bShowRightPlayer_; }
Definition: OverlayText.h:41
Declaration of the Tickable interface.
The WorldSound class is to be used for sounds with position and orientation.
Definition: WorldSound.h:44
void setShowName(bool value)
Set whether the PongScore displays the players' names.
Definition: PongScore.h:70
void setShowRightPlayer(bool value)
Set whether the PongScore displays the right player.
Definition: PongScore.h:109
void setShowScore(bool value)
Set whether the PongScore displays the players' scores.
Definition: PongScore.h:83
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
bool bShowRightPlayer_
Whether the right player is shown.
Definition: PongScore.h:123
void setShowLeftPlayer(bool value)
Set whether the PongScore displays the left player.
Definition: PongScore.h:96
xmlelement
Definition: Super.h:519
bool getShowScore() const
Get whether the PongScore displays the players' scores.
Definition: PongScore.h:89
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Implements a Pong minigame (Wikipedia::Pong).
Definition: Pong.h:64
The PongScore class displays the score for a game of Pong.
Definition: PongScore.h:56
Mode
Definition: CorePrereqs.h:102
WeakPtr< PlayerInfo > player1_
Store information about left player permanently.
Definition: PongScore.h:124
bool getShowName() const
Get whether the PongScore displays the players' names.
Definition: PongScore.h:76
bool bShowLeftPlayer_
Whether the left player is shown.
Definition: PongScore.h:122
bool bShowScore_
Whether the score of the players is shown.
Definition: PongScore.h:121
WorldSound * scoreSound_
Definition: PongScore.h:126
bool bShowName_
Whether the names of the players are shown.
Definition: PongScore.h:120
bool getShowLeftPlayer() const
Get whether the PongScore displays the left player.
Definition: PongScore.h:102
bool getShowRightPlayer() const
Get whether the PongScore displays the right player.
Definition: PongScore.h:115
WeakPtr< PlayerInfo > player2_
Same for the right player. To end the game properly.
Definition: PongScore.h:125
#define _PongExport
Definition: PongPrereqs.h:60
Shared library macros, enums, constants and forward declarations for the pong module ...
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
Pong * owner_
The Pong game that owns this PongScore.
Definition: PongScore.h:119