refactor: extracted updateTimer method
This commit is contained in:
parent
4e2e0bd622
commit
6eff0a4813
@ -92,8 +92,11 @@ public class Lobby {
|
|||||||
badRequests = 0;
|
badRequests = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateTimer(game.state.getActiveCharacter().type);
|
||||||
|
|
||||||
EntityType currentActiveCharacterType = game.state.getActiveCharacter().type;
|
}
|
||||||
|
|
||||||
|
void updateTimer(EntityType currentActiveCharacterType) {
|
||||||
if (pauseSegment.isPaused()) {
|
if (pauseSegment.isPaused()) {
|
||||||
turnTimer.clear();
|
turnTimer.clear();
|
||||||
} else if (currentActiveCharacterType == EntityType.P1) {
|
} else if (currentActiveCharacterType == EntityType.P1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user