summaryrefslogtreecommitdiff
path: root/cell.h
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-09-02 11:47:15 +0930
committerdaniel-Jones <daniel@danieljon.es>2018-09-02 11:47:15 +0930
commit12f885b28b9740349dcee6a7c57d7b774017fd05 (patch)
treea1f19acd069ba42dd757c006783157013a53aed5 /cell.h
parent34eab2a4cd9a20f7deae3b7225a11678c240ede9 (diff)
downloadqtminesweeper-12f885b28b9740349dcee6a7c57d7b774017fd05.tar.gz
qtminesweeper-12f885b28b9740349dcee6a7c57d7b774017fd05.zip
initial cell flag system setup
Diffstat (limited to 'cell.h')
-rw-r--r--cell.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cell.h b/cell.h
index a53ee8b..f3d4d75 100644
--- a/cell.h
+++ b/cell.h
@@ -23,10 +23,21 @@ class cell : public square
{
public:
+ explicit cell(int flag);
+ enum flagtype
+ {
+ REVEALED = 1 << 0, /* square is revealed */
+ FLAG = 1 << 1, /* square is a selected flag */
+ MINE = 1 << 2, /* square is a mine */
+ NUMBER = 1 << 3 /* square is a number */
+ };
+ void flagcheck();
private:
+ void setflags(int flag);
protected:
+ enum flagtype flags;
};
#endif