Implemented variant actions.
[tagua/yd.git] / src / hlvariant / crazyhouse / variant.h
bloba1caf5582c0b6a975394e8b9a37c2a292b922c0e
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 "../chess/move.h"
21 #include "../chess/variant.h"
22 #include "export.h"
23 #include "option.h"
24 #include "legalitycheck.h"
25 #include "../animator.h"
26 #include "../dropanimator.h"
27 #include "movefactory.h"
29 namespace HLVariant {
30 namespace Crazyhouse {
32 struct TAGUA_EXPORT Variant {
33 typedef MoveMixin<Chess::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; }
48 static OptList positionOptions() { return OptList(); }
51 } // namespace Chess
52 } // namespace HLVariant
54 #endif // HLVARIANT__CRAZYHOUSE__VARIANT_H