Example #1
0
 public PermanentCountManaOutput(ManaColor color, Func <Card, bool> filter,
                                 ControlledBy controlledBy = ControlledBy.SpellOwner)
 {
     _color        = color;
     _filter       = filter;
     _controlledBy = controlledBy;
 }
Example #2
0
 public ManaUnit(ManaColor color, int rank, IManaSource source = null, ManaUsage usageRestriction = ManaUsage.Any)
 {
     Color             = color;
     Rank              = rank;
     Source            = source;
     _usageRestriction = usageRestriction;
 }
Example #3
0
 public ConvokeManaSource(Card card, int rank = 100)
 {
     OwningCard = card;
     _units     = new[]
     {
         new ManaUnit(ManaColor.FromCardColors(card.Colors), rank: rank, source: this)
     };
 }
Example #4
0
 private ManaUnit CreateManaUnit(ManaColor color)
 {
     return(new ManaUnit(
                color,
                _p.Priority,
                this,
                _p.UsageRestriction));
 }
Example #5
0
 public void ManaAmount(ManaColor color, Func <Card, bool> filter,
                        ControlledBy controlledBy = ControlledBy.SpellOwner)
 {
     ManaOutput = new PermanentCountManaOutput(color, filter, controlledBy);
     Colors     = color.Indices;
 }
Example #6
0
 public SingleColorManaAmount(ManaColor color, int count)
 {
     Color = color;
     Count = count;
 }