Ejemplo n.º 1
0
 public void OnGameFinished(GameFinishedReasons reason, GameStatistics statistics)
 {
     UpdateCallInfo(System.Reflection.MethodBase.GetCurrentMethod().Name, reason, statistics);
 }
 public void OnGameFinished(GameFinishedReasons reason, GameStatistics statistics)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 private void OnGameFinished(GameFinishedReasons reason, GameStatistics statistics)
 {
     Console.WriteLine("OnGameFinished: {0}", reason);
 }
Ejemplo n.º 4
0
 public void OnGameFinished(GameFinishedReasons reason, GameStatistics statistics)
 {
     ExceptionFreeAction(() => Callback.OnGameFinished(reason, statistics));
 }
Ejemplo n.º 5
0
        public void OnGameFinished(GameFinishedReasons reason, GameStatistics statistics)
        {
            ResetTimeout();

            if (_state == States.Playing || _state == States.GamePaused || _state == States.GameLost)
            {
                _state = States.WaitInGame;

                _actionQueue.Clear();
                _gameTimer.Stop();

                // TODO: update statistics, reset play variables
                GameFinished.Do(x => x(reason, statistics));
            }
            else
                Log.Default.WriteLine(LogLevels.Warning, "Cannot finish game, wrong state {0}", _state);
        }
Ejemplo n.º 6
0
 private void OnGameFinished(GameFinishedReasons reason, GameStatistics statistics)
 {
     foreach (Timer timer in _timers.Values)
         timer.Stop();
 }