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.
12 #ifndef HLVARIANT__CRAZYHOUSE__VARIANT_H
13 #define HLVARIANT__CRAZYHOUSE__VARIANT_H
15 #include "movegenerator.h"
16 #include "serializer.h"
18 #include "gamestate.h"
22 #include "legalitycheck.h"
23 #include "../animator.h"
24 #include "../dropanimator.h"
25 #include "movefactory.h"
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(); }
55 } // namespace HLVariant
57 #endif // HLVARIANT__CRAZYHOUSE__VARIANT_H