2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
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.
11 #ifndef HLVARIANT__MINICHESS5__VARIANT_H
12 #define HLVARIANT__MINICHESS5__VARIANT_H
14 #include "../chess/variant.h"
15 #include "../chess/actions.h"
18 namespace Minichess5
{
20 struct TAGUA_EXPORT Variant
{
21 typedef Chess::Move Move
;
22 typedef Chess::Piece Piece
;
23 typedef CustomBoard
<5, 5, Piece
> Board
;
24 typedef Chess::GameState
<Board
, Move
> GameState
;
25 typedef Chess::LegalityCheck
<GameState
> LegalityCheck
;
26 typedef Chess::MoveGenerator
<LegalityCheck
> MoveGenerator
;
27 typedef Chess::Serializer
<MoveGenerator
> Serializer
;
28 typedef SimpleAnimator
<Variant
> Animator
;
29 typedef MoveFactory
<GameState
> MoveFactory
;
31 static const bool hasICS
= false;
32 static const bool m_simple_moves
= false;
33 static const char *m_name
;
34 static const char *m_theme_proxy
;
36 static int moveListLayout() { return 0; }
38 OptList
positionOptions() const { return OptList(); }
39 void setupMove(NormalUserMove
& m
) const;
40 ActionCollection
* actions();
42 Chess::Actions m_actions
;
45 } // namespace Minichess5
46 } // namespace HLVariant
49 #endif // HLVARIANT__MINICHESS5__VARIANT_H