Exemple #1
0
 public void StopSimulation()
 {
     this.gameMatchStart = false;
     this.ClearSimulation();
     this.InitializeSimulation();
     SimulationMetricsLogger.SetGameLogger(GameLoggerOptions.StopGameMetrics);
     SimulationMetricsLogger.SetGameLogger(GameLoggerOptions.GameIsOver);
 }
Exemple #2
0
 public void StartSimulation()
 {
     this.gameMatchStart = true;
     this.sessionNumber  = 1;
     SimulationMetricsLogger.ResetLogger();
     SimulationMetricsLogger.SetGameLogger(GameLoggerOptions.StartGameMetrics);
     SimulationMetricsLogger.SetGameLogger(GameLoggerOptions.GameIsPlaying);
 }
Exemple #3
0
 public void PauseSimulation()
 {
     this.gamePaused = !this.gamePaused;
     if (this.gamePaused)
     {
         SimulationMetricsLogger.SetGameLogger(GameLoggerOptions.GameIsOver);
     }
     else
     {
         SimulationMetricsLogger.SetGameLogger(GameLoggerOptions.GameIsPlaying);
     }
 }