Modifier and Type | Field and Description |
---|---|
Rectangle |
boundary
Full boundary of tile.
|
Rectangle |
edgeBottom
the bottom edge of the tile, if accessible
|
Rectangle |
edgeLeft
the left edge of the tile, if accessible
|
Rectangle |
edgeRight
the right edge of the tile, if accessible
|
Rectangle |
edgeTop
the top edge of the tile, if accessible
|
double |
height
tile height
|
int |
tileTextureIndex
index of texture in list from corresponding
TileMap |
double |
width
tile width
|
double |
x
x-coordinate of tile center
|
double |
y
y-coordinate of tile center
|
Constructor and Description |
---|
Tile(double x,
double y,
double width,
double height,
int tileTextureIndex)
Set the location, size, and tile image index for this Tile.
|
public double x
public double y
public double width
public double height
public int tileTextureIndex
TileMap
public Rectangle boundary
public Rectangle edgeLeft
public Rectangle edgeRight
public Rectangle edgeTop
public Rectangle edgeBottom
public Tile(double x, double y, double width, double height, int tileTextureIndex)
TileMap
.x
- x-coordinate of tile centery
- y-coordinate of tile centerwidth
- tile widthheight
- tile heighttileTextureIndex
- index of texture in list from corresponding TileMap