diff options
Diffstat (limited to 'Source/Randomizer2Core.h')
-rw-r--r-- | Source/Randomizer2Core.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Randomizer2Core.h b/Source/Randomizer2Core.h index 443f893..674e4ea 100644 --- a/Source/Randomizer2Core.h +++ b/Source/Randomizer2Core.h | |||
@@ -6,11 +6,13 @@ class Puzzle; | |||
6 | 6 | ||
7 | class Randomizer2Core { | 7 | class Randomizer2Core { |
8 | public: | 8 | public: |
9 | // CAUTION: Does not actually cut edges, just returns a list of suggested cuts. | 9 | // CAUTION: These do not actually cut edges, they just returns a list of suggested cuts. |
10 | static std::vector<Pos> CutEdges(const Puzzle& p, size_t numEdges, bool allowEdges); | 10 | static std::vector<Pos> CutEdges(const Puzzle& p, size_t numEdges); |
11 | static std::vector<Pos> CutInsideEdges(const Puzzle& p, size_t numEdges); | ||
12 | static std::vector<Pos> CutSymmetricalEdgePairs(const Puzzle& p, size_t numEdges); | ||
11 | 13 | ||
12 | private: | 14 | private: |
13 | static std::vector<Pos> CutEdgesInternal(const Puzzle& p, std::vector<Pos>& edges, size_t numEdges); | 15 | static std::vector<Pos> CutEdgesInternal(const Puzzle& p, int xMin, int xMax, int yMin, int yMax, size_t numEdges); |
14 | static void DebugColorGrid(const std::vector<std::vector<int>>& colorGrid); | 16 | static void DebugColorGrid(const std::vector<std::vector<int>>& colorGrid); |
15 | static void FloodFill(const Puzzle& p, std::vector<std::vector<int>>& colorGrid, int color, int x, int y); | 17 | static void FloodFill(const Puzzle& p, std::vector<std::vector<int>>& colorGrid, int color, int x, int y); |
16 | static void FloodFillOutside(const Puzzle& p, std::vector<std::vector<int>>& colorGrid, int x, int y); | 18 | static void FloodFillOutside(const Puzzle& p, std::vector<std::vector<int>>& colorGrid, int x, int y); |