1 #ifndef SOLUTION_HH 2 #define SOLUTION_HH 3 #include "alarm.hh" 4 class Game; 5 class Board; 6 class Panel; 7 8 class SolutionDisplay: public AlarmHooks { 9 10 Game *_game; 11 Board *_board; 12 13 bool _on; 14 int _pos; 15 Alarm _alarm; 16 int _state; 17 int _time_scale; 18 19 void real_turn_off(); 20 21 Moment delay(long) const; 22 23 public: 24 25 SolutionDisplay(Game *, Board *); 26 on() const27 bool on() const { return _on; } 28 29 bool turn_on(Panel *); turn_off()30 void turn_off() { if (_on) real_turn_off(); } 31 void change_speed(bool faster); 32 33 void alarm(); 34 35 }; 36 37 #endif 38