Exemplo n.º 1
0
 private string ChooseCategory(ComponentCardType cctype)
 {
     if (ElectronCat)
     {
         cctype = new ElectronCardType(cctype);
     }
     else if (ClassicCat)
     {
         cctype = new ClassicCardType(cctype);
     }
     else if (GoldCat)
     {
         cctype = new GoldCardType(cctype);
     }
     else
     {
         cctype = new PlatinumCardType(cctype);
     }
     return(CardType = cctype.GetInfo());
 }
 public ElectronCardType(ComponentCardType comp)
     : base(comp.Name + " Electron", 0, comp)
 {
 }
Exemplo n.º 3
0
 public CardDecorator(string name, int minamount, ComponentCardType comp) : base(name, minamount)
 {
     this.comp = comp;
 }
 public PlatinumCardType(ComponentCardType comp)
     : base(comp.Name + " Platinum", 2000, comp)
 {
 }
Exemplo n.º 5
0
 public ClassicCardType(ComponentCardType comp)
     : base(comp.Name + " Classic", 200, comp)
 {
 }
Exemplo n.º 6
0
 public GoldCardType(ComponentCardType comp)
     : base(comp.Name + " Gold", 700, comp)
 {
 }