Class HealthAnimation

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.building.HealthAnimation

public class HealthAnimation extends Component
  • Field Details

    • health

      public com.deco2800.game.components.building.Health health
  • Constructor Details

    • HealthAnimation

      public HealthAnimation()
  • Method Details

    • getAnimation

      public String 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()