From d5bce3bba23a5ba4c296f1783ba277bcc206736c Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Wed, 20 Nov 2019 20:30:25 -0800 Subject: Some progress on symmetry. --- Source/Puzzle.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Source/Puzzle.h') 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: int width = 0; bool hasDecorations = false; - enum class Symmetry {NONE, X, Y, XY}; + enum Symmetry { + NONE = 0, + X = 1, + Y = 2, + XY = 3 + }; Symmetry symmetry = Symmetry::NONE; bool pillar = false; @@ -87,9 +92,7 @@ public: Cell GetCell(int x, int y) const; Cell::Color GetLine(int x, int y) const; void NewGrid(int newWidth, int newHeight); - - // @TODO: - Pos GetSymmetricalPos(int x, int y); + Pos GetSymmetricalPos(int x, int y) const; // private: std::vector> grid; -- cgit 1.4.1