Package zombie
Class MapCollisionData.Cell
java.lang.Object
zombie.MapCollisionData.Cell
- Enclosing class:
- MapCollisionData
public static class MapCollisionData.Cell
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description MapCollisionData.Chunk[][]
chunks
short
cx
short
cy
boolean
dataChanged
boolean
fileLoaded
-
Constructor Summary
Constructors Constructor Description Cell(int x, int y)
-
Method Summary
Modifier and Type Method Description int
getBits(int x, int y)
MapCollisionData.Chunk
getChunkFromChunkPos(int wx, int wy)
boolean
isLoaded()
void
load()
void
setBits(int x, int y, int bits)
void
setChunkData(int wx, int wy, byte[] data)
void
unload()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
cx
public short cx -
cy
public short cy -
chunks
-
fileLoaded
public boolean fileLoaded -
dataChanged
public boolean dataChanged
-
-
Constructor Details
-
Cell
public Cell(int x, int y)
-
-
Method Details
-
load
public void load() -
unload
public void unload() -
isLoaded
public boolean isLoaded() -
getBits
public int getBits(int x, int y) -
getChunkFromChunkPos
-
setChunkData
public void setChunkData(int wx, int wy, byte[] data) -
setBits
public void setBits(int x, int y, int bits)
-