Preliminary port of Shogi to the component API.
[tagua/yd.git] / src / variants / shogi / type.h
blob3ff0ad18cae69d3857538724d173cc34a33d1608
1 /*
2 Copyright (c) 2008 Yann Dirson <ydirson@altern.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 */
10 #ifndef SHOGI__TYPE_H
11 #define SHOGI__TYPE_H
13 #include <core/defaulttype.h>
15 namespace Shogi {
17 class TAGUA_EXPORT Type : public DefaultType {
18 public:
19 virtual const std::vector<MoveDefinition> * const movesDefinitions() const = 0;
20 virtual bool canMove(const Piece& piece, const Piece& target,
21 Move& move, const IState* state) const;
26 #endif // SHOGI__TYPE_H