34 #ifndef _GametypeInfo_H__ 35 #define _GametypeInfo_H__ 68 {
return this->bStarted_; }
69 void changedStarted(
void);
76 {
return this->bEnded_; }
77 void changedEnded(
void);
84 {
return this->bStartCountdownRunning_; }
86 void changedStartCountdownRunning(
void);
93 {
return this->startCountdown_; }
101 {
return this->counter_; }
102 void changedCountdownCounter(
void);
109 {
return this->readyToSpawn_; }
110 void changedReadyToSpawn(
bool ready);
117 {
return this->spawned_; }
118 void changedSpawned(
bool spawned);
121 {
return this->hudtemplate_; }
124 void sendAnnounceMessage(
const std::string& message,
unsigned int clientID)
const;
125 void sendKillMessage(
const std::string& message,
unsigned int clientID)
const;
126 void sendDeathMessage(
const std::string& message,
unsigned int clientID)
const;
127 void sendStaticMessage(
const std::string& message,
unsigned int clientID,
const ColourValue&
colour)
const;
128 void sendFadingMessage(
const std::string& message,
unsigned int clientID)
const;
130 void dispatchAnnounceMessage(
const std::string& message)
const;
131 void dispatchKillMessage(
const std::string& message)
const;
132 void dispatchDeathMessage(
const std::string& message)
const;
133 void dispatchStaticMessage(
const std::string& message,
const ColourValue& colour)
const;
134 void dispatchFadingMessage(
const std::string& message)
const;
139 void setStartCountdown(
float countdown);
140 void countdownStartCountdown(
float countDown);
142 void startStartCountdown(
void);
143 void stopStartCountdown(
void);
150 { this->hudtemplate_ = templateName; };
153 void registerVariables();
154 void setSpawnedHelper(
PlayerInfo* player,
bool spawned);
155 void setReadyToSpawnHelper(
PlayerInfo* player,
bool ready);
bool hasEnded() const
Get whether the game has ended yet.
Definition: GametypeInfo.h:75
static const std::string NOTIFICATION_SENDER
The name of the sender for the sending of notifications.
Definition: GametypeInfo.h:157
float startCountdown_
The current value of the start countdown.
Definition: GametypeInfo.h:162
bool spawned_
Whether the local Player is currently spawned.
Definition: GametypeInfo.h:167
bool readyToSpawn_
Whether the local Player is ready to spawn.
Definition: GametypeInfo.h:168
::std::string string
Definition: gtest-port.h:756
unsigned int getStartCountdownCounter() const
Get the current start countdown counter.
Definition: GametypeInfo.h:100
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
Ogre::ColourValue colour(const btVector3 &color, btScalar alpha)
Definition: OgreBulletUtils.h:41
bool bEnded_
Whether the game has ended.
Definition: GametypeInfo.h:160
float getStartCountdown() const
Get the current value of the start countdown.
Definition: GametypeInfo.h:92
bool isFirstSpawn_
Definition: GametypeInfo.h:169
bool isSpawned() const
Get whether the local player is spawned.
Definition: GametypeInfo.h:116
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
bool hasStarted() const
Get whether the game has started yet.
Definition: GametypeInfo.h:67
Definition: Gametype.h:63
const std::string & getHUDTemplate() const
Definition: GametypeInfo.h:120
std::set< PlayerInfo * > spawnedPlayers_
A set of players that are currently spawned.
Definition: GametypeInfo.h:166
Shared library macros, enums, constants and forward declarations for the orxonox library ...
unsigned int counter_
The current integer value of the start countdown, the start countdown counter.
Definition: GametypeInfo.h:163
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
bool isReadyToSpawn() const
Get whether the local player is ready to spawn.
Definition: GametypeInfo.h:108
void setHUDTemplate(const std::string &templateName)
Definition: GametypeInfo.h:149
bool bStartCountdownRunning_
Whether the start countdown is running.
Definition: GametypeInfo.h:161
bool bStarted_
Whether the game has started,.
Definition: GametypeInfo.h:159
bool isStartCountdownRunning() const
Get whether the start countdown is currently running.
Definition: GametypeInfo.h:83
The GametypeInfo class keeps track of the state of the game and provides facilities to inform the pla...
Definition: GametypeInfo.h:55
Definition: PlayerInfo.h:39
std::string hudtemplate_
Definition: GametypeInfo.h:164