Exemplo n.º 1
0
        private void PopulateActivityRelated(Game game, Player player)
        {
            var activity = game.GetPendingActivity(player);
            if(activity != null)
                PendingActivity = new ActivityModel(activity);

            if (activity is IRevealedCardsActivity)
            {
                this.Revealed = ((IRevealedCardsActivity)activity).RevealedCards
                    .Select(c => new CardViewModel(c)).ToArray();
            }
        }
Exemplo n.º 2
0
        private void PopulateActivityRelated(Game game, Player player)
        {
            var activity = game.GetPendingActivity(player);

            if (activity != null)
            {
                PendingActivity = new ActivityModel(activity);
            }

            if (activity is IRevealedCardsActivity)
            {
                this.Revealed = ((IRevealedCardsActivity)activity).RevealedCards
                                .Select(c => new CardViewModel(c)).ToArray();
            }
        }