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

toX.h

Go to the documentation of this file.
00001 
00025 #ifndef MATCH_TOX_H
00026 #define MATCH_TOX_H 1
00027 
00028 #include <dmn/match.h>
00029 
00030 #include <list>
00031 
00032 namespace dmn
00033 {
00037   class MatchToX: public Match
00038   {
00039   private:
00040     Core *core_;      // Core
00041     ID game_;     // game played now
00042     std::list<Score> couples_;  // List of Score
00043     Points max_games_;    // Games to win
00044 
00045   public:
00051     MatchToX(Points max_games);
00052 
00053     bool configure(Core* core);
00054     bool next_game(ID game, std::list<ID>* couples);
00055     void set_game_winner(ID game, ID couple_winner);
00056     Points points_to_win();
00057     void score_board(std::list<Score>* score);
00058     ID winner();
00059     bool is_finished();
00060   };
00061 };
00062 
00063 #endif // MATCH_TOX_H

Generated on Fri Dec 26 22:52:55 2003 for dmn by doxygen 1.3.4