Skip to content
Snippets Groups Projects
Commit f9fac2c9 authored by Magnus Segtnan Skjølberg's avatar Magnus Segtnan Skjølberg
Browse files

(#18): setter to change visible health

parent 4cb5b404
No related branches found
No related tags found
3 merge requests!51Resolve "Adjust cannon angle from touch input",!35Draft: Resolve "Adjust cannon angle from touch input",!32Combine hud with gameplay
......@@ -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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment