Package zombie.iso
Class RoomDef
java.lang.Object
zombie.iso.RoomDef
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionint
boolean
boolean
boolean
int
int
int
long
final ArrayList<MetaObject>
final ArrayList<RoomDef.RoomRect>
int
int
int
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
long
calculateMetaID
(int cellX, int cellY) void
Dispose()
void
forEachChunk
(BiConsumer<RoomDef, IsoChunk> consumer) int
getArea()
float
getAreaOverlapping
(int x, int y, int w, int h) float
getAreaOverlapping
(IsoChunk chunk) float
getClosestPoint
(float x, float y, org.joml.Vector2f closestXY) int
getH()
int
getID()
getName()
getRandomSquare
(Predicate<IsoGridSquare> predicate) getRects()
int
getW()
int
getX()
int
getX2()
int
getY()
int
getY2()
int
getZ()
boolean
intersects
(int x, int y, int w, int h) boolean
boolean
boolean
isInside
(int x, int y, int z) boolean
void
void
setBuilding
(BuildingDef def) void
setExplored
(boolean explored) void
setRoofFixed
(boolean b)
-
Field Details
-
bExplored
public boolean bExplored -
bDoneSpawn
public boolean bDoneSpawn -
IndoorZombies
public int IndoorZombies -
spawnCount
public int spawnCount -
bLightsActive
public boolean bLightsActive -
name
-
level
public int level -
building
-
ID
public int ID -
rects
-
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
-
-
Constructor Details
-
RoomDef
-
-
Method Details
-
getID
public int getID() -
isExplored
public boolean isExplored() -
isInside
public boolean isInside(int x, int y, int z) -
intersects
public boolean intersects(int x, int y, int w, int h) -
getAreaOverlapping
-
getAreaOverlapping
public float getAreaOverlapping(int x, int y, int w, int h) -
forEachChunk
-
getIsoRoom
-
getObjects
-
getMetaObjects
-
refreshSquares
public void refreshSquares() -
getBuilding
-
setBuilding
-
getName
-
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) -
getArea
public int getArea() -
setExplored
public void setExplored(boolean explored) -
getFreeSquare
-
getRandomSquare
-
isEmptyOutside
public boolean isEmptyOutside() -
getProceduralSpawnedContainer
-
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()
-