zombie.core.utils
Class ObjectGrid<T>

java.lang.Object
  extended by zombie.core.utils.ObjectGrid<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ObjectGrid<T>
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Constructor Summary
ObjectGrid(int width, int height)
          C'tor
 
Method Summary
 void clear()
           
 ObjectGrid<T> clone()
           
 void fill(T newValue)
           
 int getHeight()
           
 T getValue(int x, int y)
           
 int getWidth()
           
 void setValue(int x, int y, T newValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectGrid

public ObjectGrid(int width,
                  int height)
C'tor

Parameters:
width -
height -
Method Detail

clone

public ObjectGrid<T> clone()
                    throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

clear

public void clear()

fill

public void fill(T newValue)

getValue

public T getValue(int x,
                  int y)

setValue

public void setValue(int x,
                     int y,
                     T newValue)

getWidth

public final int getWidth()
Returns:
the width

getHeight

public final int getHeight()
Returns:
the height