Package zombie.iso
Class IsoMetaGrid
java.lang.Object
zombie.iso.IsoMetaGrid
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
static class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionfinal ArrayList<BuildingDef>
IsoMetaCell[][]
int
int
final ArrayList<IsoGameCharacter>
int
int
final ArrayList<IsoMetaGrid.VehicleZone>
final ArrayList<IsoMetaGrid.Zone>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddToMeta
(IsoGameCharacter isoPlayer) void
int
countNearbyBuildingsRooms
(IsoPlayer isoPlayer) int
countRoomsIntersecting
(int x, int y, int w, int h) void
Create()
void
void
void
Dispose()
getBuildingAt
(int x, int y) getBuildingAtRelax
(int x, int y) getCellData
(int x, int y) getCellDataAbs
(int x, int y) getChunkData
(int cx, int cy) getChunkDataFromTile
(int x, int y) getEmptyOutsideAt
(int x, int y, int z) int
int
getMaxX()
int
getMaxY()
getMetaGridFromTile
(int wx, int wy) int
getMinX()
int
getMinY()
getRandomRoomBetweenRange
(float x, float y, float min, float max) getRandomRoomNotInRange
(float x, float y, int range) getRoomAt
(int x, int y, int z) void
getRoomsIntersecting
(int x, int y, int w, int h, ArrayList<RoomDef> roomDefs) getVehicleZoneAt
(int x, int y, int z) int
getWidth()
getZoneAt
(int x, int y, int z) getZonesAt
(int x, int y, int z) getZonesAt
(int x, int y, int z, ArrayList<IsoMetaGrid.Zone> result) getZonesIntersecting
(int x, int y, int z, int w, int h) getZonesIntersecting
(int x, int y, int z, int w, int h, ArrayList<IsoMetaGrid.Zone> result) getZoneWithBoundsAndType
(int x, int y, int z, int w, int h, String type) static boolean
boolean
isValidChunk
(int wx, int wy) boolean
isValidSquare
(int x, int y) boolean
isZoneAbove
(IsoMetaGrid.Zone zone1, IsoMetaGrid.Zone zone2, int x, int y, int z) void
load()
void
load
(ByteBuffer input) void
loadZone
(ByteBuffer input, int WorldVersion) void
void
registerGeometryZone
(String name, String type, int z, String geometry, se.krka.kahlua.vm.KahluaTable pointsTable, se.krka.kahlua.vm.KahluaTable properties) registerMannequinZone
(String name, String type, int x, int y, int z, int width, int height, se.krka.kahlua.vm.KahluaTable properties) void
registerRoomTone
(String name, String type, int x, int y, int z, int width, int height, se.krka.kahlua.vm.KahluaTable properties) registerVehiclesZone
(String name, String type, int x, int y, int z, int width, int height, se.krka.kahlua.vm.KahluaTable properties) registerZone
(String name, String type, int x, int y, int z, int width, int height) registerZone
(String name, String type, int x, int y, int z, int width, int height, IsoMetaGrid.ZoneGeometryType geometryType, gnu.trove.list.array.TIntArrayList points, int polylineWidth) registerZoneNoOverlap
(String name, String type, int x, int y, int z, int width, int height) Deprecated.void
RemoveFromMeta
(IsoPlayer isoPlayer) void
removeZone
(IsoMetaGrid.Zone zone) void
removeZonesForCell
(int cellX, int cellY) void
removeZonesForLotDirectory
(String lotDir) void
save()
void
save
(ByteBuffer output) void
savePart
(ByteBuffer output, int part, boolean fromServer) void
saveZone
(ByteBuffer output)
-
Field Details
-
minX
public int minX -
minY
public int minY -
maxX
public int maxX -
maxY
public int maxY -
Zones
-
Buildings
-
VehiclesZones
-
Grid
-
MetaCharacters
-
-
Constructor Details
-
IsoMetaGrid
public IsoMetaGrid()
-
-
Method Details
-
AddToMeta
-
RemoveFromMeta
-
getMinX
public int getMinX() -
getMinY
public int getMinY() -
getMaxX
public int getMaxX() -
getMaxY
public int getMaxY() -
getZoneAt
-
getZonesAt
-
getZonesAt
public ArrayList<IsoMetaGrid.Zone> getZonesAt(int x, int y, int z, ArrayList<IsoMetaGrid.Zone> result) -
getZonesIntersecting
-
getZonesIntersecting
public ArrayList<IsoMetaGrid.Zone> getZonesIntersecting(int x, int y, int z, int w, int h, ArrayList<IsoMetaGrid.Zone> result) -
getZoneWithBoundsAndType
-
getVehicleZoneAt
-
getBuildingAt
-
getBuildingAtRelax
-
getRoomAt
-
getEmptyOutsideAt
-
getRoomsIntersecting
-
countRoomsIntersecting
public int countRoomsIntersecting(int x, int y, int w, int h) -
countNearbyBuildingsRooms
-
registerZone
public IsoMetaGrid.Zone registerZone(String name, String type, int x, int y, int z, int width, int height) -
registerZone
public IsoMetaGrid.Zone registerZone(String name, String type, int x, int y, int z, int width, int height, IsoMetaGrid.ZoneGeometryType geometryType, gnu.trove.list.array.TIntArrayList points, int polylineWidth) -
registerGeometryZone
public IsoMetaGrid.Zone registerGeometryZone(String name, String type, int z, String geometry, se.krka.kahlua.vm.KahluaTable pointsTable, se.krka.kahlua.vm.KahluaTable properties) -
registerZoneNoOverlap
@Deprecated public IsoMetaGrid.Zone registerZoneNoOverlap(String name, String type, int x, int y, int z, int width, int height) Deprecated. -
removeZone
-
removeZonesForCell
public void removeZonesForCell(int cellX, int cellY) -
removeZonesForLotDirectory
-
processZones
public void processZones() -
registerVehiclesZone
public IsoMetaGrid.Zone registerVehiclesZone(String name, String type, int x, int y, int z, int width, int height, se.krka.kahlua.vm.KahluaTable properties) -
checkVehiclesZones
public void checkVehiclesZones() -
registerMannequinZone
public IsoMetaGrid.Zone registerMannequinZone(String name, String type, int x, int y, int z, int width, int height, se.krka.kahlua.vm.KahluaTable properties) -
registerRoomTone
-
isZoneAbove
-
save
-
savePart
-
load
public void load() -
load
-
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() -
CreateStep1
public void CreateStep1() -
CreateStep2
public void CreateStep2() -
Dispose
public void Dispose() -
getRandomIndoorCoord
-
getRandomRoomBetweenRange
-
getRandomRoomNotInRange
-
save
public void save() -
loadZones
public void loadZones() -
loadZone
-
saveZone
-
getLotDirectories
-
isPreferredZoneForSquare
-