Пример #1
0
        public TableauViewModel(SpiderViewModel model)
        {
            Model = model;

            DiscardPiles = new ObservableCollection <PileViewModel>();
            Piles        = new ObservableCollection <PileViewModel>();
            StockPile    = new PileViewModel();
            MovePile     = new PileViewModel();
        }
Пример #2
0
 public void PerformUIPlayerAction(ActionType actionType, CardViewModel card, PileViewModel pile)
 {
     this.uiRequestAction = new PlayerAction();
     this.uiRequestAction.ActionType = actionType;
     this.uiRequestAction.Card = card != null ? card.CardModel : null;
     this.uiRequestAction.Pile = pile != null ? pile.PileModel : null;
     this.state = ClientState.WaitingForOpponent;
     this.uiPlayerActionWaitHandle.Set();
 }