Exemplo n.º 1
0
        public override void RemoveCards(PlayerViewModel viewModel, RemoveCardsCommand arg)
        {
            base.RemoveCards(viewModel, arg);
            foreach (CardInfo ci in arg.CardInfos)
            {
                CardViewModel card = viewModel.HandCards.FirstOrDefault(cardVM => CardInfo.ValueEqual(cardVM.Info, ci));
                viewModel.HandCards.Remove(card);
            }

            viewModel.ExecuteReorder();
        }
Exemplo n.º 2
0
 public virtual void RemoveCards(PlayerViewModel viewModel, RemoveCardsCommand arg)
 {
 }
Exemplo n.º 3
0
 public virtual void ExecuteRemoveCards(RemoveCardsCommand command)
 {
     command.Sender = Player;
     Player.RemoveCards.OnNext(command);
 }
Exemplo n.º 4
0
 public virtual void RemoveCardsHandler(RemoveCardsCommand command)
 {
     this.RemoveCards(command.Sender as PlayerViewModel, command);
 }