zombie.core.utils
Class ObjectCube<T>

java.lang.Object
  extended by zombie.core.utils.ObjectCube<T>
All Implemented Interfaces:
java.lang.Cloneable

public class ObjectCube<T>
extends java.lang.Object
implements java.lang.Cloneable


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

Constructor Detail

ObjectCube

public ObjectCube(int width,
                  int height,
                  int depth)
C'tor

Parameters:
width -
height -
depth -
Method Detail

clone

public ObjectCube<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,
                  int z)

setValue

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

getWidth

public final int getWidth()
Returns:
the width

getHeight

public final int getHeight()
Returns:
the height

getDepth

public int getDepth()
Returns:
the depth