Package zombie.iso
Class IsoMetaGrid
java.lang.Object
zombie.iso.IsoMetaGrid
public final class IsoMetaGrid
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IsoMetaGrid.Trigger
static class
IsoMetaGrid.VehicleZone
static class
IsoMetaGrid.Zone
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList
Buildings
IsoMetaCell[][]
Grid
int
maxX
int
maxY
int
minX
int
minY
java.util.ArrayList
VehiclesZones
java.util.ArrayList
Zones
-
Constructor Summary
Constructors Constructor Description IsoMetaGrid()
-
Method Summary
Modifier and Type Method Description void
checkVehiclesZones()
int
countNearbyBuildingsRooms(IsoPlayer player)
int
countRoomsIntersecting(int int1, int int2, int int3, int int4)
void
Create()
void
CreateStep1()
void
CreateStep2()
void
Dispose()
IsoMetaCell
getCellData(int int1, int int2)
IsoMetaCell
getCellDataAbs(int int1, int int2)
IsoMetaChunk
getChunkData(int int1, int int2)
IsoMetaChunk
getChunkDataFromTile(int int1, int int2)
IsoMetaCell
getCurrentCellData()
IsoMetaChunk
getCurrentChunkData()
RoomDef
getEmptyOutsideAt(int int1, int int2, int int3)
int
getHeight()
java.util.ArrayList
getLotDirectories()
int
getMaxX()
int
getMaxY()
IsoMetaCell
getMetaGridFromTile(int int1, int int2)
int
getMinX()
int
getMinY()
Vector2
getRandomIndoorCoord()
RoomDef
getRandomRoomBetweenRange(float float1, float float2, float float3, float float4)
RoomDef
getRandomRoomNotInRange(float float1, float float2, int int1)
RoomDef
getRoomAt(int int1, int int2, int int3)
int
getWidth()
IsoMetaGrid.Zone
getZoneAt(int int1, int int2, int int3)
java.util.ArrayList
getZonesAt(int int1, int int2, int int3)
java.util.ArrayList
getZonesIntersecting(int int1, int int2, int int3, int int4, int int5)
java.util.ArrayList
getZonesIntersecting(int int1, int int2, int int3, int int4, int int5, java.util.ArrayList arrayList)
boolean
isValidChunk(int int1, int int2)
boolean
isValidSquare(int int1, int int2)
void
load(java.nio.ByteBuffer byteBuffer)
void
loadZone(java.nio.ByteBuffer byteBuffer, int int1)
void
processZones()
IsoMetaGrid.Zone
registerVehiclesZone(java.lang.String string, java.lang.String string2, int int1, int int2, int int3, int int4, int int5, KahluaTable kahluaTable)
IsoMetaGrid.Zone
registerZone(java.lang.String string, java.lang.String string2, int int1, int int2, int int3, int int4, int int5)
IsoMetaGrid.Zone
registerZoneNoOverlap(java.lang.String string, java.lang.String string2, int int1, int int2, int int3, int int4, int int5)
void
removeZone(IsoMetaGrid.Zone zone)
void
removeZonesForCell(int int1, int int2)
void
removeZonesForLotDirectory(java.lang.String string)
void
save()
void
save(java.nio.ByteBuffer byteBuffer)
void
savePart(java.nio.ByteBuffer byteBuffer, int int1)
void
saveZone(java.nio.ByteBuffer byteBuffer)
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 -
VehiclesZones
public java.util.ArrayList VehiclesZones -
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 int1, int int2, int int3) -
getZonesIntersecting
public java.util.ArrayList getZonesIntersecting(int int1, int int2, int int3, int int4, int int5) -
getZonesIntersecting
public java.util.ArrayList getZonesIntersecting(int int1, int int2, int int3, int int4, int int5, java.util.ArrayList arrayList) -
getRoomAt
-
getEmptyOutsideAt
-
countRoomsIntersecting
public int countRoomsIntersecting(int int1, int int2, int int3, int int4) -
countNearbyBuildingsRooms
-
registerZone
public IsoMetaGrid.Zone registerZone(java.lang.String string, java.lang.String string2, int int1, int int2, int int3, int int4, int int5) -
registerZoneNoOverlap
public IsoMetaGrid.Zone registerZoneNoOverlap(java.lang.String string, java.lang.String string2, int int1, int int2, int int3, int int4, int int5) -
removeZone
-
removeZonesForCell
public void removeZonesForCell(int int1, int int2) -
removeZonesForLotDirectory
public void removeZonesForLotDirectory(java.lang.String string) -
processZones
public void processZones() -
registerVehiclesZone
public IsoMetaGrid.Zone registerVehiclesZone(java.lang.String string, java.lang.String string2, int int1, int int2, int int3, int int4, int int5, KahluaTable kahluaTable) -
checkVehiclesZones
public void checkVehiclesZones() -
save
public void save(java.nio.ByteBuffer byteBuffer) -
savePart
public void savePart(java.nio.ByteBuffer byteBuffer, int int1) -
load
public void load(java.nio.ByteBuffer byteBuffer) -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getCellData
-
getCellDataAbs
-
getCurrentCellData
-
getMetaGridFromTile
-
getCurrentChunkData
-
getChunkData
-
getChunkDataFromTile
-
isValidSquare
public boolean isValidSquare(int int1, int int2) -
isValidChunk
public boolean isValidChunk(int int1, int int2) -
Create
public void Create() -
CreateStep1
public void CreateStep1() -
CreateStep2
public void CreateStep2() -
Dispose
public void Dispose() -
getRandomIndoorCoord
-
getRandomRoomBetweenRange
-
getRandomRoomNotInRange
-
save
public void save() -
loadZone
public void loadZone(java.nio.ByteBuffer byteBuffer, int int1) -
saveZone
public void saveZone(java.nio.ByteBuffer byteBuffer) -
getLotDirectories
public java.util.ArrayList getLotDirectories()
-