huc::maze::SidewinderGenerator Class Reference
#include <sidewinder_generator.hxx>
Public Types | |
typedef Grid< CellInfoBase > | Maze |
typedef Maze::Cell | Cell |
Public Member Functions | |
std::unique_ptr< Maze > | operator() (const uint32_t width, const uint32_t height, const uint32_t seed=0) |
Detailed Description
Sidewinder Generator - Generate a maze using a sidewinder strategy.
Sidewinder Maze Generator is very similar to the Binary Tree algorithm, and only slightly more complicated. Furthermore, the Sidewinder algorithm only needs to consider the current row, and therefore can be used to generate infinitely large mazes (like the Binary Tree).
While binary tree mazes have two of its four sides being one long passage, a Sidewinder mazes have just one long passage.
- Parameters
-
width desired width for the maze. height desired height for the maze. seed number used to initiate the random generator.
- Returns
- Operator() returns Maze Grid pointer to be owned, nullptr if construction failed.
Definition at line 47 of file sidewinder_generator.hxx.
Member Typedef Documentation
Definition at line 51 of file sidewinder_generator.hxx.
Definition at line 50 of file sidewinder_generator.hxx.
Member Function Documentation
|
inline |
Definition at line 53 of file sidewinder_generator.hxx.
Grid< CellInfoBase > Maze
Definition: sidewinder_generator.hxx:50
The documentation for this class was generated from the following file: