Package zombie.iso

Class IsoMetaGrid

java.lang.Object
zombie.iso.IsoMetaGrid

public final class IsoMetaGrid extends Object
  • Field Details

  • Constructor Details

    • IsoMetaGrid

      public IsoMetaGrid()
  • Method Details

    • AddToMeta

      public void AddToMeta(IsoGameCharacter isoPlayer)
    • RemoveFromMeta

      public void RemoveFromMeta(IsoPlayer isoPlayer)
    • getMinX

      public int getMinX()
    • getMinY

      public int getMinY()
    • getMaxX

      public int getMaxX()
    • getMaxY

      public int getMaxY()
    • getZoneAt

      public IsoMetaGrid.Zone getZoneAt(int x, int y, int z)
    • getZonesAt

      public ArrayList<IsoMetaGrid.Zone> getZonesAt(int x, int y, int z)
    • getZonesAt

      public ArrayList<IsoMetaGrid.Zone> getZonesAt(int x, int y, int z, ArrayList<IsoMetaGrid.Zone> result)
    • getZonesIntersecting

      public ArrayList<IsoMetaGrid.Zone> getZonesIntersecting(int x, int y, int z, int w, int h)
    • getZonesIntersecting

      public ArrayList<IsoMetaGrid.Zone> getZonesIntersecting(int x, int y, int z, int w, int h, ArrayList<IsoMetaGrid.Zone> result)
    • getZoneWithBoundsAndType

      public IsoMetaGrid.Zone getZoneWithBoundsAndType(int x, int y, int z, int w, int h, String type)
    • getVehicleZoneAt

      public IsoMetaGrid.VehicleZone getVehicleZoneAt(int x, int y, int z)
    • getBuildingAt

      public BuildingDef getBuildingAt(int x, int y)
    • getBuildingAtRelax

      public BuildingDef getBuildingAtRelax(int x, int y)
    • getRoomAt

      public RoomDef getRoomAt(int x, int y, int z)
    • getEmptyOutsideAt

      public RoomDef getEmptyOutsideAt(int x, int y, int z)
    • getRoomsIntersecting

      public void getRoomsIntersecting(int x, int y, int w, int h, ArrayList<RoomDef> roomDefs)
    • countRoomsIntersecting

      public int countRoomsIntersecting(int x, int y, int w, int h)
    • countNearbyBuildingsRooms

      public int countNearbyBuildingsRooms(IsoPlayer isoPlayer)
    • 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

      public void removeZone(IsoMetaGrid.Zone zone)
    • removeZonesForCell

      public void removeZonesForCell(int cellX, int cellY)
    • removeZonesForLotDirectory

      public void removeZonesForLotDirectory(String lotDir)
    • 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

      public void registerRoomTone(String name, String type, int x, int y, int z, int width, int height, se.krka.kahlua.vm.KahluaTable properties)
    • isZoneAbove

      public boolean isZoneAbove(IsoMetaGrid.Zone zone1, IsoMetaGrid.Zone zone2, int x, int y, int z)
    • save

      public void save(ByteBuffer output)
    • savePart

      public void savePart(ByteBuffer output, int part, boolean fromServer)
    • load

      public void load()
    • load

      public void load(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()
    • getMetaGridFromTile

      public IsoMetaCell getMetaGridFromTile(int wx, int wy)
    • getCurrentChunkData

      public IsoMetaChunk getCurrentChunkData()
    • getChunkData

      public IsoMetaChunk getChunkData(int cx, int cy)
    • getChunkDataFromTile

      public IsoMetaChunk getChunkDataFromTile(int x, int y)
    • 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

      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)
    • save

      public void save()
    • loadZones

      public void loadZones()
    • loadZone

      public void loadZone(ByteBuffer input, int WorldVersion)
    • saveZone

      public void saveZone(ByteBuffer output)
    • getLotDirectories

      public ArrayList<String> getLotDirectories()
    • isPreferredZoneForSquare

      public static boolean isPreferredZoneForSquare(String type)