public class CSBuilding
extends java.lang.Object
Constructor and Description |
---|
CSBuilding(Building building) |
Modifier and Type | Method and Description |
---|---|
float |
getCollapsedRatio()
Returns the building's collapse ratio
|
Building |
getReal() |
double |
getRemainingToCollapse(double floorHeight)
Returns the extent that is still possible to collapse.
|
double |
getTotalCollapse(double floorHeight) |
boolean |
hasFireDamage() |
void |
increaseCollapseRatio(float ratio)
Adds the input ratio to the building's collapse ratio
|
void |
setCollapsedRatio(float collapsedRatio)
Changes the collapse ratio of the building to the input ratio
|
void |
setHasFireDamage(boolean hasFireDamage) |
public CSBuilding(Building building)
public float getCollapsedRatio()
public void setCollapsedRatio(float collapsedRatio)
collapsedRatio
- is a floatpublic void increaseCollapseRatio(float ratio)
ratio
- is a float that represents the increased value of the collapse
ratiopublic Building getReal()
public double getRemainingToCollapse(double floorHeight)
public boolean hasFireDamage()
public void setHasFireDamage(boolean hasFireDamage)
public double getTotalCollapse(double floorHeight)