Class Tile

java.lang.Object
org.highlife.api.methods.map.Tile
All Implemented Interfaces:
Locatable

public class Tile extends Object implements Locatable
  • Constructor Details

    • Tile

      public Tile()
    • Tile

      public Tile(int x, int y)
    • Tile

      public Tile(int x, int y, int z)
  • Method Details

    • translate

      public Tile translate(Tile tile)
    • translate

      public Tile translate(int x, int y)
    • getX

      public int getX()
      Specified by:
      getX in interface Locatable
    • setX

      public void setX(int x)
    • getY

      public int getY()
      Specified by:
      getY in interface Locatable
    • setY

      public void setY(int y)
    • getGridX

      public int getGridX()
      Specified by:
      getGridX in interface Locatable
    • getGridY

      public int getGridY()
      Specified by:
      getGridY in interface Locatable
    • getZ

      public int getZ()
      Specified by:
      getZ in interface Locatable
    • setZ

      public void setZ(int z)
    • getTileReference

      public TileReference getTileReference()
      Specified by:
      getTileReference in interface Locatable
    • distance

      public double distance(Entity entity)
    • clone

      public Tile clone()
      Overrides:
      clone in class Object
    • getTile

      public Tile getTile()
      Specified by:
      getTile in interface Locatable
    • distance

      public double distance(Tile tile)
      Specified by:
      distance in interface Locatable
    • walkingDistance

      public double walkingDistance(Tile tile)
      Specified by:
      walkingDistance in interface Locatable
    • getPolygon

      public Polygon getPolygon()
    • distance

      public double distance()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getRandomized

      public Tile getRandomized()
    • getRandomized

      public Tile getRandomized(int deviation)
    • getArea

      public Area getArea(int radius)
    • toString

      public String toString()
      Overrides:
      toString in class Object