1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#ifndef __GAME_H__
#define __GAME_H__
#include <iostream>
#include "puzgen.h"
#include "verthints.h"
#include "horhints.h"
#include "puzzle.h"
class Watch;
class Game
{
private:
SolvedPuzzle solvedPuzzle;
Rules rules;
Possibilities *possibilities;
VertHints *verHints;
HorHints *horHints;
IconSet iconSet;
Puzzle *puzzle;
Watch *watch;
bool hinted;
SolvedPuzzle savedSolvedPuzzle;
Rules savedRules;
public:
Game();
Game(std::istream &stream);
~Game();
public:
SolvedPuzzle& getSolvedPuzzle() { return solvedPuzzle; };
Rules& getRules() { return rules; };
Possibilities* getPossibilities() { return possibilities; };
VertHints* getVerHints() { return verHints; };
HorHints* getHorHints() { return horHints; };
void save(std::ostream &stream);
void run();
bool isHinted() { return hinted; };
void setHinted() { hinted = true; };
void restart();
void newGame();
private:
void deleteRules();
void pleaseWait();
void genPuzzle();
void resetVisuals();
};
#endif
|