Added Chess 5x5.
[tagua/yd.git] / src / hlvariant / crazyhouse / variant.h
blobe1c8e18d953f55d349ade6073e3f6a99f36ae764
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2007 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 */
12 #ifndef HLVARIANT__CRAZYHOUSE__VARIANT_H
13 #define HLVARIANT__CRAZYHOUSE__VARIANT_H
15 #include "movegenerator.h"
16 #include "serializer.h"
17 #include "piece.h"
18 #include "gamestate.h"
19 #include "move.h"
20 #include "export.h"
21 #include "option.h"
22 #include "legalitycheck.h"
23 #include "../animator.h"
24 #include "../dropanimator.h"
25 #include "movefactory.h"
27 class VariantInfo;
29 namespace HLVariant {
30 namespace Crazyhouse {
32 struct TAGUA_EXPORT Variant {
33 typedef Move<Piece> Move;
34 typedef CustomBoard<8, 8, Piece> Board;
35 typedef GameState<Board, Move> GameState;
36 typedef LegalityCheck<GameState> LegalityCheck;
37 typedef MoveGenerator<LegalityCheck> MoveGenerator;
38 typedef Serializer<MoveGenerator> Serializer;
39 typedef DropAnimatorMixin<SimpleAnimator<Variant> > Animator;
40 typedef MoveFactory<GameState> MoveFactory;
42 static const bool hasICS = true;
43 static const bool m_simple_moves = false;
44 static const char *m_name;
45 static const char *m_theme_proxy;
47 static int moveListLayout() { return 0; }
49 static VariantInfo* static_chess_variant;
50 static VariantInfo* info();
51 static OptList positionOptions() { return OptList(); }
54 } // namespace Chess
55 } // namespace HLVariant
57 #endif // HLVARIANT__CRAZYHOUSE__VARIANT_H