示例#1
0
 // Is the game Starting?
 public static bool isGameStarting(PossibleGameStates currentGameState)
 {
     return(currentGameState == PossibleGameStates.Starting);
 }
示例#2
0
 // Is the game paused?
 public static bool isGamePaused(PossibleGameStates currentGameState)
 {
     return(currentGameState == PossibleGameStates.Paused);
 }
示例#3
0
 // Is the game active?
 public static bool isGameActive(PossibleGameStates currentGameState)
 {
     return(currentGameState == PossibleGameStates.Active);
 }
示例#4
0
 // Is the game finished?
 public static bool isGameFinished(PossibleGameStates currentGameState)
 {
     return(currentGameState == PossibleGameStates.Finished);
 }
示例#5
0
 public void setCurrentGameState(PossibleGameStates currentGameState)
 {
     this.currentGameState = currentGameState;
 }