Ejemplo n.º 1
0
        private static IEnumerable <Character> ValidSpellTargets(SpellCard card, GameState gameState, Player player)
        {
            var applier = card.EffectAppliers.OfType <Targetable>().FirstOrDefault();

            return(applier == null?
                   Enumerable.Empty <Character>() : applier.GetValidTargets(gameState, player));
        }
Ejemplo n.º 2
0
 public CastSpellTargetless(Player owner, SpellCard card)
     : base(owner, card)
 {
 }
Ejemplo n.º 3
0
 public CastSpellTargetable(Player owner, SpellCard card, Character target)
     : base(owner, card)
 {
     Target = target;
 }
Ejemplo n.º 4
0
 protected CastSpell(Player owner, SpellCard card)
     : base(owner)
 {
     Card = card;
 }