| 1 |
#ifndef HEADER_LEVELCOUNTDOWN_H |
| 2 |
#define HEADER_LEVELCOUNTDOWN_H |
| 3 |
|
| 4 |
class LevelStatus; |
| 5 |
class RoomAccess; |
| 6 |
class Room; |
| 7 |
class GameState; |
| 8 |
class CountAdvisor; |
| 9 |
|
| 10 |
/** |
| 11 |
* Countdowns finished or wrong state. |
| 12 |
*/ |
| 13 |
class LevelCountDown { |
| 14 |
private: |
| 15 |
int m_countdown; |
| 16 |
const RoomAccess *m_access; |
| 17 |
LevelStatus *m_levelStatus; |
| 18 |
private: |
| 19 |
void setCountDown(const CountAdvisor *advisor); |
| 20 |
public: |
| 21 |
LevelCountDown(const RoomAccess *access); |
| 22 |
void fillStatus(LevelStatus *status) { m_levelStatus = status; } |
| 23 |
void reset(); |
| 24 |
|
| 25 |
bool countDown(const CountAdvisor *advisor); |
| 26 |
bool isFinishedEnough() const; |
| 27 |
bool isWrongEnough() const; |
| 28 |
|
| 29 |
void saveSolution(); |
| 30 |
GameState *createNextState(); |
| 31 |
}; |
| 32 |
|
| 33 |
#endif |