Class RoomDef

java.lang.Object
zombie.iso.RoomDef

public final class RoomDef extends Object
  • Field Details

    • explored

      public boolean explored
    • doneSpawn

      public boolean doneSpawn
    • indoorZombies

      public int indoorZombies
    • spawnCount

      public int spawnCount
    • lightsActive

      public boolean lightsActive
    • name

      public String name
    • level

      public int level
    • building

      public BuildingDef building
    • id

      public long id
    • rects

      public final ArrayList<RoomDef.RoomRect> rects
    • objects

      public final ArrayList<MetaObject> objects
    • x

      public int x
    • y

      public int y
    • x2

      public int x2
    • y2

      public int y2
    • area

      public int area
    • metaId

      public long metaId
    • userDefined

      public boolean userDefined
  • Constructor Details

    • RoomDef

      public RoomDef(long id, String name)
    • RoomDef

      public RoomDef()
  • Method Details

    • getID

      public long getID()
    • getIDString

      public String getIDString()
    • isExplored

      public boolean isExplored()
    • isInside

      public boolean isInside(int x, int y, int z)
    • contains

      public boolean contains(int x, int y)
    • intersects

      public boolean intersects(int x, int y, int w, int h)
    • isAdjacent

      public boolean isAdjacent(RoomDef other)
    • isAdjacent

      public boolean isAdjacent(int x, int y, int w, int h)
    • overlaps

      public boolean overlaps(RoomDef other)
    • getAreaOverlapping

      public float getAreaOverlapping(IsoChunk chunk)
    • getAreaOverlapping

      public float getAreaOverlapping(int x, int y, int w, int h)
    • forEachChunk

      public void forEachChunk(BiConsumer<RoomDef,IsoChunk> consumer)
    • setInvalidateCacheForAllChunks

      public void setInvalidateCacheForAllChunks(int playerIndex, long dirtyFlags)
    • getIsoRoom

      public IsoRoom getIsoRoom()
    • getObjects

      public ArrayList<MetaObject> getObjects()
    • getMetaObjects

      public ArrayList<MetaObject> getMetaObjects()
    • refreshSquares

      public void refreshSquares()
    • getBuilding

      public BuildingDef getBuilding()
    • setBuilding

      public void setBuilding(BuildingDef def)
    • getName

      public String getName()
    • setName

      public void setName(String newName)
    • getRects

      public ArrayList<RoomDef.RoomRect> getRects()
    • getY

      public int getY()
    • getX

      public int getX()
    • getX2

      public int getX2()
    • getY2

      public int getY2()
    • getW

      public int getW()
    • getH

      public int getH()
    • getZ

      public int getZ()
    • CalculateBounds

      public void CalculateBounds()
    • calculateMetaID

      public long calculateMetaID(int cellX, int cellY)
    • offset

      public void offset(int dx, int dy)
    • getArea

      public int getArea()
    • setExplored

      public void setExplored(boolean explored)
    • getFreeSquare

      public IsoGridSquare getFreeSquare()
    • getExtraFreeSquare

      public IsoGridSquare getExtraFreeSquare()
    • getFreeUnoccupiedSquare

      public IsoGridSquare getFreeUnoccupiedSquare()
    • getRandomSquare

      public IsoGridSquare getRandomSquare(Predicate<IsoGridSquare> predicate)
    • isEmptyOutside

      public boolean isEmptyOutside()
    • getProceduralSpawnedContainer

      public HashMap<String,Integer> getProceduralSpawnedContainer()
    • getRoomRect

      public RoomDef.RoomRect getRoomRect(int x, int y, int z)
    • isRoofFixed

      public boolean isRoofFixed()
    • setRoofFixed

      public void setRoofFixed(boolean b)
    • getClosestPoint

      public float getClosestPoint(float x, float y, org.joml.Vector2f closestXY)
    • Dispose

      public void Dispose()
    • isKidsRoom

      public boolean isKidsRoom()
    • isShop

      public boolean isShop()
    • copyFrom

      public void copyFrom(RoomDef other)