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.
15 #include "taguaobject.h"
19 class TAGUA_EXPORT Move
: public TaguaObject
{
22 const IType
* m_promotion
;
32 Move(const Point
& src
, const Point
& dst
, const IType
* promotion
= 0);
33 Move(const IColor
* pool
, int index
, const Point
& dst
);
38 void setDrop(const Piece
& piece
);
42 void setType(const QString
&);
44 const IType
* promotion() const;
45 void setPromotion(const IType
* promotion
);
49 const IColor
* pool() const;
52 bool operator==(const Move
& mv
) const;
53 bool operator!=(const Move
& mv
) const;
56 Q_DECLARE_METATYPE(Move
)
58 #endif // CORE__MOVE_H