Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shiv-0831 committed Oct 2, 2023
1 parent dfc16b0 commit 5c018bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ public void changed(ChangeEvent changeEvent, Actor actor) {
*/
public void updateMobCount() {
remainingMobsButton.setText("Mobs:" + ServiceLocator.getWaveService().getEnemyCount());
updateTimerButton();
}

/**
Expand Down Expand Up @@ -199,4 +198,12 @@ public void dispose() {
buttonTable.clear();
towerTable.clear();
}

public TextButton getRemainingMobsButton() {
return getRemainingMobsButton();
}

public TextButton getTimerButton() {
return timerButton;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ public void render(float delta) {
}

ServiceLocator.getWaveService().getDisplay().updateTimerButton();
ServiceLocator.getWaveService().getDisplay().updateMobCount();
renderer.render();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public int getEnemyCount() {
*/
public void updateEnemyCount() {
enemyCount -= 1;
display.updateMobCount();
logger.info("{} enemies remaining in wave", getEnemyCount());
}

Expand Down

0 comments on commit 5c018bf

Please sign in to comment.