Method GetTile
GetTile(int)
Gets the TextureRegion of the tile at the specified index in this Tileset.
public TextureRegion GetTile(int index)
Parameters
indexintThe index of the tile to locate.
Returns
- TextureRegion
The TextureRegion for the tile located.
Exceptions
- ArgumentOutOfRangeException
Thrown if the specified index is less than zero or is greater than or equal to the total number of tiles in this Tileset.
GetTile(Point)
Gets the TextureRegion for the tile at the specified column and row in this Tileset.
public TextureRegion GetTile(Point location)
Parameters
locationPointThe column and row location of the tile to locate in this Tileset.
Returns
- TextureRegion
The TextureRegion for the tile located.
Exceptions
- ArgumentOutOfRangeException
Thrown if either the column or row in the specified location are less than zero or if either are greater than or equal to the total number of columns or rows respectively.
GetTile(int, int)
Gets the TextureRegion for the tile at the specified column and row in this Tileset.
public TextureRegion GetTile(int column, int row)
Parameters
columnintThe column of the tile to locate in this Tileset.
rowintThe row of the tile to locate in this Tileset.
Returns
- TextureRegion
The TextureRegion for the tile located.
Exceptions
- ArgumentOutOfRangeException
Thrown if either the column or row specified are less than zero or if either are greater than or equal to the total number of columns or rows in this Tileset.