Package squidpony.squidgrid.mapping
Class PacMazeGenerator
java.lang.Object
squidpony.squidgrid.mapping.PacMazeGenerator
public class PacMazeGenerator extends Object
Meant to produce the sort of narrow, looping, not-quite-maze-like passages found in a certain famous early arcade game.
Created by Tommy Ettinger on 3/30/2016.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PacMazeGenerator()
PacMazeGenerator(int width, int height)
PacMazeGenerator(int width, int height, IRNG rng)
-
Method Summary
Modifier and Type Method Description boolean[][]
create()
char[][]
generate()
char[][]
getDungeon()
Gets the maze as a 2D array of ',' for passable or '#' for blocked.int[][]
getEnvironment()
boolean[][]
getMap()
Gets the maze as a 2D array of true for passable or false for blocked.char[][]
getMaze()
Gets the maze as a 2D array of ',' for passable or '#' for blocked.
-
Field Details
-
Constructor Details
-
Method Details
-
create
-
generate
-
getEnvironment
-
getMap
Gets the maze as a 2D array of true for passable or false for blocked.- Returns:
- a 2D boolean array; true is passable and false is not.
-
getMaze
Gets the maze as a 2D array of ',' for passable or '#' for blocked.- Returns:
- a 2D char array; '.' is passable and '#' is not.
-
getDungeon
Gets the maze as a 2D array of ',' for passable or '#' for blocked.- Returns:
- a 2D char array; '.' is passable and '#' is not.
-