Exemple #1
0
        public CardTemplate ContinuousEffect(Action <ContinuousEffectParameters> set)
        {
            _init.Add(cp =>
            {
                var p = new StaticAbilityParameters {
                    EnabledInAllZones = false
                };
                p.Modifier(() =>
                {
                    var cep = new ContinuousEffectParameters();
                    set(cep);

                    var effect = new ContinuousEffect(cep);

                    return(new AddContiniousEffect(effect));
                });
                cp.StaticAbilities.Add(new StaticAbility(p));
            });
            return(this);
        }
Exemple #2
0
 public void Add(ContinuousEffect effect)
 {
     _continiousEffects.Add(effect);
 }
Exemple #3
0
 public void Remove(ContinuousEffect effect)
 {
     _continiousEffects.Remove(effect);
     effect.Deactivate();
 }
Exemple #4
0
 public Context(ContinuousEffect effect, Game game)
 {
     _effect = effect;
     _game   = game;
 }