Class TileGrid


  • public class TileGrid
    extends Object
    Tile grid with x and y ranges
    Author:
    osbornb
    • Constructor Detail

      • TileGrid

        public TileGrid​(long minX,
                        long minY,
                        long maxX,
                        long maxY)
        Constructor
        Parameters:
        minX - min x
        minY - min y
        maxX - max x
        maxY - max y
    • Method Detail

      • getMinX

        public long getMinX()
        Get the min x
        Returns:
        min x
      • setMinX

        public void setMinX​(long minX)
        Set the min x
        Parameters:
        minX - min x
      • getMaxX

        public long getMaxX()
        Get the max x
        Returns:
        max x
      • setMaxX

        public void setMaxX​(long maxX)
        Set the max x
        Parameters:
        maxX - max x
      • getMinY

        public long getMinY()
        Get the min y
        Returns:
        min y
      • setMinY

        public void setMinY​(long minY)
        Set the min y
        Parameters:
        minY - min y
      • getMaxY

        public long getMaxY()
        Get the max y
        Returns:
        max y
      • setMaxY

        public void setMaxY​(long maxY)
        Set the max y
        Parameters:
        maxY - max y
      • count

        public long count()
        Get the count of tiles in the grid
        Returns:
        count
      • getWidth

        public long getWidth()
        Get the grid width
        Returns:
        width
        Since:
        5.0.0
      • getHeight

        public long getHeight()
        Get the grid height
        Returns:
        height
        Since:
        5.0.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object