Variants are not singletons anymore.
[tagua/yd.git] / src / hlvariant / minishogi / variant.h
blobebd591b9d423d3db73e74fac42cbc5fa2b657b4e
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@sns.it>
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.
13 #ifndef HLVARIANT__MINISHOGI__VARIANT_H
14 #define HLVARIANT__MINISHOGI__VARIANT_H
16 #include "../shogi/piece.h"
17 #include "../shogi/shogiban.h"
18 #include "../chess/move.h"
19 #include "../crazyhouse/move.h"
20 #include "gamestate.h"
21 #include "../shogi/legalitycheck.h"
22 #include "../shogi/serializer.h"
23 #include "../crazyhouse/movefactory.h"
24 #include "../animator.h"
25 #include "../dropanimator.h"
27 namespace HLVariant {
28 namespace MiniShogi {
30 struct TAGUA_EXPORT Variant {
31 typedef Crazyhouse::MoveMixin<Chess::Move, Shogi::Piece> Move;
32 typedef GameState<Shogi::ShogiBan<5, 5, Shogi::Piece>, Move> GameState;
33 typedef Shogi::LegalityCheck<GameState> LegalityCheck;
34 typedef Shogi::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 char *m_name;
42 static const char *m_theme_proxy;
44 static int moveListLayout() { return 0; }
46 static OptList positionOptions() { return OptList(); }
50 } // namespace MiniShogi
51 } // namespace HLVariant
53 #endif // HLVARIANT__MINISHOGI__VARIANT_H