Team< T > Class Template Reference
[Rules]

Base class describing a BB team. More...

#include <Team.hh>

List of all members.

Public Member Functions

 Team (int team_id)
int getTeamId () const
int getNbPlayer () const
T * getPlayer (int id)
const std::string & getTeamName () const
const std::string & getCoachName () const
int getScore () const
int getReroll () const
int getRemainingReroll () const
bool canUseReroll () const
 Check if team has not used reroll during this turn, and if it has at least a remaining reroll.
void useReroll ()
void initReroll ()
bool hasDoneBlitz () const
bool hasDonePass () const
void resetTurn ()
bool isPlacementValid () const
void incrementScore ()
 Team (Race *race)
void validateTeam ()
PlayergetPlayer (unsigned int number)
void setPlayer (unsigned int number, Player *player)
const char * getName ()
void setName (const char *name)
const char * getEmblem ()
void setEmblem (const char *emblem)
Race * getRace ()
void setRace (Race *race)
long getBank ()
void setBank (long bank)
const char * getHeadCoach ()
void setHeadCoach (const char *coach)
int getReroll ()
void setReroll (int reroll)
int getFanFactor ()
void setFanFactor (int fanFactor)
int getAssistantCoach ()
void setAssistantCoach (int assistantCoach)
int getCheerleader ()
void setCheerleader (int cheerleader)
int getApothecary ()
void setApothecary (int apothecary)
const char * getBackground ()
void setBackground (const char *bg)
long getRerollUnitaryCost ()
long getRerollTotalCost ()
long getFanFactorCost ()
long getAssistantCoachCost ()
long getCheerleaderCost ()
long getApothecaryCost ()
long getTotalValueCost ()

Protected Attributes

int team_id_
 Team id (0 or 1).
T * player_ [MAX_PLAYER]
 List of this team players.
std::string team_name_
std::string coach_name_
int score_
int reroll_
int reroll_remain_
bool blitz_done_
bool pass_done_
bool reroll_used_


Detailed Description

template<typename T>
class Team< T >

Base class describing a BB team.


Member Function Documentation

template<typename T>
bool Team< T >::canUseReroll (  )  const [inline]

Check if team has not used reroll during this turn, and if it has at least a remaining reroll.

Note:
It doesn't check if it is team's turn (which is also required to use reroll) !


The documentation for this class was generated from the following files:
Generated on Sat Jun 23 16:13:59 2007 for Stechec/TBT by  doxygen 1.4.7