Cute Chess  0.1
gauntlettournament.h
1 /*
2  This file is part of Cute Chess.
3 
4  Cute Chess is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  Cute Chess is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with Cute Chess. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef GAUNTLETTOURNAMENT_H
19 #define GAUNTLETTOURNAMENT_H
20 
21 #include "tournament.h"
22 
29 class LIB_EXPORT GauntletTournament : public Tournament
30 {
31  Q_OBJECT
32 
33  public:
35  explicit GauntletTournament(GameManager* gameManager,
36  QObject *parent = nullptr);
37  // Inherited from Tournament
38  virtual QString type() const;
39 
40  protected:
41  // Inherited from Tournament
42  virtual void onGameAboutToStart(ChessGame* game,
43  const PlayerBuilder* white,
44  const PlayerBuilder* black);
45  virtual void initializePairing();
46  virtual int gamesPerCycle() const;
47  virtual TournamentPair* nextPair(int gameNumber);
48  virtual bool hasGauntletRatingsOrder() const;
49 
50  private:
51  int m_opponent;
52 };
53 
54 #endif // GAUNTLETTOURNAMENT_H
Gauntlet type chess tournament.
Definition: gauntlettournament.h:29
A class for constructing new chess players.
Definition: playerbuilder.h:37
virtual QString type() const =0
Definition: chessgame.h:38
virtual void initializePairing()=0
virtual TournamentPair * nextPair(int gameNumber)=0
A class for managing chess games and players.
Definition: gamemanager.h:39
virtual void onGameAboutToStart(ChessGame *game, const PlayerBuilder *white, const PlayerBuilder *black)
Definition: tournament.cpp:397
Base class for chess tournaments.
Definition: tournament.h:44
virtual bool hasGauntletRatingsOrder() const
Definition: tournament.cpp:306
A single encounter in a tournament.
Definition: tournamentpair.h:30
virtual int gamesPerCycle() const =0