zombie.iso
Class IsoMetaGrid
java.lang.Object
zombie.iso.IsoMetaGrid
public class IsoMetaGrid
- extends java.lang.Object
|
Method Summary |
void |
Create()
|
void |
createHordeHeadto(float x,
float y)
|
IsoMetaCell |
getCellData(int x,
int y)
|
IsoMetaCell |
getCellDataAbs(int x,
int y)
|
IsoMetaChunk |
getChunkData(int cx,
int cy)
|
IsoMetaChunk |
getChunkDataFromTile(int x,
int y)
|
IsoMetaCell |
getCurrentCellData()
|
IsoMetaChunk |
getCurrentChunkData()
|
int |
getHeight()
|
int |
getMaxX()
|
int |
getMaxY()
|
int |
getMinX()
|
int |
getMinY()
|
Vector2 |
getRandomIndoorCoord()
|
RoomDef |
getRandomRoomBetweenRange(float x,
float y,
float min,
float max)
|
RoomDef |
getRandomRoomNotInRange(float x,
float y,
int range)
|
int |
getWidth()
|
void |
load(java.nio.ByteBuffer input)
|
void |
save(java.nio.ByteBuffer output)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
minX
public int minX
minY
public int minY
maxX
public int maxX
maxY
public int maxY
Grid
public IsoMetaCell[][] Grid
IsoMetaGrid
public IsoMetaGrid()
getMinX
public int getMinX()
getMinY
public int getMinY()
getMaxX
public int getMaxX()
getMaxY
public int getMaxY()
save
public void save(java.nio.ByteBuffer output)
load
public void load(java.nio.ByteBuffer input)
getWidth
public int getWidth()
getHeight
public int getHeight()
getCellData
public IsoMetaCell getCellData(int x,
int y)
getCellDataAbs
public IsoMetaCell getCellDataAbs(int x,
int y)
getCurrentCellData
public IsoMetaCell getCurrentCellData()
getCurrentChunkData
public IsoMetaChunk getCurrentChunkData()
getChunkData
public IsoMetaChunk getChunkData(int cx,
int cy)
getChunkDataFromTile
public IsoMetaChunk getChunkDataFromTile(int x,
int y)
Create
public void Create()
getRandomIndoorCoord
public Vector2 getRandomIndoorCoord()
getRandomRoomBetweenRange
public RoomDef getRandomRoomBetweenRange(float x,
float y,
float min,
float max)
getRandomRoomNotInRange
public RoomDef getRandomRoomNotInRange(float x,
float y,
int range)
createHordeHeadto
public void createHordeHeadto(float x,
float y)