Moved ICS related API to the ICSAPI abstract class.
[tagua/yd.git] / src / variants / chess.h
blob635be70ac7e70e419ae43abdf4b54162cc2986c1
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 "nopool.h"
20 #include "piecegrid.h"
22 class ChessPiece;
23 class ChessMove;
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 SimpleAnimator<ChessVariant> Animator;
35 typedef NoPool Pool;
37 static const bool hasICS = true;
38 static const bool m_simple_moves = false;
39 static const char *m_name;
40 static const char *m_theme_proxy;
41 static void forallPieces(class PieceFunction& f);
42 static int moveListLayout(){ return 0; }
44 static VariantInfo* static_chess_variant;
45 static VariantInfo* info();
46 static OptList positionOptions() { return OptList(); }
50 #endif // CHESS_H