#include <cup.h>
Inheritance diagram for dmn::TournamentCup:
Public Member Functions | |
TournamentCup () | |
Constructor. | |
bool | configure (Core *core) |
Make all the configuration needed by the module (after have the id). | |
bool | next_match (ID match, std::list< ID > *couples) |
Couples for the next match. | |
bool | set_match_winner (ID match, ID couple_winner) |
Notify the winner of a match. | |
bool | classification (std::list< ID > *teams) |
Classification of the tournament. | |
ID | winner () |
Winner of the tournament. | |
bool | is_finished () |
Check if the tournament is finished or not. |
In a cup, all the teams play versus other team, the looser is removed, the winner continues.
|
Classification of the tournament.
Implements dmn::Tournament. |
|
Make all the configuration needed by the module (after have the id).
Implements dmn::Tournament. |
|
Check if the tournament is finished or not.
Implements dmn::Tournament. |
|
Couples for the next match.
Implements dmn::Tournament. |
|
Notify the winner of a match.
Implements dmn::Tournament. |
|
Winner of the tournament.
Implements dmn::Tournament. |