summaryrefslogtreecommitdiff
path: root/cell.h
diff options
context:
space:
mode:
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