Variants are not singletons anymore.
[tagua/yd.git] / src / hlvariant / minichess5 / variant.h
blob74f52fce59f834ee4ec80ff91dfed3994a0238fa
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__MINICHESS5__VARIANT_H
12 #define HLVARIANT__MINICHESS5__VARIANT_H
14 #include "../chess/variant.h"
16 namespace HLVariant {
17 namespace Minichess5 {
19 struct TAGUA_EXPORT Variant {
20 typedef Chess::Move Move;
21 typedef Chess::Piece Piece;
22 typedef CustomBoard<5, 5, Piece> Board;
23 typedef Chess::GameState<Board, Move> GameState;
24 typedef Chess::LegalityCheck<GameState> LegalityCheck;
25 typedef Chess::MoveGenerator<LegalityCheck> MoveGenerator;
26 typedef Chess::Serializer<MoveGenerator> Serializer;
27 typedef SimpleAnimator<Variant> Animator;
28 typedef MoveFactory<GameState> MoveFactory;
30 static const bool hasICS = false;
31 static const bool m_simple_moves = false;
32 static const char *m_name;
33 static const char *m_theme_proxy;
35 static int moveListLayout() { return 0; }
37 static OptList positionOptions() { return OptList(); }
40 } // namespace Minichess5
41 } // namespace HLVariant
44 #endif // HLVARIANT__MINICHESS5__VARIANT_H