zombie.core.utils
Class BooleanGrid

java.lang.Object
  extended by 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
 
Method Summary
 void clear()
           
 BooleanGrid clone()
           
 void copy(BooleanGrid src)
           
 void fill()
           
 int getHeight()
           
 boolean getValue(int x, int y)
           
 int getWidth()
           
 void LoadFromByteBuffer(java.nio.ByteBuffer cache)
           
 void PutToByteBuffer(java.nio.ByteBuffer cache)
           
 void setValue(int x, int y, boolean newValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanGrid

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

Parameters:
width -
height -
Method Detail

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)