Class IsoMetaGrid
java.lang.Object
zombie.iso.IsoMetaGrid
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ZoneHandler<AnimalZone> final ArrayList<BuildingDef> static ByteBufferstatic ClipperOffsetintintintintfinal ArrayList<IsoGameCharacter> intintintintstatic final ThreadLocal<IsoGameCharacter.Location> final ArrayList<VehicleZone> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCellToSave(IsoMetaCell cell) voidaddRoomsToAdjacentCells(BuildingDef buildingDef) voidaddRoomsToAdjacentCells(BuildingDef buildingDef, ArrayList<RoomDef> roomDefs) voidAddToMeta(IsoGameCharacter isoPlayer) voidvoidintcountNearbyBuildingsRooms(IsoPlayer isoPlayer) intcountRoomsIntersecting(int x, int y, int w, int h) voidCreate()voidvoidvoidDispose()getAssociatedBuildingAt(int x, int y) getBuildingAt(int x, int y) getBuildingAt(int x, int y, int z) getBuildingAtRelax(int x, int y) voidgetBuildingsIntersecting(int x, int y, int w, int h, ArrayList<BuildingDef> result) getCell(int x, int y) getCellData(int x, int y) getCellDataAbs(int x, int y) getCellOrCreate(int x, int y) getChunkData(int chunkX, int chunkY) getChunkDataFromTile(int x, int y) getEmptyOutsideAt(int x, int y, int z) intintgetMaxX()intgetMaxY()getMetaGridFromTile(int wx, int wy) intgetMinX()intgetMinY()getRandomRoomBetweenRange(float x, float y, float min, float max) getRandomRoomNotInRange(float x, float y, int range) getRoomAt(int x, int y, int z) getRoomByID(long roomID) getRoomDefByID(long roomID) voidgetRoomsIntersecting(int x, int y, int w, int h, ArrayList<RoomDef> roomDefs) getVehicleZoneAt(int x, int y, int z) intgetWidth()getZoneAt(int x, int y, int z) getZonesAt(int x, int y, int z) getZonesAt(int x, int y, int z, ArrayList<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<Zone> result) getZoneWithBoundsAndType(int x, int y, int z, int w, int h, String type) intgridX()intgridY()booleanhasCell(int x, int y) hasCellData(int x, int y) booleanisChunkLoaded(int wx, int wy) booleanisValidChunk(int wx, int wy) booleanisValidSquare(int x, int y) booleanisZoneAbove(Zone zone1, Zone zone2, int x, int y, int z) voidload()voidload(String inFilePath, BiConsumer<ByteBuffer, Integer> loadMethod) voidload(ByteBuffer input) voidloadAnimalZones(ByteBuffer input, int WorldVersion) voidloadCells(String path, String filter, QuadConsumer<IsoMetaCell, IsoMetaGrid, ByteBuffer, Integer> loadMethod) voidloadZone(ByteBuffer input, int WorldVersion) voidregisterAnimalZone(String name, String type, int x, int y, int z, int width, int height, se.krka.kahlua.vm.KahluaTable properties) registerAnimalZone(AnimalZone animalZone) registerAnimalZone(AnimalZone animalZone, boolean bHotSave) 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) voidregisterRoomTone(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) registerWorldGenZone(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, ZoneGeometryType geometryType, gnu.trove.list.array.TIntArrayList points, int polylineWidth) registerZone(Zone zone) registerZoneNoOverlap(String name, String type, int x, int y, int z, int width, int height) Deprecated.voidRemoveFromMeta(IsoPlayer isoPlayer) voidremoveRoomsFromAdjacentCells(ArrayList<RoomDef> rooms, int cellX1, int cellY1, int cellX2, int cellY2, int userDefined) voidremoveRoomsFromAdjacentCells(BuildingDef buildingDef) voidremoveZone(Zone zone) voidremoveZonesForCell(int cellX, int cellY) voidremoveZonesForLotDirectory(String lotDir) voidsave()voidsave(ByteBuffer output) voidsaveAnimalZones(ByteBuffer output) voidsaveCellsToSaveBufferMap(SaveBufferMap bufferMap, String path, String filter, BiConsumer<IsoMetaCell, ByteBuffer> saveMethod) voidsavePart(ByteBuffer output, int part, boolean fromServer) voidsaveToBufferMap(SaveBufferMap bufferMap) voidsaveToSaveBufferMap(SaveBufferMap bufferMap, String fileName, Consumer<ByteBuffer> saveMethod) voidsaveZone(ByteBuffer output) voidsetCell(int x, int y, IsoMetaCell cell) voidsetCellData(int x, int y, IsoMetaCell cell) boolean
-
Field Details
-
clipperOffset
-
clipperBuffer
-
TL_Location
-
minX
public int minX -
minY
public int minY -
maxX
public int maxX -
maxY
public int maxY -
minNonProceduralX
public int minNonProceduralX -
minNonProceduralY
public int minNonProceduralY -
maxNonProceduralX
public int maxNonProceduralX -
maxNonProceduralY
public int maxNonProceduralY -
zones
-
buildings
-
vehiclesZones
-
animalZoneHandler
-
metaCharacters
-
-
Constructor Details
-
IsoMetaGrid
public IsoMetaGrid()
-
-
Method Details
-
getCell
-
getCellOrCreate
-
setCell
-
hasCell
public boolean hasCell(int x, int y) -
gridX
public int gridX() -
gridY
public int gridY() -
AddToMeta
-
RemoveFromMeta
-
getMinX
public int getMinX() -
getMinY
public int getMinY() -
getMaxX
public int getMaxX() -
getMaxY
public int getMaxY() -
getZoneAt
-
getZonesAt
-
getZonesAt
-
getZonesIntersecting
-
getZonesIntersecting
-
getZoneWithBoundsAndType
-
getVehicleZoneAt
-
getBuildingAt
-
getBuildingAt
-
getBuildings
-
getRemovedBuildings
-
getAssociatedBuildingAt
-
getBuildingAtRelax
-
getRoomAt
-
getEmptyOutsideAt
-
getRoomDefByID
-
getRoomByID
-
getBuildingsIntersecting
-
getRoomsIntersecting
-
countRoomsIntersecting
public int countRoomsIntersecting(int x, int y, int w, int h) -
countNearbyBuildingsRooms
-
registerZone
-
registerZone
public Zone registerZone(String name, String type, int x, int y, int z, int width, int height, ZoneGeometryType geometryType, gnu.trove.list.array.TIntArrayList points, int polylineWidth) -
registerZone
-
registerGeometryZone
-
registerZoneNoOverlap
@Deprecated public Zone registerZoneNoOverlap(String name, String type, int x, int y, int z, int width, int height) Deprecated. -
addZone
-
removeZone
-
removeZonesForCell
public void removeZonesForCell(int cellX, int cellY) -
removeZonesForLotDirectory
-
processZones
public void processZones() -
registerVehiclesZone
-
registerWorldGenZone
-
checkVehiclesZones
public void checkVehiclesZones() -
registerAnimalZone
-
registerAnimalZone
-
registerAnimalZone
-
registerMannequinZone
-
registerRoomTone
-
isZoneAbove
-
save
-
savePart
-
load
public void load() -
load
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
wasLoaded
public boolean wasLoaded() -
getCellData
-
hasCellData
-
setCellData
-
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() -
isChunkLoaded
public boolean isChunkLoaded(int wx, int wy) -
Dispose
public void Dispose() -
getRandomIndoorCoord
-
getRandomRoomBetweenRange
-
getRandomRoomNotInRange
-
save
public void save() -
addCellToSave
-
saveToBufferMap
-
saveToSaveBufferMap
public void saveToSaveBufferMap(SaveBufferMap bufferMap, String fileName, Consumer<ByteBuffer> saveMethod) -
saveCellsToSaveBufferMap
public void saveCellsToSaveBufferMap(SaveBufferMap bufferMap, String path, String filter, BiConsumer<IsoMetaCell, ByteBuffer> saveMethod) -
load
-
loadCells
public void loadCells(String path, String filter, QuadConsumer<IsoMetaCell, IsoMetaGrid, ByteBuffer, Integer> loadMethod) -
loadZone
-
loadAnimalZones
-
saveZone
-
saveAnimalZones
-
getLotDirectories
-
addRoomsToAdjacentCells
-
addRoomsToAdjacentCells
-
removeRoomsFromAdjacentCells
-
removeRoomsFromAdjacentCells
-