public class CollapseWorldModel extends StandardWorldModel
| Constructor and Description |
|---|
CollapseWorldModel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
aftershockHappens(int time) |
float |
aftershockIntensity(int time) |
java.util.HashMap<Building,CSBuilding> |
getCollapseBuildings() |
CSBuilding |
getCSBuiding(Building building)
Returns a specific CSBuilding by its Building
|
CSBuilding |
getCSBuiding(EntityID id)
Returns a specific CSBuilding by its EntityID
|
void |
merge(ChangeSet changes)
Merge a set of changes into this world.
|
void |
updateAftershocks(KSAfterShocksInfo msg)
Changes the list in the world model with the new input aftershock list
|
createStandardWorldModel, getBounds, getDistance, getDistance, getEntitiesOfType, getEntitiesOfType, getObjectsInRange, getObjectsInRange, getObjectsInRange, getObjectsInRectangle, getWorldBounds, index, indexClassaddEntityImpl, create, getAllEntities, getEntity, iterator, removeAllEntities, removeEntityaddEntities, addEntity, addWorldModelListener, fireEntityAdded, fireEntityRemoved, isAllowed, merge, registerAllowedClass, removeEntity, removeWorldModelListenerpublic void merge(ChangeSet changes)
WorldModelWorldModel.merge(Collection) method because an undefined value inside a ChangeSet means that the property value has become undefined, whereas in the other version of merge an undefined property means there is no value for that property.merge in interface WorldModel<StandardEntity>merge in class StandardWorldModelchanges - The set of changes to merge into this world model.public void updateAftershocks(KSAfterShocksInfo msg)
msg - instance of KSAfterShocksInfopublic boolean aftershockHappens(int time)
public float aftershockIntensity(int time)
public java.util.HashMap<Building,CSBuilding> getCollapseBuildings()
public CSBuilding getCSBuiding(EntityID id)
id - is an EntityIDpublic CSBuilding getCSBuiding(Building building)
building - is an Building