Ejemplo n.º 1
0
        }                             //X
        #endregion

        #region Methods
        public static Effect CreateEffect(ActiveGame game, EffectTypes effectType, int cardId = 0, int playerId = 0, int value = 0, bool boolean = false)
        {
            Player player = game.Players.FirstOrDefault(o => o.Id == playerId);
            Card   card   = game.FindCard(cardId);

            return(new Effect()
            {
                Boolean = boolean,
                EffectType = effectType,
                TargetCard = card,
                TargetPlayer = player,
                Value = value,
            });
        }