zombie.core.utils
Class ObjectCube<T>
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectCube
public ObjectCube(int width,
int height,
int depth)
- C'tor
- Parameters:
width
- height
- depth
-
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