Implemented the State component for chess.
[tagua/yd.git] / src / core / types / knight.h
blob2fbfb68bf8ef0897dea2e71918ef86dffc1a5f0b
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 CORE__TYPES__KNIGHT_H
12 #define CORE__TYPES__KNIGHT_H
14 #include "../component.h"
15 #include "../type.h"
17 class TAGUA_EXPORT Knight : public Component, public IType {
18 Q_OBJECT
19 Knight();
20 public:
21 virtual QString name() const;
22 virtual bool canMove(const Piece& piece, const Piece& target,
23 Move& move, const IState* state) const;
24 virtual int index() const;
25 static Knight* self();
28 #endif // CORE__TYPES__KNIGHT_H