public OpponentCardsViewModel(CommandContainer commandContainer, OldMaidGameContainer gameContainer, OldMaidVMData model, IOtherPlayerProcess process) { CommandContainer = commandContainer; _model = model; _process = process; _model.OpponentCards1.SendEnableProcesses(this, () => gameContainer.SaveRoot.RemovePairs == false && gameContainer.SaveRoot.AlreadyChoseOne == false); _model.OpponentCards1.ObjectClickedAsync += OpponentCards1_ObjectClickedAsync; }
public OldMaidMainViewModel(CommandContainer commandContainer, OldMaidMainGameClass mainGame, OldMaidVMData viewModel, BasicData basicData, TestOptions test, IGamePackageResolver resolver, OldMaidGameContainer gameContainer ) : base(commandContainer, mainGame, viewModel, basicData, test, resolver) { _mainGame = mainGame; _model = viewModel; _resolver = resolver; _model.Deck1.NeverAutoDisable = false; _model.PlayerHand1.AutoSelect = HandObservable <RegularSimpleCard> .EnumAutoType.SelectAsMany; gameContainer.ShowOtherCardsAsync = LoadOpponentScreenAsync; }
public OldMaidMainGameClass(IGamePackageResolver mainContainer, IEventAggregator aggregator, BasicData basicData, TestOptions test, OldMaidVMData currentMod, IMultiplayerSaveState state, IAsyncDelayer delay, ICardInfo<RegularSimpleCard> cardInfo, CommandContainer command, OldMaidGameContainer gameContainer, IOtherPlayerProcess process) : base(mainContainer, aggregator, basicData, test, currentMod, state, delay, cardInfo, command, gameContainer) { _model = currentMod; _command = command; _gameContainer = gameContainer; _process = process; _gameContainer.SortCards = SortCards; }
public OtherPlayerProcess(OldMaidGameContainer gameContainer, OldMaidVMData model) { _gameContainer = gameContainer; _model = model; }