Exemplo n.º 1
0
        public Card(CardParameters p)
        {
            Name = p.Name;
              ManaCost = p.ManaCost;
              OverrideScore = p.OverrideScore;
              Text = p.Text;
              FlavorText = p.FlavorText;
              Illustration = p.Illustration;
              MayChooseNotToUntap = p.MayChooseToUntap;
              MinimalBlockerCount = p.MinimalBlockerCount;
              ProducableManaColors = p.ManaColorsThisCardCanProduce;

              _strenght = new Strenght(p.Power, p.Toughness);
              _level = new Level(p.IsLeveler ? 0 : (int?) null);
              _counters = new Counters(_strenght);
              _type = new CardTypeCharacteristic(p.Type);
              _colors = new CardColors(p.Colors);

              _protections = new Protections(p.ProtectionsFromColors, p.ProtectionsFromTypes);

              _simpleAbilities = new SimpleAbilities(p.SimpleAbilities);
              _triggeredAbilities = new TriggeredAbilities(p.TriggeredAbilities);
              _activatedAbilities = new ActivatedAbilities(p.ActivatedAbilities);
              _staticAbilities = new StaticAbilities(p.StaticAbilities);
              _castRules = new CastRules(p.CastInstructions);
              _combatRules = new CombatRules(p.CombatRules);
              _continuousEffects = new ContiniousEffects(p.ContinuousEffects);

              JoinedBattlefield = new TrackableEvent(this);
              LeftBattlefield = new TrackableEvent(this);
        }
Exemplo n.º 2
0
 public override void Apply(CardTypeCharacteristic cardType)
 {
     _cardType   = cardType;
     _typeSetter = new CardTypeSetter(_type(this));
     _typeSetter.Initialize(ChangeTracker);
     _cardType.AddModifier(_typeSetter);
 }
Exemplo n.º 3
0
 public override void Apply(CardTypeCharacteristic cardType)
 {
     _cardType = cardType;
       _typeSetter = new CardTypeSetter("Enchantment");
       _typeSetter.Initialize(ChangeTracker);
       _cardType.AddModifier(_typeSetter);
 }
Exemplo n.º 4
0
        public override void Apply(CardTypeCharacteristic cardType)
        {
            _cardType = cardType;
              _isBasicLand = cardType.Value.BasicLand;

              var type = _cardType.Value.ReplaceBasicLandTypeWith(_changeTo);

              _typeSetter = new CardTypeSetter(type);
              _typeSetter.Initialize(ChangeTracker);

              _cardType.AddModifier(_typeSetter);
        }
Exemplo n.º 5
0
        public override void Apply(CardTypeCharacteristic cardType)
        {
            _cardType    = cardType;
            _isBasicLand = cardType.Value.BasicLand;

            var type = _cardType.Value.ReplaceBasicLandTypeWith(_changeTo);

            _typeSetter = new CardTypeSetter(type);
            _typeSetter.Initialize(ChangeTracker);

            _cardType.AddModifier(_typeSetter);
        }
Exemplo n.º 6
0
 public virtual void Apply(CardTypeCharacteristic cardType)
 {
 }