diff options
Diffstat (limited to 'qtminesweeper.h')
-rw-r--r-- | qtminesweeper.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qtminesweeper.h b/qtminesweeper.h index 7c8d914..84aa29f 100644 --- a/qtminesweeper.h +++ b/qtminesweeper.h @@ -20,6 +20,7 @@ #include <QtGui> #include <QWidget> #include <QList> +#include <vector> #include "selector.h" #include "cell.h" #include "constants.h" @@ -42,9 +43,11 @@ class qtminesweeper : public QWidget void drawcursor(QPainter *painter); void drawcells(QPainter *painter); void generatecellpos(); + void revealcell(int index); + int getcellindexfrompos(int gridx, int gridy); selector cursor; - QList<cell> cells; + std::vector<cell> cells; protected: void paintEvent(QPaintEvent *event); |