Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

dmn::Tournament Class Reference

Tournament interface. More...

#include <tournament.h>

Inheritance diagram for dmn::Tournament:

Inheritance graph
[legend]
Collaboration diagram for dmn::Tournament:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Tournament ()
 Constructor.

virtual ~Tournament ()
 Destructor.

virtual bool configure (Core *core)=0
 Make all the configuration needed by the module (after have the id).

virtual bool next_match (ID match, std::list< ID > *couples)=0
 Couples for the next match.

virtual bool set_match_winner (ID match, ID couple_winner)=0
 Notify the winner of a match.

virtual bool classification (std::list< ID > *teams)=0
 Classification of the tournament.

virtual ID winner ()=0
 Winner of the tournament.

virtual bool is_finished ()=0
 Check if the tournament is finished or not.


Detailed Description

Tournament interface.


Member Function Documentation

virtual bool dmn::Tournament::classification std::list< ID > *  teams  )  [pure virtual]
 

Classification of the tournament.

Parameters:
teams where to return the team identificators in order (first to last)
Returns:
true if all was ok, else false

Implemented in dmn::TournamentCup.

virtual bool dmn::Tournament::configure Core core  )  [pure virtual]
 

Make all the configuration needed by the module (after have the id).

Parameters:
core core module
Returns:
true if all was ok, else false

Implemented in dmn::TournamentCup.

virtual bool dmn::Tournament::is_finished  )  [pure virtual]
 

Check if the tournament is finished or not.

Returns:
true if the tournament is finished or false if not

Implemented in dmn::TournamentCup.

virtual bool dmn::Tournament::next_match ID  match,
std::list< ID > *  couples
[pure virtual]
 

Couples for the next match.

Parameters:
match identificator of the next match
couples where to put the couples
Returns:
true if all was ok, else false

Implemented in dmn::TournamentCup.

virtual bool dmn::Tournament::set_match_winner ID  match,
ID  couple_winner
[pure virtual]
 

Notify the winner of a match.

Parameters:
match identificator of the match
couple_winner identificator of the couple winner
Returns:
true if all was ok, else false

Implemented in dmn::TournamentCup.

virtual ID dmn::Tournament::winner  )  [pure virtual]
 

Winner of the tournament.

Returns:
team winner's identificator of ID_NULL if there isn't a winner

Implemented in dmn::TournamentCup.


The documentation for this class was generated from the following file:
Generated on Fri Dec 26 22:56:31 2003 for dmn by doxygen 1.3.4