public abstract class Board extends java.lang.Object implements Drawable, java.io.Serializable
Constructor and Description |
---|
Board() |
Modifier and Type | Method and Description |
---|---|
void |
addZone(Zone z)
Adds a zone to the board.
|
void |
draw(java.awt.Graphics g)
Draw the object on screen.
|
abstract java.awt.Dimension |
getDimension()
Returns the dimension of the axis-aligned bounding box for the whole board, in pixels.
|
Zone |
getZoneAt(int x,
int y)
Finds the zone situated at the coordinates the player clicked at.
|
java.util.List<Zone> |
getZones()
Accesses the list of zones on the board.
|
public final void addZone(Zone z)
z
- Zone to add.public final java.util.List<Zone> getZones()
public void draw(java.awt.Graphics g)
Drawable
public final Zone getZoneAt(int x, int y)
x
- y
- public abstract java.awt.Dimension getDimension()