[]
Changes the current tile, given the new coordinates. An IllegalArgumentException is thrown if the coordinates do not correspond to a valid tile. This default implementation assumes no tiling so the only valid arguments are x=0, y=0.
public virtual void setTile(int x, int y)
Type | Name | Description |
---|---|---|
int | x | The horizontal coordinate of the tile. |
int | y | The vertical coordinate of the new tile. |