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__DUMMY__LEGALITYCHECK_H
12 #define HLVARIANT__DUMMY__LEGALITYCHECK_H
14 #include "../chess/legalitycheck.h"
15 #include "interactiontype.h"
16 #include "turnpolicy.h"
21 template <typename _GameState
>
24 typedef _GameState GameState
;
26 typedef typename
GameState::Board Board
;
27 typedef typename
GameState::Move Move
;
28 typedef typename
Board::Piece Piece
;
30 LegalityCheck(const GameState
&) { }
32 virtual bool legal(Move
& move
) const { return true; }
33 virtual InteractionType
movable(const TurnTest
& test
, const Point
& p
) { return Moving
; }
34 virtual InteractionType
droppable(const TurnTest
& test
, int index
) { return Moving
; }
38 } // namespace HLVariant
41 #endif // HLVARIANT__DUMMY__LEGALITYCHECK_H