Class TilesetAnimationMap

java.lang.Object
games.stendhal.client.sprite.TilesetAnimationMap

public class TilesetAnimationMap extends Object
A tileset animation map.
  • Constructor Details

    • TilesetAnimationMap

      public TilesetAnimationMap()
      Create a tileset animation map.
  • Method Details

    • getSprite

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