new 4475edb243ed4627f4c5f2c470ca40b3def034d4
[tagua/yd.git] / src / variants / chess / behaviour.h
blob74662cc680b2631aacf8c70983ebcd4314d40636
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 CHESS__BEHAVIOUR_H
11 #define CHESS__BEHAVIOUR_H
13 #include <core/behaviour.h>
14 #include <core/component.h>
16 namespace Chess {
18 class Behaviour : public Component, public IBehaviour {
19 Q_OBJECT
20 public:
21 virtual void captureOn(IState* state, const Point& square) const;
22 virtual void move(IState* state, const Move& m) const;
23 virtual void advanceTurn(IState* state) const;
24 virtual Point captureSquare(const IState* state, const Move& m) const;
25 virtual const IColor* opponent(const IColor* player) const;
26 virtual Point direction(const IColor* player) const;
29 } // namespace Chess
31 #endif // CHESS__BEHAVIOUR_H