public class HumanAttributes
extends java.lang.Object
Constructor and Description |
---|
HumanAttributes(Human h,
Config config)
Construct a HumanAttributes object that wraps a Human.
|
Modifier and Type | Method and Description |
---|---|
void |
addBuriednessDamage(double d)
Add some buriedness damage.
|
void |
addCollapseDamage(double d)
Add some collapse damage.
|
void |
addFireDamage(double d)
Add some fire damage.
|
void |
clearDamage()
Clear all damage.
|
double |
getBuriednessDamage()
Get the amount of buriedness damage this human has.
|
double |
getCollapseDamage()
Get the amount of collapse damage this human has.
|
double |
getFireDamage()
Get the amount of fire damage this human has.
|
Human |
getHuman()
Get the wrapped human.
|
EntityID |
getID()
Get the ID of the wrapped human.
|
int |
getTotalDamage()
Get the total damage of this human, rounded to the nearest integer.
|
void |
progressDamage()
Progress all damage types.
|
void |
setBuriednessDamage(double d)
Set the amount of buriedness damage this human has.
|
void |
setCollapseDamage(double d)
Set the amount of collapse damage this human has.
|
void |
setFireDamage(double d)
Set the amount of fire damage this human has.
|
public EntityID getID()
public Human getHuman()
public void addCollapseDamage(double d)
d
- The amount of damage to add.public double getCollapseDamage()
public void setCollapseDamage(double d)
d
- The new collapse damage.public void addBuriednessDamage(double d)
d
- The amount of damage to add.public double getBuriednessDamage()
public void setBuriednessDamage(double d)
d
- The new buriedness damage.public void addFireDamage(double d)
d
- The amount of damage to add.public double getFireDamage()
public void setFireDamage(double d)
d
- The new fire damage.public int getTotalDamage()
public void progressDamage()
public void clearDamage()