Ejemplo n.º 1
0
        public void Rename(CardName name)
        {
            if (_name.Equals(name))
            {
                return;
            }

            ApplyEvent(new CardRenamed(Id, _userId, name));
        }
Ejemplo n.º 2
0
        public static void GainCardWorthUpTo5(Game game, Player player, IPlayerView view)
        {
            CardName cardName = view.GainCardRender(5, game.CardsInPlay.FindAll(c => c.Peek().Cost <= 5));

            if (!cardName.Equals(null))
            {
                player.Gain(game.TakeCard(cardName));
            }
        }