All Implemented Interfaces:
Killer, Cloneable, Iterable<String>, Serializable

public class TiledArea extends AreaEntity
an area which consists of tiled images
Author:
hendrik
  • Constructor Details

    • TiledArea

      public TiledArea()
  • Method Details

    • createRPClass

      public static RPClass createRPClass()
      Define the RPClass.
      Returns:
      The configured RPClass.
    • setTilesetNames

      public void setTilesetNames(String names)
      sets the tile names
      Parameters:
      names - comma separated list of tileset names
    • setSize

      public void setSize(int width, int height)
      Description copied from class: Entity
      Set the entity size.
      Overrides:
      setSize in class Entity
      Parameters:
      width - The width (in world units).
      height - The height (in world units).
    • setTilesetIndex

      public void setTilesetIndex(int x, int y, int tileset)
      sets the data for the specified coordinate
      Parameters:
      x - x-coordinate
      y - y-coordinate
      tileset - tileset index within the tileset names list
    • setData

      public void setData(int x, int y, int offset)
      sets the data for the specified coordinate
      Parameters:
      x - x-coordinate
      y - y-coordinate
      offset - offset within the tileset