public class MiscParameters
extends java.lang.Object
Constructor and Description |
---|
MiscParameters(Config config)
Create a new MiscParameters object based on a Config.
|
Modifier and Type | Method and Description |
---|---|
int |
getBuriedness(Building b)
Get the buriedness of an agent inside a building.
|
int |
getBuryDamage(Building b,
Human agent)
Get the amount of damage an agent should take as a result of being buried in a collapsed building.
|
int |
getCollapseDamage(Building b,
Human agent)
Get the amount of damage an agent should take as a result of being in a collapsing building.
|
int |
getFireDamage(Building b,
Human agent)
Get the amount of damage an agent should take as a result of being in a burning building.
|
boolean |
shouldBuryAgent(Building b)
Find out if an agent inside a building should be buried due to collapse.
|
public MiscParameters(Config config)
config
- The Config to read.public boolean shouldBuryAgent(Building b)
b
- The building to check.public int getBuriedness(Building b)
b
- The building to check.public int getCollapseDamage(Building b, Human agent)
b
- The building.agent
- The agent being damaged.public int getBuryDamage(Building b, Human agent)
b
- The building.agent
- The agent being damaged.