public class GridWorldVisualizer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GridWorldVisualizer.CellPainter
A painter for a grid world cell which will fill the cell with a given color and where the cell position
is indicated by the x and y attribute for the mapped object instance
|
static class |
GridWorldVisualizer.LocationPainter
A painter for location objects which will fill the cell with a given color and where the cell position
is indicated by the x and y attribute for the mapped object instance
|
static class |
GridWorldVisualizer.MapPainter
A static painter class for rendering the walls of the grid world as black squares or black lines for 1D walls.
|
Modifier and Type | Method and Description |
---|---|
static StateRenderLayer |
getRenderLayer(Domain d,
int[][] map)
Deprecated.
|
static StateRenderLayer |
getRenderLayer(int[][] map)
Returns state render layer for a gird world domain with the provided wall map.
|
static Visualizer |
getVisualizer(Domain d,
int[][] map)
Deprecated.
|
static Visualizer |
getVisualizer(int[][] map)
Returns visualizer for a grid world domain with the provided wall map.
|
@Deprecated public static Visualizer getVisualizer(Domain d, int[][] map)
getVisualizer(int[][])
method instead.d
- the domain of the grid worldmap
- the wall map matrix where 0s indicate it is clear of walls, 1s indicate a full cell wall in that cell, 2s indicate a 1D north wall, 3s indicate a 1D east wall, and 4s indicate a 1D north and east wall.public static Visualizer getVisualizer(int[][] map)
map
- the wall map matrix where 0s indicate it is clear of walls, 1s indicate a full cell wall in that cell, 2s indicate a 1D north wall, 3s indicate a 1D east wall, and 4s indicate a 1D north and east wall.@Deprecated public static StateRenderLayer getRenderLayer(Domain d, int[][] map)
getRenderLayer(int[][])
method instead.d
- the domain of the grid worldmap
- the wall map matrix where 0s indicate it is clear of walls, 1s indicate a full cell wall in that cell, 2s indicate a 1D north wall, 3s indicate a 1D east wall, and 4s indicate a 1D north and east wall.public static StateRenderLayer getRenderLayer(int[][] map)
map
- the wall map matrix where 0s indicate it is clear of walls, 1s indicate a full cell wall in that cell, 2s indicate a 1D north wall, 3s indicate a 1D east wall, and 4s indicate a 1D north and east wall.