diff --git a/frontend/core/src/com/game/tankwars/view/GameHud.java b/frontend/core/src/com/game/tankwars/view/GameHud.java index 36d63380af25cbe6d8a8d614df859c1f5a1e326c..2420b1ad099b2a886e11bbd5bba78fbb7f56f2d0 100644 --- a/frontend/core/src/com/game/tankwars/view/GameHud.java +++ b/frontend/core/src/com/game/tankwars/view/GameHud.java @@ -116,4 +116,20 @@ public class GameHud { public Button getMoveRight() { return moveRight; } + + /** + * Set visible health of player + * @param health new health of player + */ + public void setPlayerHealth(int health) { + healthProgressBarPlayer.setValue(health); + } + + /** + * Set visible health of opponent + * @param health new health of opponent + */ + public void setOpponentHealth(int health) { + healthProgressBarOpponent.setValue(health); + } }