2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
4 (c) 2007 Yann Dirson <ydirson@altern.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
12 #ifndef HLVARIANT__TORI_SHOGI__VARIANT_H
13 #define HLVARIANT__TORI_SHOGI__VARIANT_H
16 #include "../shogi/shogiban.h"
17 #include "../chess/move.h"
18 #include "../crazyhouse/move.h"
19 #include "gamestate.h"
20 #include "legalitycheck.h"
21 #include "serializer.h"
22 #include "../crazyhouse/movefactory.h"
23 #include "../animator.h"
24 #include "../dropanimator.h"
25 #include "../shogi/shogiactions.h"
30 struct TAGUA_EXPORT Variant
{
31 typedef Crazyhouse::MoveMixin
<Chess::Move
, Piece
> Move
;
32 typedef GameState
<Shogi::ShogiBan
<7, 7, Piece
>, Move
> GameState
;
33 typedef LegalityCheck
<GameState
> LegalityCheck
;
34 typedef Serializer
<LegalityCheck
> Serializer
;
35 typedef DropAnimatorMixin
<SimpleAnimator
<Variant
> > Animator
;
36 typedef Crazyhouse::MoveFactory
<GameState
> MoveFactory
;
37 typedef Variant MoveGenerator
; // to make VariantData happy
39 static const bool hasICS
= false;
40 static const bool m_simple_moves
= false;
41 static const bool m_hidden
= false;
42 static const char *m_name
;
43 static const char *m_theme_proxy
;
45 static int moveListLayout() { return 0; }
47 OptList
positionOptions() const { return OptList(); }
48 void setupMove(NormalUserMove
& m
) const;
49 ActionCollection
* actions();
51 Shogi::ShogiActions m_actions
;
55 } // namespace HLVariant
57 #endif // HLVARIANT__TORI_SHOGI__VARIANT_H