about summary refs log tree commit diff stats
path: root/Source/Puzzle.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-20 20:30:25 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-20 20:30:25 -0800
commitd5bce3bba23a5ba4c296f1783ba277bcc206736c (patch)
tree64835daf9aeb54fa779e06426a777861d68195e4 /Source/Puzzle.h
parent6f0a34bfb761d965bd961dc1f880b84e35f9959f (diff)
downloadwitness-tutorializer-d5bce3bba23a5ba4c296f1783ba277bcc206736c.tar.gz
witness-tutorializer-d5bce3bba23a5ba4c296f1783ba277bcc206736c.tar.bz2
witness-tutorializer-d5bce3bba23a5ba4c296f1783ba277bcc206736c.zip
Some progress on symmetry.
Diffstat (limited to 'Source/Puzzle.h')
-rw-r--r--Source/Puzzle.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/Puzzle.h b/Source/Puzzle.h index ac604f1..8afb9ca 100644 --- a/Source/Puzzle.h +++ b/Source/Puzzle.h
@@ -74,7 +74,12 @@ public:
74 int width = 0; 74 int width = 0;
75 bool hasDecorations = false; 75 bool hasDecorations = false;
76 76
77 enum class Symmetry {NONE, X, Y, XY}; 77 enum Symmetry {
78 NONE = 0,
79 X = 1,
80 Y = 2,
81 XY = 3
82 };
78 Symmetry symmetry = Symmetry::NONE; 83 Symmetry symmetry = Symmetry::NONE;
79 bool pillar = false; 84 bool pillar = false;
80 85
@@ -87,9 +92,7 @@ public:
87 Cell GetCell(int x, int y) const; 92 Cell GetCell(int x, int y) const;
88 Cell::Color GetLine(int x, int y) const; 93 Cell::Color GetLine(int x, int y) const;
89 void NewGrid(int newWidth, int newHeight); 94 void NewGrid(int newWidth, int newHeight);
90 95 Pos GetSymmetricalPos(int x, int y) const;
91 // @TODO:
92 Pos GetSymmetricalPos(int x, int y);
93 96
94// private: 97// private:
95 std::vector<std::vector<Cell>> grid; 98 std::vector<std::vector<Cell>> grid;