33 #ifndef _LastTeamStanding_H__ 34 #define _LastTeamStanding_H__ 69 virtual void spawnDeadPlayersIfRequested()
override;
70 virtual int getMinLives();
76 virtual void playerEntered(
PlayerInfo* player)
override;
77 virtual bool playerLeft(
PlayerInfo* player)
override;
79 virtual bool allowPawnDeath(
Pawn* victim,
Pawn* originator =
nullptr)
override;
80 virtual bool allowPawnDamage(
Pawn* victim,
Pawn* originator =
nullptr)
override;
81 virtual void playerStartsControllingPawn(
PlayerInfo* player,
Pawn* pawn)
override;
82 virtual void tick (
float dt)
override;
83 virtual void end()
override;
87 {
return this->teamsAlive;}
88 void setConfigValues();
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
std::vector< int > eachTeamsPlayers
Number of players in each team.
Definition: LastTeamStanding.h:56
bool bNoPunishment
Config value to switch off Punishment function if it is set to true.
Definition: LastTeamStanding.h:61
int teamsAlive
Counter counting teams with more than one player remaining.
Definition: LastTeamStanding.h:57
std::map< PlayerInfo *, int > playerLives_
Each player's lives are stored here.
Definition: LastTeamStanding.h:55
float respawnDelay
Time in seconds when a player will respawn after death.
Definition: LastTeamStanding.h:65
std::map< PlayerInfo *, float > playerDelayTime_
Stores each Player's delay time.
Definition: LastTeamStanding.h:66
Definition: LastTeamStanding.h:45
std::map< PlayerInfo *, bool > inGame_
Indicates each Player's state.
Definition: LastTeamStanding.h:67
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Definition: TeamDeathmatch.h:37
Shared library macros, enums, constants and forward declarations for the orxonox library ...
float punishDamageRate
Makes Damage adjustable.
Definition: LastTeamStanding.h:63
float timeRemaining
Each player has a certain time where he or she has to hit an opponent or will be punished.
Definition: LastTeamStanding.h:59
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
Definition: PlayerInfo.h:39
bool bHardPunishment
Switches between damage and death as punishment.
Definition: LastTeamStanding.h:62
int getNumTeamsAlive() const
< Returns the number of players that are still alive.
Definition: LastTeamStanding.h:86
std::map< PlayerInfo *, float > timeToAct_
Each player's time till she/he will be punished is stored here.
Definition: LastTeamStanding.h:60
int lives
Last Team Standing is a gametype where each team fights against each other, until one team remains...
Definition: LastTeamStanding.h:54