Preliminary port of Shogi to the component API.
[tagua/yd.git] / src / variants / shogi / types / bishop.h
blobf9af866272d46a4b9feb79557f82d46232242e13
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__BISHOP_H
12 #define SHOGI__TYPES__BISHOP_H
14 #include <core/component.h>
15 #include "../type.h"
17 namespace Shogi {
19 class TAGUA_EXPORT Bishop : public Component, public Type {
20 Q_OBJECT
21 Bishop();
22 public:
23 virtual QString name() const;
24 virtual const std::vector<MoveDefinition> * const movesDefinitions() const;
25 virtual int index() const;
26 static Bishop* self();
27 private:
28 std::vector<MoveDefinition> m_moveDefinitions;
33 #endif // SHOGI__TYPES__BISHOP_H