- Source:
Implemented by objects that take damage
Members
(static) health
- Source:
Properties:
Name | Type | Description |
---|---|---|
health |
number | The health of the Hurtable |
Methods
(static) die()
- Source:
called if health is <= 0
(static) takeDamage(damage)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
damage |
number | The damage to take |