public class GridGenerator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.util.List<GridNode>> |
gen2D(char[][] grid)
Generates a 2D grid using the values in the char array
|
static java.util.List<java.util.List<GridNode>> |
gen2D(char[][] grid,
int floor)
Generates a 2D grid using the values in the char array and
assigns the z coordinate of every node to the given floor number.
|
static java.util.List<java.util.List<java.util.List<GridNode>>> |
gen3D(char[][][] grid3D)
Generates a 3D grid using the values in the char array.
|
public static java.util.List<java.util.List<GridNode>> gen2D(char[][] grid)
grid - char values indicating the type of grid nodepublic static java.util.List<java.util.List<GridNode>> gen2D(char[][] grid, int floor)
grid - char values indicating the type of grid nodefloor - the floor number of the 2D gridpublic static java.util.List<java.util.List<java.util.List<GridNode>>> gen3D(char[][][] grid3D)
grid3D - char values indicating the type of grid node to generate.