- try to use more Position instead of (x,y) - create PositionWithDpeth for its specific usage in path finding - create a XYGridITerator that walk cells from grid X then Y.
20 lines
493 B
Java
20 lines
493 B
Java
package org.artisanlogiciel.games.maze.gui;
|
|
|
|
import java.awt.*;
|
|
|
|
public class MazeColorMap {
|
|
public Color background;
|
|
public Color wall;
|
|
public Color path;
|
|
public Color resolved_path;
|
|
public Color goal;
|
|
|
|
public MazeColorMap(Color background, Color wall, Color path, Color resolved_path, Color goal) {
|
|
this.background = background;
|
|
this.wall = wall;
|
|
this.path = path;
|
|
this.resolved_path = resolved_path;
|
|
this.goal = goal;
|
|
}
|
|
}
|