public void Rename(CardName name) { if (_name.Equals(name)) { return; } ApplyEvent(new CardRenamed(Id, _userId, name)); }
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)); } }