Interface Tileset

All Known Implementing Classes:
SpriteTileset

public interface Tileset
A tileset.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the number of tiles.
    getSprite​(int index)
    Get the sprite for an index tile of a tileset.
  • Method Details

    • getSize

      int getSize()
      Get the number of tiles.
      Returns:
      The number of tiles.
    • getSprite

      Sprite getSprite(int index)
      Get the sprite for an index tile of a tileset.
      Parameters:
      index - The index with-in the tileset.
      Returns:
      A sprite, or null if no mapped sprite.