about summary refs log tree commit diff stats
path: root/Source/Randomizer2Core.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Randomizer2Core.h')
-rw-r--r--Source/Randomizer2Core.h8
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
7class Randomizer2Core { 7class Randomizer2Core {
8public: 8public:
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
12private: 14private:
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);