Uses of Interface
squidpony.squidgrid.mapping.GrowingTreeMazeGenerator.ChoosingMethod
| Package | Description |
|---|---|
| squidpony.squidgrid.mapping |
Tools specifically for generating maps and placing content in them, usually working with 2D char arrays.
|
-
Uses of GrowingTreeMazeGenerator.ChoosingMethod in squidpony.squidgrid.mapping
Fields in squidpony.squidgrid.mapping declared as GrowingTreeMazeGenerator.ChoosingMethod Modifier and Type Field Description GrowingTreeMazeGenerator.ChoosingMethodGrowingTreeMazeGenerator. newestProduces high-quality mazes that are very similar to those produced by a recursive back-tracking algorithm.GrowingTreeMazeGenerator.ChoosingMethodGrowingTreeMazeGenerator. oldestProduces mostly straight corridors that dead-end at the map's edge; probably only useful withGrowingTreeMazeGenerator.mix(ChoosingMethod, double, ChoosingMethod, double).GrowingTreeMazeGenerator.ChoosingMethodGrowingTreeMazeGenerator. randomProduces chaotic, jumbled spans of corridors that are similar to those produced by Prim's algorithm.Methods in squidpony.squidgrid.mapping that return GrowingTreeMazeGenerator.ChoosingMethod Modifier and Type Method Description GrowingTreeMazeGenerator.ChoosingMethodGrowingTreeMazeGenerator. mix(GrowingTreeMazeGenerator.ChoosingMethod methodA, double chanceA, GrowingTreeMazeGenerator.ChoosingMethod methodB, double chanceB)Mixes two ChoosingMethod values, likeGrowingTreeMazeGenerator.newestandGrowingTreeMazeGenerator.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.Methods in squidpony.squidgrid.mapping with parameters of type GrowingTreeMazeGenerator.ChoosingMethod Modifier and Type Method Description char[][]GrowingTreeMazeGenerator. generate(GrowingTreeMazeGenerator.ChoosingMethod choosing)Builds and returns a 2D char array maze using the provided chooser method object.GrowingTreeMazeGenerator.ChoosingMethodGrowingTreeMazeGenerator. mix(GrowingTreeMazeGenerator.ChoosingMethod methodA, double chanceA, GrowingTreeMazeGenerator.ChoosingMethod methodB, double chanceB)Mixes two ChoosingMethod values, likeGrowingTreeMazeGenerator.newestandGrowingTreeMazeGenerator.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.