public static interface GrowingTreeMazeGenerator.ChoosingMethod
GrowingTreeMazeGenerator.generate(ChoosingMethod)
places paths through the maze. Most often, you'll want
to at least start with GrowingTreeMazeGenerator.newest
, since it generates the most maze-like dungeons, and try the other
predefined ChoosingMethods eventually. You can use GrowingTreeMazeGenerator.mix(ChoosingMethod, double, ChoosingMethod, double)
to mix two ChoosingMethods, which can be a good way to add a little variety to a maze.Modifier and Type | Method and Description |
---|---|
int |
chooseIndex(int size)
Given the size to choose from, will return a single value smaller than the passed in value and greater than
or equal to 0.
|
int chooseIndex(int size)
size
- the exclusive upper bound for results; always at least 1size
(exclusive)Copyright © Eben Howard 2012–2022. All rights reserved.