refactor: extracted updateTimer method

This commit is contained in:
Yannik Bretschneider 2021-06-06 00:08:08 +02:00
parent 4e2e0bd622
commit 6eff0a4813

View File

@ -92,8 +92,11 @@ public class Lobby {
badRequests = 0;
}
updateTimer(game.state.getActiveCharacter().type);
EntityType currentActiveCharacterType = game.state.getActiveCharacter().type;
}
void updateTimer(EntityType currentActiveCharacterType) {
if (pauseSegment.isPaused()) {
turnTimer.clear();
} else if (currentActiveCharacterType == EntityType.P1) {