private CardPlayWay(String name, Place from, Place to, ManaCost cost, List <TurnPhase> when) { this.name = name; this.from = from; this.to = to; this.cost = cost; this.ableTurnPhase = when; }
/// <summary> /// is free /// </summary> /// <returns></returns> public static CardPlayWay LandDrop() { return(new CardPlayWay( "Land Drop", Place.hand, Place.battleground, ManaCost.None(), new List <TurnPhase>() { TurnPhase.mainFirst, TurnPhase.mainSecond })); }
public static void DrawManaCostAtCardHeader(MPoint where, ManaCost mc) { int offset = 0; if (mc.Any != 0 || mc.ConvertedManaCost == 0) { MDrawHandler.DrawStringInPoint(where.AddX(offset), anyManaColor, mc.Any.ToString()); offset += mc.Any.ToString().Length; } MDrawHandler.DrawStringInPoint(where.AddX(offset), whiteManaColor, "".PadLeft(mc.White, whiteColorManaSymbol)); offset += mc.White; MDrawHandler.DrawStringInPoint(where.AddX(offset), blueManaColor, "".PadLeft(mc.Blue, blueColorManaSymbol)); offset += mc.Blue; MDrawHandler.DrawStringInPoint(where.AddX(offset), blackManaColor, "".PadLeft(mc.Black, blackColorManaSymbol)); offset += mc.Black; MDrawHandler.DrawStringInPoint(where.AddX(offset), redManaColor, "".PadLeft(mc.Red, redColorManaSymbol)); offset += mc.Red; MDrawHandler.DrawStringInPoint(where.AddX(offset), greenManaColor, "".PadLeft(mc.Green, greenColorManaSymbol)); offset += mc.Green; }
public ManaCostHandler(ManaCost mana) { this.mana = mana; }