zombie.core.utils
Class BooleanGrid
java.lang.Object
zombie.core.utils.BooleanGrid
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class BooleanGrid
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
Boolean grid
- See Also:
- Serialized Form
Constructor Summary |
BooleanGrid(int width,
int height)
C'tor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BooleanGrid
public BooleanGrid(int width,
int height)
- C'tor
- Parameters:
width
- height
-
clone
public BooleanGrid clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
copy
public void copy(BooleanGrid src)
clear
public void clear()
fill
public void fill()
getValue
public boolean getValue(int x,
int y)
setValue
public void setValue(int x,
int y,
boolean newValue)
getWidth
public final int getWidth()
- Returns:
- the width
getHeight
public final int getHeight()
- Returns:
- the height
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
LoadFromByteBuffer
public void LoadFromByteBuffer(java.nio.ByteBuffer cache)
PutToByteBuffer
public void PutToByteBuffer(java.nio.ByteBuffer cache)