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