diff options
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, |