Class ObjectGrid

java.lang.Object
zombie.core.utils.ObjectGrid
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ObjectGrid
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    ObjectGrid​(int width, int height)  
  • Method Summary

    Modifier and Type Method Description
    void clear()  
    ObjectGrid clone()  
    void fill​(java.lang.Object newValue)  
    int getHeight()  
    java.lang.Object getValue​(int x, int y)  
    int getWidth()  
    void setValue​(int x, int y, java.lang.Object newValue)  

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObjectGrid

      public ObjectGrid​(int width, int height)
  • Method Details

    • clone

      public ObjectGrid clone() throws java.lang.CloneNotSupportedException
      Overrides:
      clone in class java.lang.Object
      Throws:
      java.lang.CloneNotSupportedException
    • clear

      public void clear()
    • fill

      public void fill​(java.lang.Object newValue)
    • getValue

      public java.lang.Object getValue​(int x, int y)
    • setValue

      public void setValue​(int x, int y, java.lang.Object newValue)
    • getWidth

      public final int getWidth()
    • getHeight

      public final int getHeight()