All Superinterfaces:
ICustomPropertyProvider, ILayer
All Known Implementing Classes:
TileLayer

public interface ITileLayer
extends ILayer
  • Method Details

    • getTileByLocation

      ITile getTileByLocation​(java.awt.geom.Point2D location)
      Gets the tile by location.
      Parameters:
      location - the location
      Returns:
      the tile by location
    • getTile

      ITile getTile​(int x, int y)
      Gets the tile at the specified map grid location.

      To retrieve map grid coordinates from a location on the map, use the MapUtilities#getTile(Point2D) method.

      Parameters:
      x - The x-coordinate (on the map grid) to retrieve the tile.
      y - The y-coordinate (on the map grid) to retrieve the tile.
      Returns:
      The tile at the specified grid location.
      See Also:
      MapUtilities.getTile(Point2D)
    • setTile

      void setTile​(int x, int y, ITile tile)
      Sets the id of the tile at the specified map grid location.
      Parameters:
      x - The x-coordinate (on the map grid).
      y - The y-coordinate (on the map grid).
      tile - The tile that provides the tile id to be set on the tile at the specified location.
      See Also:
      ITile.getGridId()
    • setTile

      void setTile​(int x, int y, int gid)
      Sets the id of the tile at the specified map grid location.
      Parameters:
      x - The x-coordinate (on the map grid).
      y - The y-coordinate (on the map grid).
      gid - The id to be set on the tile at the specified location.
    • getTiles

      java.util.List<ITile> getTiles()
      Gets the tiles.
      Returns:
      the tiles