/** * Returns visualizer for a grid world domain with the provided wall map. * @param 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. * @return a grid world domain visualizer */ public static Visualizer getVisualizer(int [][] map){ StateRenderLayer r = getRenderLayer(map); Visualizer v = new Visualizer(r); return v; }
/** * Returns visualizer for a grid world domain with the provided wall map. This method has been deprecated because the domain is no longer necessary. * Use the {@link #getVisualizer(int[][])} method instead. * @param d the domain of the grid world * @param 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. * @return a grid world domain visualizer */ @Deprecated public static Visualizer getVisualizer(Domain d, int [][] map){ StateRenderLayer r = getRenderLayer(d, map); Visualizer v = new Visualizer(r); return v; }