Continued refactor work.
[tagua.git] / src / variants / chess.h
blob2cfeaed352d1e1b3e9981c0eb59a0496c4497950
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program 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 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef CHESS_H
12 #define CHESS_H
14 #include "variants/xchess/position.h"
15 #include "variants/xchess/animator.h"
16 #include "variants/xchess/piece.h"
17 #include "variants/xchess/move.h"
18 #include "option.h"
19 #include "piecegrid.h"
21 class ChessPiece;
22 class ChessMove;
23 class ChessAnimator;
24 class VariantInfo;
25 template <typename T> class PointerGrid;
26 template <typename M, typename P, typename B> class Position;
27 typedef Grid<ChessPiece> PieceGrid;
28 typedef Position<ChessMove, ChessPiece, PieceGrid> ChessPosition;
30 struct ChessVariant {
31 typedef ChessPosition Position;
32 typedef Position::Move Move;
33 typedef Position::Piece Piece;
34 typedef ChessAnimator Animator;
36 static const bool m_simple_moves = false;
37 static const char *m_name;
38 static const char *m_theme_proxy;
39 static void forallPieces(class PieceFunction& f);
40 static int moveListLayout(){ return 0; }
42 static VariantInfo* static_chess_variant;
43 static VariantInfo* info();
44 static OptList positionOptions() { return OptList(); }
48 #endif // CHESS_H