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.
10 #ifndef CHESS__BEHAVIOUR_H
11 #define CHESS__BEHAVIOUR_H
13 #include <core/behaviour.h>
14 #include <core/component.h>
18 class Behaviour
: public Component
, public IBehaviour
{
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;
31 #endif // CHESS__BEHAVIOUR_H