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 CRAZYHOUSE__STATE_H
11 #define CRAZYHOUSE__STATE_H
13 #include <core/delegators/state.h>
14 #include <core/component.h>
15 #include <core/piece.h>
17 class IPoolCollection
;
20 * @brief Namespace holding Crazyhouse components.
22 namespace Crazyhouse
{
24 class State
: public Component
, public Delegators::State
{
26 IPoolCollection
* m_pools
;
31 virtual IState
* clone() const;
32 virtual void assign(const IState
* other
);
33 virtual void move(const Move
& m
);
35 virtual const IPoolCollection
* pools() const;
36 virtual IPoolCollection
* pools();
39 } // namespace Crazyhouse
41 #endif // CRAZYHOUSE__STATE_H