public class RectangularTile extends GameTile
Constructor and Description |
---|
RectangularTile(java.awt.Color color)
Creates a rectangular game tile.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
int x,
int y,
java.awt.Dimension d)
Draws itself in a given graphics context, position and size.
|
public RectangularTile(java.awt.Color color)
color
- the color of the rectangle.