refresh bdc45694d411cad215e68161e75bb9f1a8a39e47
[tagua/yd.git] / src / variants / shogi / faces / knight.h
blob32fc44e9a5c3f3905e8d9f824c6a659a24fc0d6d
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 SHOGI__FACES__KNIGHT_H
12 #define SHOGI__FACES__KNIGHT_H
14 #include <core/component.h>
15 #include <core/type.h>
17 namespace Shogi {
18 namespace Faces {
20 class TAGUA_EXPORT Knight : public Component, public IType {
21 Q_OBJECT
22 Knight();
23 public:
24 virtual QString name() const;
25 virtual bool canMove(const Piece& piece, const Piece& target,
26 Move& move, const IState* state) const;
27 virtual int index() const;
28 static Knight* self();
34 #endif // SHOGI__FACES__KNIGHT_H