| Constructor and Description |
|---|
TiledArea.Tile(Rectangle2D rectangle,
int x,
int y,
int id)
Create a tile.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Get the id of this tile
|
Rectangle2D |
getRectangle()
Get the area controlled by this ReservationTile.
|
int |
getX()
Get the x-coordinate of this tile
|
int |
getY()
Get the y-coordinate of this tile
|
boolean |
isEdgeTile()
Whether or not this tile is on the edge
|
void |
setEdgeTile(boolean edgeTile)
Set whether or not this tile is on the edge.
|
public TiledArea.Tile(Rectangle2D rectangle, int x, int y, int id)
rectangle - the area of the tilex - the x-coordinate of the tiley - the y-coordinate of the tileid - the ID of the tilepublic Rectangle2D getRectangle()
public int getX()
public int getY()
public int getId()
public boolean isEdgeTile()
public void setEdgeTile(boolean edgeTile)
edgeTile - whether or not this tile is on the edgeCopyright © 2013. All rights reserved.