Package 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
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BooleanGrid(int width, int height) -
Method Summary
Modifier and Type Method Description voidclear()BooleanGridclone()voidcopy(BooleanGrid src)voidfill()intgetHeight()booleangetValue(int x, int y)intgetWidth()voidLoadFromByteBuffer(java.nio.ByteBuffer cache)voidPutToByteBuffer(java.nio.ByteBuffer cache)voidsetValue(int x, int y, boolean newValue)java.lang.StringtoString()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
BooleanGrid
public BooleanGrid(int width, int height)
-
-
Method Details
-
clone
- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
copy
-
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() -
getHeight
public final int getHeight() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
LoadFromByteBuffer
public void LoadFromByteBuffer(java.nio.ByteBuffer cache) -
PutToByteBuffer
public void PutToByteBuffer(java.nio.ByteBuffer cache)
-