Package | Description |
---|---|
squidpony.squidgrid.mapping |
Tools specifically for generating maps and placing content in them, usually working with 2D char arrays.
|
Modifier and Type | Field and Description |
---|---|
GrowingTreeMazeGenerator.ChoosingMethod |
GrowingTreeMazeGenerator.newest
Produces high-quality mazes that are very similar to those produced by a recursive back-tracking algorithm.
|
GrowingTreeMazeGenerator.ChoosingMethod |
GrowingTreeMazeGenerator.oldest
Produces mostly straight corridors that dead-end at the map's edge; probably only useful with
GrowingTreeMazeGenerator.mix(ChoosingMethod, double, ChoosingMethod, double) . |
GrowingTreeMazeGenerator.ChoosingMethod |
GrowingTreeMazeGenerator.random
Produces chaotic, jumbled spans of corridors, often with dead-ends, that are similar to those produced by Prim's
algorithm.
|
Modifier and Type | Method and Description |
---|---|
GrowingTreeMazeGenerator.ChoosingMethod |
GrowingTreeMazeGenerator.mix(GrowingTreeMazeGenerator.ChoosingMethod methodA,
double chanceA,
GrowingTreeMazeGenerator.ChoosingMethod methodB,
double chanceB)
Mixes two ChoosingMethod values, like
GrowingTreeMazeGenerator.newest and GrowingTreeMazeGenerator.random , given a weight for each, and produces
a new ChoosingMethod that randomly (respecting weight) picks one of those ChoosingMethods each time it is used. |
Modifier and Type | Method and Description |
---|---|
char[][] |
GrowingTreeMazeGenerator.generate(GrowingTreeMazeGenerator.ChoosingMethod choosing)
Builds and returns a 2D char array maze using the provided chooser method object.
|
GrowingTreeMazeGenerator.ChoosingMethod |
GrowingTreeMazeGenerator.mix(GrowingTreeMazeGenerator.ChoosingMethod methodA,
double chanceA,
GrowingTreeMazeGenerator.ChoosingMethod methodB,
double chanceB)
Mixes two ChoosingMethod values, like
GrowingTreeMazeGenerator.newest and GrowingTreeMazeGenerator.random , given a weight for each, and produces
a new ChoosingMethod that randomly (respecting weight) picks one of those ChoosingMethods each time it is used. |
Copyright © Eben Howard 2012–2022. All rights reserved.