public class GameTile
extends java.lang.Object
Constructor and Description |
---|
GameTile() |
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 void draw(java.awt.Graphics g, int x, int y, java.awt.Dimension d)
g
- graphics context to draw on.x
- pixel x coordinate of the tile to be drawn.y
- pixel y coordinate of the tile to be drawn.d
- size of this object in pixels.