List of all members.
Public Types |
enum | State { RECRUITING = 10,
ACTIVE = 30,
ENDED = 50,
CANCELLED = 70
} |
typedef CompetitionType | Type |
Public Member Functions |
| Competition (bool) |
template<class Action > |
void | persist (Action &a) |
State | state () const |
UserPtr | init () const |
const Wt::WDateTime & | created () const |
const Wt::WDateTime & | started () const |
const Wt::WDateTime & | ended () const |
const Wt::WString & | name () const |
void | set_name (const Wt::WString &v) |
const Wt::WString & | description () const |
void | set_description (const Wt::WString &v) |
bool | is_member (UserPtr user) const |
bool | is_winner (UserPtr user) const |
const Users & | members () const |
const Games & | games () const |
const Users & | winners () const |
UsersVector | members_vector () const |
GamesVector | games_vector () const |
UsersVector | winners_vector () const |
GamesTable | games_table () const |
Games | games_with (UserPtr user) const |
GamesVector | games_with (UserPtr user, GamesTable >) const |
void | check (Objects &objects) |
Wt::WDateTime | next_check () const |
void | create_competition (UserPtr user) |
bool | can_join (UserPtr user) const |
void | join (UserPtr user) |
bool | can_leave (UserPtr user) const |
void | leave (UserPtr user) |
bool | can_kick (UserPtr kicker, UserPtr kicked) const |
void | kick (UserPtr kicker, UserPtr kicked) |
bool | can_change_parameters (UserPtr user) const |
bool | can_cancel (UserPtr user) const |
void | cancel (UserPtr user) |
Static Public Member Functions |
static Wt::WString | type2str (Type type) |
static bool | all_ended (const GamesVector &games) |
static void | wins_number (const GamesVector &games, std::map< UserPtr, float > &wins) |
static UsersVector | winners_of_games (const GamesVector &games) |
static const char * | state2str (State state) |
static bool | can_create_competition (UserPtr) |
Friends |
class | StagedCompetition |
The documentation for this class was generated from the following files: