33 #ifndef _LastManStanding_H__ 34 #define _LastManStanding_H__ 63 virtual void spawnDeadPlayersIfRequested()
override;
64 virtual int getMinLives();
69 void setConfigValues();
71 virtual bool allowPawnDamage(
Pawn* victim,
Pawn* originator =
nullptr)
override;
72 virtual bool allowPawnDeath(
Pawn* victim,
Pawn* originator =
nullptr)
override;
74 virtual void end()
override;
76 int getNumPlayersAlive()
const;
77 virtual void playerEntered(
PlayerInfo* player)
override;
78 virtual bool playerLeft(
PlayerInfo* player)
override;
79 virtual void playerStartsControllingPawn(
PlayerInfo* player,
Pawn* pawn)
override;
82 virtual void tick (
float dt)
override;
Definition: LastManStanding.h:43
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
std::map< PlayerInfo *, int > playerLives_
Each player's lives are stored here.
Definition: LastManStanding.h:53
std::map< PlayerInfo *, float > playerDelayTime_
Stores each Player's delay time.
Definition: LastManStanding.h:58
std::map< PlayerInfo *, float > timeToAct_
Each player's time till she/he will be punished is stored here.
Definition: LastManStanding.h:56
int playersAlive
Counter counting players with more than 0 lives.
Definition: LastManStanding.h:54
std::map< PlayerInfo *, bool > inGame_
Indicates each Player's state.
Definition: LastManStanding.h:59
float punishDamageRate
Makes Damage adjustable.
Definition: LastManStanding.h:62
bool bNoPunishment
Config value to switch off Punishment function if it is set to true.
Definition: LastManStanding.h:60
virtual ~LastManStanding()
Default Destructor.
Definition: LastManStanding.h:68
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the orxonox library ...
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
float timeRemaining
Each player has a certain time where he or she has to hit an opponent or will be punished.
Definition: LastManStanding.h:55
Definition: Deathmatch.h:37
bool bHardPunishment
Switches between damage and death as punishment.
Definition: LastManStanding.h:61
Definition: PlayerInfo.h:39
int lives
Last Man Standing is a gametype where each player fights against each other, until one player remains...
Definition: LastManStanding.h:52
float respawnDelay
Time in seconds when a player will respawn after death.
Definition: LastManStanding.h:57