Class IntGrid

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

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

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

    Modifier and Type Method Description
    void clear()  
    IntGrid clone()  
    void fill​(int newValue)  
    int getHeight()  
    int getValue​(int x, int y)  
    int getWidth()  
    void setValue​(int x, int y, int newValue)  

    Methods inherited from class java.lang.Object

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

    • IntGrid

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

    • clone

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

      public void clear()
    • fill

      public void fill​(int newValue)
    • getValue

      public int getValue​(int x, int y)
    • setValue

      public void setValue​(int x, int y, int newValue)
    • getWidth

      public final int getWidth()
    • getHeight

      public final int getHeight()