Cleanup GameState (#9610)

* Cleanup GameState

* Braint
This commit is contained in:
buthed010203
2024-03-02 10:49:11 -05:00
committed by GitHub
parent 2a95bc3092
commit 277291ce09

View File

@@ -86,11 +86,12 @@ public class GameState{
} }
public boolean isPaused(){ public boolean isPaused(){
return is(State.paused); return state == State.paused;
} }
/** @return whether there is an unpaused game in progress. */
public boolean isPlaying(){ public boolean isPlaying(){
return (state == State.playing) || (state == State.paused && !isPaused()); return state == State.playing;
} }
/** @return whether the current state is *not* the menu. */ /** @return whether the current state is *not* the menu. */