All Superinterfaces:
ICustomPropertyProvider
All Known Implementing Classes:
Tile

public interface ITile
extends ICustomPropertyProvider
  • Method Details

    • getGridId

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

      java.awt.image.BufferedImage getImage()
    • getTileCoordinate

      java.awt.Point getTileCoordinate()
      Gets the tile coordinate.
      Returns:
      the tile coordinate
    • getTilesetEntry

      ITilesetEntry getTilesetEntry()
    • isFlippedHorizontally

      boolean isFlippedHorizontally()
    • isFlippedVertically

      boolean isFlippedVertically()
    • isFlippedDiagonally

      boolean isFlippedDiagonally()
    • isFlipped

      boolean isFlipped()
    • equals

      boolean equals​(java.lang.Object anObject)
      Tests for equality between two tiles. Two tiles are equal if they have the same grid ID, flipped flags, and tileset entry.
      Overrides:
      equals in class java.lang.Object
      Parameters:
      anObject - The tile to test equality for
      Returns:
      Whether the provided tile is equal to this tile, or false if anObject is not a tile
    • hashCode

      int hashCode()
      Computes a hash code for this tile. A tile's hash code is equal to its stored grid ID, i.e. the gid bitmask, xor the tileset entry's hash code.
      Overrides:
      hashCode in class java.lang.Object
      Returns:
      The hash code for this tile