Diffstat (limited to 'noncore/games/zsame/StoneWidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/zsame/StoneWidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/games/zsame/StoneWidget.h b/noncore/games/zsame/StoneWidget.h index 9cd7e10..89a8afc 100644 --- a/noncore/games/zsame/StoneWidget.h +++ b/noncore/games/zsame/StoneWidget.h @@ -50,48 +50,49 @@ class StoneWidget : public QWidget { StoneSlice **map; public: StoneWidget( QWidget *parent=0, int x=10,int y=10); ~StoneWidget(); unsigned int board(); int score(); int marked(); QSize size(); int colors(); virtual QSize sizeHint() const; bool undoPossible() const; void newGame(unsigned int board, int colors); void reset(); void unmark(); int undo(int count=1); // test for game end bool isGameover(); // if isGameover(): finished with bonus? bool hasBonus(); + void clearBonus(); // test for unchanged start position bool isOriginalBoard(); virtual void readProperties(Config *conf); virtual void saveProperties(Config *conf); protected: void timerEvent( QTimerEvent *e ); void paintEvent( QPaintEvent *e ); void mousePressEvent ( QMouseEvent *e); void myMoveEvent ( QMouseEvent *e); // properties of the stone picture int stone_width,stone_height; // size of one stone int maxcolors; // number of different stones (Y direction) int maxslices; // number of pictures per movie (X direction) signals: // A new game begins void s_newgame(); void s_colors(int colors); void s_board(int board); |