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

dmn::Match Class Reference

Match interface. More...

#include <match.h>

Inheritance diagram for dmn::Match:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Match ()
 Constructor.

virtual ~Match ()
 Destructor.

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

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

virtual void set_game_winner (ID game, ID couple_winner)=0
 Notify the winner of a game.

virtual Points points_to_win ()=0
 Returns the points that a team needs to do to win the match.

virtual void score_board (std::list< Score > *score)=0
 Score board of the match.

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

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


Detailed Description

Match interface.


Member Function Documentation

virtual bool dmn::Match::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::MatchToX.

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

Check if the match is finished or not.

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

Implemented in dmn::MatchToX.

virtual bool dmn::Match::next_game ID  game,
std::list< ID > *  couples
[pure virtual]
 

Couples for the next game.

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

Implemented in dmn::MatchToX.

virtual Points dmn::Match::points_to_win  )  [pure virtual]
 

Returns the points that a team needs to do to win the match.

Returns:
the points

Implemented in dmn::MatchToX.

virtual void dmn::Match::score_board std::list< Score > *  score  )  [pure virtual]
 

Score board of the match.

score must have space for the score board

Parameters:
score where the score board is returned

Implemented in dmn::MatchToX.

virtual void dmn::Match::set_game_winner ID  game,
ID  couple_winner
[pure virtual]
 

Notify the winner of a game.

Parameters:
game identificator of the game
couple_winner identificator of the couple winner

Implemented in dmn::MatchToX.

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

Winner of the match.

Returns:
couple winner's identificator or ID_NULL if there isn't one

Implemented in dmn::MatchToX.


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