Preliminary port of Shogi to the component API.
[tagua/yd.git] / src / variants / shogi / behaviour.h
blobd662c4e6765b398070970009aeab08b14c1bb6bb
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
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__BEHAVIOUR_H
11 #define SHOGI__BEHAVIOUR_H
13 #include <core/delegators/behaviour.h>
14 #include <core/promotionmanager.h>
16 namespace Shogi {
18 class Behaviour : public Component, public Delegators::Behaviour {
19 private:
20 PromotionManager* m_promotionmanager;
21 public:
22 Behaviour(const IBehaviour* behaviour);
24 virtual void captureOn(IState* state, const Point& square) const;
26 void setPromotionManager(PromotionManager* pm) { m_promotionmanager = pm; }
29 } // namespace Shogi
31 #endif // SHOGI__BEHAVIOUR_H