User moves are now created by the entity.
[tagua/yd.git] / src / hlvariant / shogi / variant.h
blobb0f95fecd28e39231bf00ec83066811ab2c7c15e
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 */
11 #ifndef HLVARIANT__SHOGI__VARIANT_H
12 #define HLVARIANT__SHOGI__VARIANT_H
14 #include "piece.h"
15 #include "shogiban.h"
16 #include "../chess/move.h"
17 #include "../crazyhouse/move.h"
18 #include "gamestate.h"
19 #include "legalitycheck.h"
20 #include "serializer.h"
21 #include "../crazyhouse/movefactory.h"
22 #include "../animator.h"
23 #include "../dropanimator.h"
25 namespace HLVariant {
26 namespace Shogi {
28 struct TAGUA_EXPORT Variant {
29 typedef Crazyhouse::MoveMixin<Chess::Move, Piece> Move;
30 typedef GameState<ShogiBan<9, 9, Piece>, Move> GameState;
31 typedef LegalityCheck<GameState> LegalityCheck;
32 typedef Serializer<LegalityCheck> Serializer;
33 typedef DropAnimatorMixin<SimpleAnimator<Variant> > Animator;
34 typedef Crazyhouse::MoveFactory<GameState> MoveFactory;
35 typedef Variant MoveGenerator; // to make VariantData happy
37 static const bool hasICS = false;
38 static const bool m_simple_moves = false;
39 static const char *m_name;
40 static const char *m_theme_proxy;
42 static int moveListLayout() { return 0; }
44 static OptList positionOptions() { return OptList(); }
48 } // namespace Shogi
49 } // namespace HLVariant
51 #endif // HLVARIANT__SHOGI__VARIANT_H