Package arc.struct

Class GridMap<T>

java.lang.Object
arc.struct.GridMap<T>

public class GridMap<T> extends Object
A 2-dimensional hashmap that stores objects using an x/y coordinate.
  • Field Details

  • Constructor Details

    • GridMap

      public GridMap()
  • Method Details

    • get

      public T get(int x, int y)
    • get

      public T get(int x, int y, T defaultValue)
    • containsKey

      public boolean containsKey(int x, int y)
    • put

      public void put(int x, int y, T t)
    • remove

      public void remove(int x, int y)
    • values

      public LongMap.Values<T> values()
    • keys

      public LongMap.Keys keys()
    • clear

      public void clear()
    • size

      public int size()