コード例 #1
0
ファイル: AddCounters.cs プロジェクト: longde123/grove
        public override void Apply(Counters counters)
        {
            _counters = counters;

            for (var i = 0; i < _count.GetValue(X); i++)
            {
                var counter = _counterFactory().Initialize(Game);
                counters.Add(counter);

                _addedCounters.Add(counter);
            }
        }
コード例 #2
0
ファイル: ChangeToCreature.cs プロジェクト: longde123/grove
 public ChangeToCreature(Value power, Value toughness, string type, IEnumerable <CardColor> colors = null) : this(
         m => power.GetValue(m.X), m => toughness.GetValue(m.X), m => type, colors)
 {
 }
コード例 #3
0
 public ChangeToCreature(Value power, Value toughness, Func <CardType, CardType> type, IEnumerable <CardColor> colors = null) : this(
         m => power.GetValue(m.X), m => toughness.GetValue(m.X), m => type(m.OwningCard.Type), colors)
 {
 }
コード例 #4
0
 public ChangeToCreature(Value power, Value toughness, string type, IEnumerable<CardColor> colors = null)
     : this(m => power.GetValue(m.X), m => toughness.GetValue(m.X), m => type, colors)
 {
 }