public class HealthComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Constructor and Description |
|---|
HealthComponent() |
| Modifier and Type | Method and Description |
|---|---|
static HealthComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
HealthComponent |
setHealth(float health) |
HealthComponent |
setMaxHealth(float maxHealth) |
public static HealthComponent create(com.badlogic.ashley.core.Engine engine)
public HealthComponent setMaxHealth(float maxHealth)
public HealthComponent setHealth(float health)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable