Interface ITileset

All Superinterfaces:
Comparable<Resource>, ICustomPropertyProvider, Resource
All Known Implementing Classes:
Tileset

public interface ITileset extends ICustomPropertyProvider, Resource
  • Method Details

    • getFirstGridId

      int getFirstGridId()
      Gets the first grid id.
      Returns:
      the first grid id
    • getImage

      IMapImage getImage()
      Gets the image.
      Returns:
      the image
    • getSpritesheet

      Spritesheet getSpritesheet()
    • getMargin

      int getMargin()
    • getSpacing

      int getSpacing()
    • getTileDimension

      Dimension getTileDimension()
      Gets the tile dimension.
      Returns:
      the tile dimension
    • getColumns

      int getColumns()
    • getTileOffset

      ITileOffset getTileOffset()
    • getTileHeight

      int getTileHeight()
    • getTileWidth

      int getTileWidth()
      Gets the tile width.
      Returns:
      the tile width
    • getTileCount

      int getTileCount()
    • getTile

      ITilesetEntry getTile(int id)
    • containsTile

      boolean containsTile(ITile tile)
    • containsTile

      boolean containsTile(ITilesetEntry entry)
    • containsTile

      boolean containsTile(int tileId)
    • getTerrainSets

      List<ITerrainSet> getTerrainSets()
      Gets the terrain sets defined by this tile set.
      Returns:
      The terrain sets of this instance.