29 #ifndef _Dynamicmatch_H__ 30 #define _Dynamicmatch_H__ 78 virtual void evaluatePlayerParties();
81 void setConfigValues();
86 virtual bool allowPawnDamage(
Pawn* victim,
Pawn* originator =
nullptr)
override;
87 virtual bool allowPawnDeath(
Pawn* victim,
Pawn* originator =
nullptr)
override;
88 virtual void start()
override;
89 virtual void end()
override;
90 virtual void playerEntered(
PlayerInfo* player)
override;
91 virtual void playerStartsControllingPawn(
PlayerInfo* player,
Pawn* pawn)
override;
92 virtual bool playerLeft(
PlayerInfo* player)
override;
93 virtual bool playerChangedName(
PlayerInfo* player)
override;
97 virtual void rewardPig();
100 virtual void tick (
float dt)
override;
106 {
return this->numberOf[chaser] + numberOf[piggy] + this->numberOf[killer]; }
111 unsigned int numberOf[3];
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
bool tutorial
Definition: Dynamicmatch.h:84
Definition: SpawnPoint.h:40
std::vector< ColourValue > partyColours_
Definition: Dynamicmatch.h:109
bool notEnoughKillers
Definition: Dynamicmatch.h:70
Short Gaming Manual: There are three different parties a player can belong to: victim, chaser or killer Every player starts as chaser.
Definition: Dynamicmatch.h:63
float pointsPerTime
Definition: Dynamicmatch.h:112
int piggy
Definition: Dynamicmatch.h:75
The SpaceShip is the principal entity through which the player interacts with the game...
Definition: SpaceShip.h:90
Declaration of the Timer class, used to call functions after a given time-interval.
std::map< PlayerInfo *, int > playerParty_
Definition: Dynamicmatch.h:108
int chaser
Definition: Dynamicmatch.h:74
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
float gameTime_
Definition: Dynamicmatch.h:113
Definition: Gametype.h:63
Shared library macros, enums, constants and forward declarations for the orxonox library ...
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
bool notEnoughPigs
Definition: Dynamicmatch.h:69
bool friendlyfire
Definition: Dynamicmatch.h:83
bool gameEnded_
Definition: Dynamicmatch.h:114
std::set< Timer * > piggyTimers_
Definition: Dynamicmatch.h:110
Definition: PlayerInfo.h:39
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
int killer
Definition: Dynamicmatch.h:76
unsigned int getPlayerCount() const
Definition: Dynamicmatch.h:105
bool notEnoughChasers
Definition: Dynamicmatch.h:71
int timesequence_
Definition: Dynamicmatch.h:115