refresh 77518ae98cef372c3d26fc7e5c43c5ad4a09c6f5
[tagua/yd.git] / src / variants / shogi / silver.h
blob3d3dd3a2cfc44a2b8bbcffcb57c68a3184a97c04
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__TYPES__SILVER_H
12 #define SHOGI__TYPES__SILVER_H
14 #include <core/component.h>
15 #include <core/type.h>
17 namespace Shogi {
19 class ICastlingRules;
21 class TAGUA_EXPORT Silver : public Component, public IType {
22 Q_OBJECT
23 Silver();
24 public:
25 virtual QString name() const;
26 virtual bool canMove(const Piece& piece, const Piece& target,
27 Move& move, const IState* state) const;
28 virtual int index() const;
29 static Silver* self();
34 #endif // SHOGI__TYPES__SILVER_H