示例#1
0
 public YahtzeeEndRoundLogic(YahtzeeGameContainer <D> gameContainer,
                             ScoreContainer scoreContainer
                             )
 {
     _gameContainer  = gameContainer;
     _scoreContainer = scoreContainer;
 }
示例#2
0
 public KismetScoreProcesses(YahtzeeGameContainer <KismetDice> gameContainer,
                             ScoreContainer scoreContainer,
                             YahtzeeVMData <KismetDice> model
                             )
 {
     _gameContainer  = gameContainer;
     _scoreContainer = scoreContainer;
     _model          = model;
 }
        //this is all this needs to do now.

        public YahtzeeMove(ScoreContainer scoreContainer,
                           IScoreLogic scoreLogic,
                           YahtzeeVMData <D> model,
                           IYahtzeeEndRoundLogic endRoundLogic,
                           YahtzeeGameContainer <D> gameContainer)
        {
            _scoreContainer = scoreContainer;
            _scoreLogic     = scoreLogic;
            _model          = model;
            _endRoundLogic  = endRoundLogic;
            _gameContainer  = gameContainer;
        }
 public YahtzeeScoresheetViewModel(
     CommandContainer commandContainer,
     ScoreContainer scoreContainer,
     IEventAggregator aggregator,
     YahtzeeGameContainer <D> gameContainer,
     IYahtzeeMove yahtzeeMove
     )
 {
     CommandContainer = commandContainer;
     _scoreContainer  = scoreContainer;
     _aggregator      = aggregator;
     _gameContainer   = gameContainer;
     _yahtzeeMove     = yahtzeeMove;
 }
 public YahtzeeMainViewModel(
     CommandContainer commandContainer,
     IHoldUnholdProcesses mainGame,
     IBasicDiceGamesData <D> viewModel,
     BasicData basicData,
     TestOptions test,
     IGamePackageResolver resolver,
     IStandardRollProcesses rollProcesses,
     YahtzeeGameContainer <D> gameContainer)
     : base(commandContainer, mainGame, viewModel, basicData, test, resolver, rollProcesses)
 {
     _resolver      = resolver;
     _gameContainer = gameContainer;
     _gameContainer.GetNewScoreAsync = LoadNewScoreAsync;
 }
示例#6
0
 public KismetMissTurn(
     YahtzeeVMData <KismetDice> model,
     TestOptions thisTest,
     IAsyncDelayer delay,
     IScoreLogic scoreLogic,
     ScoreContainer scoreContainer,
     YahtzeeGameContainer <KismetDice> gameContainer
     )
 {
     _model          = model;
     _thisTest       = thisTest;
     _delay          = delay;
     _scoreLogic     = scoreLogic;
     _scoreContainer = scoreContainer;
     _gameContainer  = gameContainer;
 }
 public BasicYahtzeeGame(IGamePackageResolver mainContainer,
                         IEventAggregator aggregator,
                         BasicData basicData,
                         TestOptions test,
                         YahtzeeVMData <D> currentMod,
                         IMultiplayerSaveState state,
                         IAsyncDelayer delay,
                         CommandContainer command,
                         YahtzeeGameContainer <D> gameContainer,
                         IScoreLogic scoreLogic,
                         ScoreContainer scoreContainer,
                         IYahtzeeEndRoundLogic endRoundLogic,
                         StandardRollProcesses <D, YahtzeePlayerItem <D> > roller) : base(mainContainer, aggregator, basicData, test, currentMod, state, delay, command, gameContainer, roller)
 {
     _gameContainer            = gameContainer;
     _scoreLogic               = scoreLogic;
     _scoreContainer           = scoreContainer;
     _endRoundLogic            = endRoundLogic;
     _model                    = currentMod;
     _scoreContainer.StartTurn = (() => SingleInfo !.MissNextTurn = false);
 }