push 98438d20051787465e7a05f4aa66ab452afb1c14
[tagua/yd.git] / src / variants / chess / queen.h
blobf40c1efda918b51bf867ddbf4d7c097442abd6a0
1 /*
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.
9 */
11 #ifndef CHESS__TYPES__QUEEN_H
12 #define CHESS__TYPES__QUEEN_H
14 #include <core/component.h>
15 #include <core/type.h>
17 namespace Chess {
19 class TAGUA_EXPORT Queen : public Component, public IType {
20 Q_OBJECT
21 Queen();
22 public:
23 virtual QString name() const;
24 virtual bool canMove(const Piece& piece, const Piece& target,
25 Move& move, const IState* state) const;
26 virtual int index() const;
27 static Queen* self();
32 #endif // CHESS__TYPES__QUEEN_H