Tentative Randomless-Entropy variant.
[tagua/yd.git] / src / variants / crazyhouse / state.h
blob3d8330531f0dd5069927107a9084972015272858
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 CRAZYHOUSE__STATE_H
11 #define CRAZYHOUSE__STATE_H
13 #include <core/delegators/state.h>
14 #include <core/piece.h>
16 class IPoolCollection;
18 /**
19 * @brief Namespace holding Crazyhouse components.
21 namespace Crazyhouse {
23 class State : public Delegators::State {
24 Q_OBJECT
25 IPoolCollection* m_pools;
26 public:
27 State(IState* state);
28 virtual ~State();
30 virtual IState* clone() const;
31 virtual void assign(const IState* other);
32 virtual void move(const Move& m);
34 virtual const IPoolCollection* pools() const;
35 virtual IPoolCollection* pools();
38 } // namespace Crazyhouse
40 #endif // CRAZYHOUSE__STATE_H