diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-27 17:20:23 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-27 17:20:23 -0400 |
commit | 4f25fa9ae42a0d43c20e954e8e50c66a6b057c92 (patch) | |
tree | 6cdfc57f5e1f54d025610757efb0ec57c3b88b0b /ext/wittle_generator/Panel.h | |
parent | dde56d26837dc52e05207c0672b3c4a1046f6cb2 (diff) | |
download | wittle-4f25fa9ae42a0d43c20e954e8e50c66a6b057c92.tar.gz wittle-4f25fa9ae42a0d43c20e954e8e50c66a6b057c92.tar.bz2 wittle-4f25fa9ae42a0d43c20e954e8e50c66a6b057c92.zip |
We can output a code for witnesspuzzles
Diffstat (limited to 'ext/wittle_generator/Panel.h')
-rw-r--r-- | ext/wittle_generator/Panel.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/wittle_generator/Panel.h b/ext/wittle_generator/Panel.h index 7444a9a..7f1588d 100644 --- a/ext/wittle_generator/Panel.h +++ b/ext/wittle_generator/Panel.h | |||
@@ -119,12 +119,12 @@ class Endpoint { | |||
119 | _flags = flags; | 119 | _flags = flags; |
120 | } | 120 | } |
121 | 121 | ||
122 | int GetX() { return _x; } | 122 | int GetX() const { return _x; } |
123 | void SetX(int x) { _x = x; } | 123 | void SetX(int x) { _x = x; } |
124 | int GetY() { return _y; } | 124 | int GetY() const { return _y; } |
125 | void SetY(int y) { _y = y; } | 125 | void SetY(int y) { _y = y; } |
126 | Direction GetDir() { return _dir; } | 126 | Direction GetDir() const { return _dir; } |
127 | int GetFlags() { return _flags; } | 127 | int GetFlags() const { return _flags; } |
128 | void SetDir(Direction dir) { _dir = dir; } | 128 | void SetDir(Direction dir) { _dir = dir; } |
129 | 129 | ||
130 | private: | 130 | private: |
@@ -167,6 +167,8 @@ class Panel { | |||
167 | int get(int x, int y) { return _grid[x][y]; } | 167 | int get(int x, int y) { return _grid[x][y]; } |
168 | void set(int x, int y, int val) { _grid[x][y] = val; } | 168 | void set(int x, int y, int val) { _grid[x][y] = val; } |
169 | 169 | ||
170 | std::string Write(); | ||
171 | |||
170 | enum Style { | 172 | enum Style { |
171 | SYMMETRICAL = 0x2, // Not on the town symmetry puzzles? IDK why. | 173 | SYMMETRICAL = 0x2, // Not on the town symmetry puzzles? IDK why. |
172 | NO_BLINK = 0x4, | 174 | NO_BLINK = 0x4, |