@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user