Team is the class handling team management.
More...
#include <Team.hpp>
|
map< string, shared_ptr< Player > > | members |
| A map of team members, to quickly have an hand on the player object knowing his/her name. More...
|
|
Team is the class handling team management.
bool Team::contains |
( |
const string & |
name | ) |
const |
|
inline |
Inline function to test if a player belongs to this team.
- Parameters
-
name | The considered player name. True iff the team contains the given player. |
double Team::getScore |
( |
| ) |
const |
Assessor returning the team's score.
bool Team::isEmpty |
( |
| ) |
const |
Return if the Team is empty.
bool Team::operator< |
( |
const Team & |
t | ) |
const |
To compare two teams regarding their score.
bool Team::operator> |
( |
const Team & |
t | ) |
const |
To compare two teams regarding their score.
ostream& operator<< |
( |
ostream & |
os, |
|
|
const Team & |
team |
|
) |
| |
|
friend |
Used to simplify team screen printings.
map<string, shared_ptr<Player> > Team::members |
A map of team members, to quickly have an hand on the player object knowing his/her name.
The documentation for this class was generated from the following files: