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.
11 #ifndef HLVARIANT__CHESS__VARIANT_H
12 #define HLVARIANT__CHESS__VARIANT_H
14 #include <kactioncollection.h>
16 #include "movegenerator.h"
17 #include "serializer.h"
20 #include "../animator.h"
21 #include "../movefactory.h"
24 class ActionCollection
;
29 struct TAGUA_EXPORT Variant
{
30 typedef GameState
<CustomBoard
<8, 8, Piece
>, Move
> GameState
;
31 typedef LegalityCheck
<GameState
> LegalityCheck
;
32 typedef MoveGenerator
<LegalityCheck
> MoveGenerator
;
33 typedef Serializer
<MoveGenerator
> Serializer
;
34 typedef SimpleAnimator
<Variant
> Animator
;
35 typedef MoveFactory
<GameState
> MoveFactory
;
37 static const bool hasICS
= true;
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 OptList
positionOptions() const { return OptList(); }
45 void setupMove(NormalUserMove
& m
) const;
47 ActionCollection
* actions();
53 } // namespace HLVariant
55 #endif // HLVARIANT__CHESS__VARIANT_H