public TableauViewModel(SpiderViewModel model) { Model = model; DiscardPiles = new ObservableCollection <PileViewModel>(); Piles = new ObservableCollection <PileViewModel>(); StockPile = new PileViewModel(); MovePile = new PileViewModel(); }
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(); }