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