e0ebace2db58ea0f8d83d66c3ce1bd909478d805
[tagua/yd.git] / src / variants / crazyhouse / state.h
blobe0ebace2db58ea0f8d83d66c3ce1bd909478d805
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/component.h>
15 #include <core/piece.h>
17 class IPoolCollection;
19 /**
20 * @brief Namespace holding Crazyhouse components.
22 namespace Crazyhouse {
24 class State : public Component, public Delegators::State {
25 Q_OBJECT
26 IPoolCollection* m_pools;
27 public:
28 State(IState* state);
29 virtual ~State();
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