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__CHESS__MOVE_H
12 #define HLVARIANT__CHESS__MOVE_H
20 class TAGUA_EXPORT Move
{
39 Move(const Point
& from
, const Point
& to
, int promotionType
= -1);
42 virtual Point
enPassantTrigger() const;
43 virtual Point
captureSquare() const;
44 virtual int promoteTo() const;
45 virtual bool kingSideCastling() const;
46 virtual bool queenSideCastling() const;
48 virtual Point
from() const;
49 virtual Point
to() const;
50 virtual bool valid() const;
52 virtual void setType(Type type
);
54 virtual bool operator==(const Move
& move
) const;
58 } // namespace HLVariant
60 #endif // HLVARIANT__CHESS__MOVE_H