Class HealthAnimation
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.building.HealthAnimation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.deco2800.game.components.building.Health
void
updateHealth
(com.deco2800.game.components.building.Health health) update the Building's current healthMethods inherited from class com.deco2800.game.components.Component
create, dispose, earlyUpdate, getEntity, isAnimationRenderComponent, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Field Details
-
health
public com.deco2800.game.components.building.Health health
-
-
Constructor Details
-
HealthAnimation
public HealthAnimation()
-
-
Method Details
-
getAnimation
-
updateHealth
public void updateHealth(com.deco2800.game.components.building.Health health) update the Building's current health- Parameters:
health
- the new health
-
getHealth
public com.deco2800.game.components.building.Health getHealth()
-