orxonox::TeamBaseMatch Class Reference

#include <src/orxonox/objects/gametypes/TeamBaseMatch.h>

Inheritance diagram for orxonox::TeamBaseMatch:

orxonox::TeamDeathmatch orxonox::Deathmatch orxonox::Gametype orxonox::BaseObject orxonox::Tickable orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

void addBase (TeamBaseMatchBase *base)
void addTeamPoints (int team, int points)
virtual bool allowPawnDamage (Pawn *victim, Pawn *originator)
virtual bool allowPawnDeath (Pawn *victim, Pawn *originator=0)
virtual void endGame ()
TeamBaseMatchBasegetBase (unsigned int index) const
int getTeamBases (int team)
int getTeamPoints (int team)
virtual void playerScored (PlayerInfo *player)
virtual void showPoints ()
 TeamBaseMatch (BaseObject *creator)
virtual ~TeamBaseMatch ()

Protected Member Functions

bool pawnsAreInTheSameTeam (Pawn *pawn1, TeamBaseMatchBase *base)
void winPoints ()

Protected Attributes

std::set< TeamBaseMatchBase * > bases_
Timer< TeamBaseMatchoutputTimer_
int pointsTeam1_
int pointsTeam2_
Timer< TeamBaseMatchscoreTimer_


Constructor & Destructor Documentation

orxonox::TeamBaseMatch::TeamBaseMatch ( BaseObject creator  ) 

virtual orxonox::TeamBaseMatch::~TeamBaseMatch (  )  [inline, virtual]


Member Function Documentation

void orxonox::TeamBaseMatch::addBase ( TeamBaseMatchBase base  ) 

void orxonox::TeamBaseMatch::addTeamPoints ( int  team,
int  points 
)

References endGame(), pointsTeam1_, and pointsTeam2_.

Referenced by playerScored(), and winPoints().

bool orxonox::TeamBaseMatch::allowPawnDamage ( Pawn victim,
Pawn originator 
) [virtual]

bool orxonox::TeamBaseMatch::allowPawnDeath ( Pawn victim,
Pawn originator = 0 
) [virtual]

void orxonox::TeamBaseMatch::endGame (  )  [virtual]

TeamBaseMatchBase * orxonox::TeamBaseMatch::getBase ( unsigned int  index  )  const

References bases_.

int orxonox::TeamBaseMatch::getTeamBases ( int  team  ) 

int orxonox::TeamBaseMatch::getTeamPoints ( int  team  ) 

bool orxonox::TeamBaseMatch::pawnsAreInTheSameTeam ( Pawn pawn1,
TeamBaseMatchBase base 
) [protected]

void orxonox::TeamBaseMatch::playerScored ( PlayerInfo player  )  [virtual]

void orxonox::TeamBaseMatch::showPoints (  )  [virtual]

void orxonox::TeamBaseMatch::winPoints (  )  [protected]


Member Data Documentation

Referenced by endGame(), and TeamBaseMatch().

Referenced by endGame(), and TeamBaseMatch().


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:23:08 2009 for Orxonox by  doxygen 1.5.6