| Modifier and Type | Field and Description |
|---|---|
(package private) int |
col |
(package private) static int |
height |
(package private) int |
row |
(package private) static int |
width |
| Constructor and Description |
|---|
Tile()
Constructor for Tile
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
drawTile(java.awt.Graphics g,
int x,
int y)
Abstract Method drawTile.
|
abstract boolean |
isPassable()
Abstract Method isPassable.
|
void |
setCol(int col)
Setter for col.
|
void |
setRow(int row)
Setter for row.
|
public abstract boolean isPassable()
public abstract void drawTile(java.awt.Graphics g,
int x,
int y)
g - Graphic objectx - x coordinatey - y coordinatepublic void setRow(int row)
row - row valuepublic void setCol(int col)
col - col value