Cute Chess 0.1
andernachboard.h
1/*
2 This file is part of Cute Chess.
3 Copyright (C) 2008-2018 Cute Chess authors
4
5 Cute Chess is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 Cute Chess is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with Cute Chess. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef ANDERNACHBOARD_H
20#define ANDERNACHBOARD_H
21
22#include "standardboard.h"
23
24namespace Chess {
25
46class LIB_EXPORT AndernachBoard : public StandardBoard
47{
48 public:
51
52 // Inherited from StandardBoard
53 virtual Board* copy() const;
54 virtual QString variant() const;
55
56 protected:
61 virtual bool switchesSides(const Move& move) const;
62
63 // Inherited from StandardBoard
64 virtual Move moveFromSanString(const QString& str);
65 virtual QString sanMoveString(const Move& move);
66 virtual void vMakeMove(const Move& move,
67 BoardTransition* transition);
68 virtual void vUndoMove(const Move &move);
69};
70
71
79class LIB_EXPORT AntiAndernachBoard : public AndernachBoard
80{
81 public:
84
85 // Inherited from AndernachBoard
86 virtual Board* copy() const;
87 virtual QString variant() const;
88
89 protected:
94 virtual bool switchesSides(const Move& move) const;
95};
96
104class LIB_EXPORT SuperAndernachBoard : public AndernachBoard
105{
106 public:
109
110 // Inherited from AndernachBoard
111 virtual Board* copy() const;
112 virtual QString variant() const;
113
114 protected:
119 virtual bool switchesSides(const Move& move) const;
120};
121
122} // namespace Chess
123#endif // ANDERNACHBOARD_H
virtual Move moveFromSanString(const QString &str)
Definition andernachboard.cpp:38
virtual void vMakeMove(const Move &move, BoardTransition *transition)
Definition andernachboard.cpp:65
AndernachBoard()
Definition andernachboard.cpp:23
virtual bool switchesSides(const Move &move) const
Definition andernachboard.cpp:92
virtual QString sanMoveString(const Move &move)
Definition andernachboard.cpp:49
virtual void vUndoMove(const Move &move)
Definition andernachboard.cpp:80
virtual QString variant() const
Definition andernachboard.cpp:33
virtual Board * copy() const
Definition andernachboard.cpp:28
virtual Board * copy() const
Definition andernachboard.cpp:105
AntiAndernachBoard()
Definition andernachboard.cpp:100
virtual bool switchesSides(const Move &move) const
Definition andernachboard.cpp:115
virtual QString variant() const
Definition andernachboard.cpp:110
Details of a board transition caused by a move.
Definition boardtransition.h:41
An internal chessboard class.
Definition board.h:58
A small and efficient chessmove class.
Definition move.h:43
StandardBoard()
Definition standardboard.cpp:1055
virtual QString variant() const
Definition andernachboard.cpp:133
virtual bool switchesSides(const Move &move) const
Definition andernachboard.cpp:138
virtual Board * copy() const
Definition andernachboard.cpp:128
SuperAndernachBoard()
Definition andernachboard.cpp:123