コード例 #1
0
ファイル: Card.cs プロジェクト: longde123/grove
        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);
        }
コード例 #2
0
ファイル: Card.cs プロジェクト: leloulight/magicgrove
        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);
        }
コード例 #3
0
ファイル: Card.cs プロジェクト: callumhutchy/grove
        public Card(CardTemplate template)
        {
            _base = new CardBase(template.CreateCardParameters());

            _strenght   = new Strenght(_base);
            _level      = new Level(_base);
            _combatCost = new CombatCost(_base);
            _counters   = new Counters(_strenght);
            _typeOfCard = new TypeOfCard(_base);
            _colors     = new ColorsOfCard(_base);

            _protections = new Protections(_base);

            _simpleAbilities    = new SimpleAbilities(_base);
            _triggeredAbilities = new TriggeredAbilities(_base);
            _activatedAbilities = new ActivatedAbilities(_base);
            _staticAbilities    = new StaticAbilities(_base);
            _castRules          = new CastRules(_base);
            _combatRules        = new CombatRules(_base);

            JoinedBattlefield = new TrackableEvent();
            LeftBattlefield   = new TrackableEvent();
        }
コード例 #4
0
ファイル: Modifier.cs プロジェクト: longde123/grove
 public virtual void Apply(Protections protections)
 {
 }
コード例 #5
0
ファイル: Modifier.cs プロジェクト: leloulight/magicgrove
 public virtual void Apply(Protections protections)
 {
 }