示例#1
0
        private void StartNewGame()
        {
            MatchDetails              = SelectedGame.Name;
            _currentGameService       = _dartGameFactory(SelectedGame.ClassId);
            _currentStatisticsService = _statisticsFactory(SelectedGame.ClassId);
            PlayerTemplate            = (DataTemplate)Application.Current.Resources[SelectedGame.PlayerTemplateName];

            InitaliseFlags();

            // Hide all the darts
            MessageBus.Current.SendMessage(Visibility.Collapsed);

            ClearDarts();

            InitialiseAllPlayers();

            SetCurrentPlayer(_nextUpIndex);

            RotateStartingPlayer();

            AnalyseScoreForHints();

            SetLeaderMessage();
        }
示例#2
0
 public OnScoreUpdatedArgs(IDartGame currentGame)
 {
     CurrentGame = currentGame;
 }