#include <Team.hh>
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 () |
| Player * | getPlayer (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_ |
| 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.
1.4.7