Package zombie.iso
Class IsoMetaGrid
java.lang.Object
zombie.iso.IsoMetaGrid
public class IsoMetaGrid
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IsoMetaGrid.Trigger
static class
IsoMetaGrid.Zone
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IsoMetaGrid()
-
Method Summary
Modifier and Type Method Description int
countNearbyBuildingsRooms(IsoPlayer isoPlayer)
void
Create()
void
Dispose()
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()
java.util.ArrayList
getLotDirectories()
int
getMaxX()
int
getMaxY()
IsoMetaCell
getMetaGridFromTile(int wx, int wy)
int
getMinX()
int
getMinY()
Vector2
getRandomIndoorCoord()
RoomDef
getRandomRoomBetweenRange(float x, float y, float min, float max)
RoomDef
getRandomRoomNotInRange(float x, float y, int range)
RoomDef
getRoomAt(int x, int y, int z)
int
getWidth()
IsoMetaGrid.Zone
getZoneAt(int x, int y, int z)
java.util.ArrayList
getZonesAt(int x, int y, int z)
java.util.ArrayList
getZonesIntersecting(int x, int y, int z, int w, int h)
boolean
isValidChunk(int wx, int wy)
boolean
isValidSquare(int x, int y)
void
load(java.nio.ByteBuffer input)
void
loadZone(java.nio.ByteBuffer input, int WorldVersion)
void
processZones()
IsoMetaGrid.Zone
registerZone(java.lang.String name, java.lang.String type, int x, int y, int z, int width, int height)
IsoMetaGrid.Zone
registerZoneNoOverlap(java.lang.String name, java.lang.String type, int x, int y, int z, int width, int height)
void
removeZone(IsoMetaGrid.Zone zone)
void
save()
void
save(java.nio.ByteBuffer output)
void
savePart(java.nio.ByteBuffer output, int part)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
minX
public int minX -
minY
public int minY -
maxX
public int maxX -
maxY
public int maxY -
Zones
public java.util.ArrayList Zones -
Buildings
public java.util.ArrayList Buildings -
Grid
-
-
Constructor Details
-
IsoMetaGrid
public IsoMetaGrid()
-
-
Method Details
-
getMinX
public int getMinX() -
getMinY
public int getMinY() -
getMaxX
public int getMaxX() -
getMaxY
public int getMaxY() -
getZoneAt
-
getZonesAt
public java.util.ArrayList getZonesAt(int x, int y, int z) -
getZonesIntersecting
public java.util.ArrayList getZonesIntersecting(int x, int y, int z, int w, int h) -
getRoomAt
-
countNearbyBuildingsRooms
-
registerZone
public IsoMetaGrid.Zone registerZone(java.lang.String name, java.lang.String type, int x, int y, int z, int width, int height) -
registerZoneNoOverlap
public IsoMetaGrid.Zone registerZoneNoOverlap(java.lang.String name, java.lang.String type, int x, int y, int z, int width, int height) -
removeZone
-
processZones
public void processZones() -
save
public void save(java.nio.ByteBuffer output) -
savePart
public void savePart(java.nio.ByteBuffer output, int part) -
load
public void load(java.nio.ByteBuffer input) -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getCellData
-
getCellDataAbs
-
getCurrentCellData
-
getMetaGridFromTile
-
getCurrentChunkData
-
getChunkData
-
getChunkDataFromTile
-
isValidSquare
public boolean isValidSquare(int x, int y) -
isValidChunk
public boolean isValidChunk(int wx, int wy) -
Create
public void Create() -
Dispose
public void Dispose() -
getRandomIndoorCoord
-
getRandomRoomBetweenRange
-
getRandomRoomNotInRange
-
save
public void save() -
loadZone
public void loadZone(java.nio.ByteBuffer input, int WorldVersion) -
getLotDirectories
public java.util.ArrayList getLotDirectories()
-