public class Building extends Area
Modifier and Type | Field and Description |
---|---|
static java.util.EnumSet<StandardEntityConstants.Fieryness> |
BURNING
Fieryness levels that indicate burning.
|
Constructor and Description |
---|
Building(Building other)
Building copy constructor.
|
Building(EntityID id)
Construct a Building object with entirely undefined property values.
|
Modifier and Type | Method and Description |
---|---|
protected Entity |
copyImpl()
Create a copy of this entity.
|
int |
getBrokenness()
Get the brokenness of this building.
|
IntProperty |
getBrokennessProperty()
Get the brokenness property.
|
int |
getBuildingAttributes()
Get the building attributes of this building.
|
IntProperty |
getBuildingAttributesProperty()
Get the building attributes property.
|
int |
getBuildingCode()
Get the building code of this building.
|
StandardEntityConstants.BuildingCode |
getBuildingCodeEnum()
Get the building code of this building as an enum constant.
|
IntProperty |
getBuildingCodeProperty()
Get the building code property.
|
protected java.lang.String |
getEntityName()
Get the name of this entity.
|
int |
getFieryness()
Get the fieryness of this building.
|
StandardEntityConstants.Fieryness |
getFierynessEnum()
Get the fieryness of this building as an enum constant.
|
IntProperty |
getFierynessProperty()
Get the fieryness property.
|
int |
getFloors()
Get the number of floors in this building.
|
IntProperty |
getFloorsProperty()
Get the floors property.
|
int |
getGroundArea()
Get the ground area of this building.
|
IntProperty |
getGroundAreaProperty()
Get the ground area property.
|
boolean |
getIgnition()
Get the value of the ignition property.
|
BooleanProperty |
getIgnitionProperty()
Get the ignition property.
|
int |
getImportance()
Get the importance of this building.
|
IntProperty |
getImportanceProperty()
Get the building importance property.
|
Property |
getProperty(java.lang.String urn)
Get a property by urn.
|
StandardEntityURN |
getStandardURN()
Get the URN of this entity type as an instanceof StandardEntityURN.
|
int |
getTemperature()
Get the temperature of this building.
|
IntProperty |
getTemperatureProperty()
Get the temperature property.
|
int |
getTotalArea()
Get the total area of this building.
|
IntProperty |
getTotalAreaProperty()
Get the total area property.
|
boolean |
isBrokennessDefined()
Find out if the brokenness property has been defined.
|
boolean |
isBuildingAttributesDefined()
Find out if the building attributes property has been defined.
|
boolean |
isBuildingCodeDefined()
Find out if the building code has been defined.
|
boolean |
isFierynessDefined()
Find out if the fieryness property has been defined.
|
boolean |
isFloorsDefined()
Find out if the floors property has been defined.
|
boolean |
isGroundAreaDefined()
Find out if the ground area property has been defined.
|
boolean |
isIgnitionDefined()
Find out if the ignition property has been defined.
|
boolean |
isImportanceDefined()
Find out if the importance property has been defined.
|
boolean |
isOnFire()
Find out if this building is on fire.
|
boolean |
isTemperatureDefined()
Find out if the temperature property has been defined.
|
boolean |
isTotalAreaDefined()
Find out if the total area property has been defined.
|
void |
setBrokenness(int brokenness)
Set the brokenness of this building.
|
void |
setBuildingAttributes(int newAttributes)
Set the building attributes of this building.
|
void |
setBuildingCode(int newCode)
Set the building code of this building.
|
void |
setFieryness(int fieryness)
Set the fieryness of this building.
|
void |
setFloors(int floors)
Set the number of floors in this building.
|
void |
setGroundArea(int ground)
Set the ground area of this building.
|
void |
setIgnition(boolean ignition)
Set the ignition property.
|
void |
setImportance(int importance)
Set the importance of this building.
|
void |
setTemperature(int temperature)
Set the temperature of this building.
|
void |
setTotalArea(int total)
Set the total area of this building.
|
void |
undefineBrokenness()
Undefine the brokenness property.
|
void |
undefineBuildingAttributes()
Undefine the building attributes.
|
void |
undefineBuildingCode()
Undefine the building code.
|
void |
undefineFieryness()
Undefine the fieryness property.
|
void |
undefineFloors()
Undefine the floors property.
|
void |
undefineGroundArea()
Undefine the ground area.
|
void |
undefineIgnition()
Undefine the ingition property.
|
void |
undefineImportance()
Undefine the importance property.
|
void |
undefineTemperature()
Undefine the temperature property.
|
void |
undefineTotalArea()
Undefine the total area property.
|
getApexList, getBlockades, getBlockadesProperty, getEdges, getEdgesProperty, getEdgeTo, getLocation, getNeighbours, getShape, getX, getXProperty, getY, getYProperty, isBlockadesDefined, isEdgesDefined, isXDefined, isYDefined, setBlockades, setEdges, setX, setY, undefineBlockades, undefineEdges, undefineX, undefineY
getURN
addEntityListener, copy, equals, firePropertyChanged, getFullDescription, getID, getProperties, hashCode, read, registerProperties, removeEntityListener, toString, write
public static final java.util.EnumSet<StandardEntityConstants.Fieryness> BURNING
public Building(EntityID id)
id
- The ID of this entity.public Building(Building other)
other
- The Building to copy.protected Entity copyImpl()
AbstractEntity
copyImpl
in class AbstractEntity
public StandardEntityURN getStandardURN()
StandardEntity
getStandardURN
in class StandardEntity
protected java.lang.String getEntityName()
AbstractEntity
getEntityName
in class AbstractEntity
public Property getProperty(java.lang.String urn)
Entity
getProperty
in interface Entity
getProperty
in class Area
urn
- The urn to look up.public IntProperty getFloorsProperty()
public int getFloors()
public void setFloors(int floors)
floors
- The new number of floors.public boolean isFloorsDefined()
public void undefineFloors()
public BooleanProperty getIgnitionProperty()
public boolean getIgnition()
public void setIgnition(boolean ignition)
ignition
- The new ignition value.public boolean isIgnitionDefined()
public void undefineIgnition()
public IntProperty getFierynessProperty()
public int getFieryness()
public StandardEntityConstants.Fieryness getFierynessEnum()
public void setFieryness(int fieryness)
fieryness
- The new fieryness value.public boolean isFierynessDefined()
public void undefineFieryness()
public IntProperty getBrokennessProperty()
public int getBrokenness()
public void setBrokenness(int brokenness)
brokenness
- The new brokenness.public boolean isBrokennessDefined()
public void undefineBrokenness()
public IntProperty getBuildingCodeProperty()
public int getBuildingCode()
public StandardEntityConstants.BuildingCode getBuildingCodeEnum()
public void setBuildingCode(int newCode)
newCode
- The new building code.public boolean isBuildingCodeDefined()
public void undefineBuildingCode()
public IntProperty getBuildingAttributesProperty()
public int getBuildingAttributes()
public void setBuildingAttributes(int newAttributes)
newAttributes
- The new building attributes.public boolean isBuildingAttributesDefined()
public void undefineBuildingAttributes()
public IntProperty getGroundAreaProperty()
public int getGroundArea()
public void setGroundArea(int ground)
ground
- The new ground area.public boolean isGroundAreaDefined()
public void undefineGroundArea()
public IntProperty getTotalAreaProperty()
public int getTotalArea()
public void setTotalArea(int total)
total
- The new total area.public boolean isTotalAreaDefined()
public void undefineTotalArea()
public IntProperty getTemperatureProperty()
public int getTemperature()
public void setTemperature(int temperature)
temperature
- The new temperature.public boolean isTemperatureDefined()
public void undefineTemperature()
public IntProperty getImportanceProperty()
public int getImportance()
public void setImportance(int importance)
importance
- The new importance.public boolean isImportanceDefined()
public void undefineImportance()
public boolean isOnFire()