public class DrawMaze
extends java.lang.Object
Constructor and Description |
---|
DrawMaze(Maze maze)
Constructor for DrawMaze.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
java.awt.Dimension displayAreaSize)
This method draws the maze on g, using a surface of size displayAreaSize.
|
java.awt.Color |
getColorOfPlayer(int n)
This method returns the color of the n-th player.
|
java.awt.Color |
getMazeBackgroundColor() |
java.awt.Color |
getMazeFilledCellColor() |
java.awt.Color |
getMazeWallColor() |
void |
setMazeBackgroundColor(java.awt.Color mazeBackgroundColor) |
void |
setMazeFilledCellColor(java.awt.Color mazeFilledCellColor) |
void |
setMazeWallColor(java.awt.Color mazeWallColor) |
public DrawMaze(Maze maze)
maze
- The maze to draw.public void draw(java.awt.Graphics g, java.awt.Dimension displayAreaSize)
g
- the Graphics object to use to draw the mazedisplayAreaSize
- the size of the rectangle on which the maze will be drawnpublic java.awt.Color getMazeBackgroundColor()
public void setMazeBackgroundColor(java.awt.Color mazeBackgroundColor)
public java.awt.Color getMazeFilledCellColor()
public void setMazeFilledCellColor(java.awt.Color mazeFilledCellColor)
public java.awt.Color getMazeWallColor()
public void setMazeWallColor(java.awt.Color mazeWallColor)
public java.awt.Color getColorOfPlayer(int n)