public override double GetCost()
 {
     return Pizza.GetCost() + 200.0;
 }
Exemple #2
0
 public MolhoExtra(Pizza pizzaParaAcrescentarCobetura)
     : base(pizzaParaAcrescentarCobetura)
 {
     preco = 8;
 }
Exemple #3
0
 public QueijoExtra(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura)
 {
     preco = 5;
 }
 public Mozzarella(Pizza newPizza) : base(newPizza)
 {
     Console.WriteLine("Adding Dough");
     Console.WriteLine("Adding Mozzerella");
 }
Exemple #5
0
 public Cebola(Pizza pizzaParaAcrescentarCobetura)
     : base(pizzaParaAcrescentarCobetura)
 {
     preco = 10;
 }
Exemple #6
0
 public Tomate(Pizza pizzaParaAcrescentarCobetura)
     : base(pizzaParaAcrescentarCobetura)
 {
     preco = 12;
 }
Exemple #7
0
 public BaconPizzaDecorator(Pizza pizza) : base(pizza)
 {
 }
Exemple #8
0
 public ExtraCheeseTopping(Pizza pizzaToDecorate)
     : base(pizzaToDecorate)
 {
     this.price = 0.99;
 }
Exemple #9
0
 public override double GetCost()
 {
     return(Pizza.GetCost() + 150.0);
 }
Exemple #10
0
 protected PizzaDecorator(Pizza pizza)
 {
     decorated = pizza;
 }
Exemple #11
0
 public override string GetDescription()
 {
     return(Pizza.GetDescription() + ", Cheese");
 }
Exemple #12
0
 public JalapenoTopping(Pizza pizzaToDecorate)
     : base(pizzaToDecorate)
 {
     this.price = 1.49;
 }
Exemple #13
0
 public MushroomTopping(Pizza pizzaToDecorate)
     : base(pizzaToDecorate)
 {
     this.price = 1.49;
 }
Exemple #14
0
 public Tomate(Pizza pizzaParaAcrescentarCobetura)
     : base(pizzaParaAcrescentarCobetura)
 {
     preco = 12;
 }
Exemple #15
0
 public CheesePizzaDecorator(Pizza pizza) : base(pizza)
 {
 }
Exemple #16
0
 public Cebola(Pizza pizzaParaAcrescentarCobetura)
     : base(pizzaParaAcrescentarCobetura)
 {
     preco = 10;
 }
 public ChickenPizzaDecorator(Pizza pizza) : base(pizza)
 {
 }
Exemple #18
0
 public MolhoExtra(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura)
 {
     preco = 8;
 }
Exemple #19
0
 public TomatoPizza(Pizza pizza) : base(pizza.Name + " with tomatos", pizza)
 {
 }
Exemple #20
0
 public Aliche(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura)
 {
     preco = 30;
 }
Exemple #21
0
 public CheesPizza(Pizza pizza) : base(pizza.Name + " with chees", pizza)
 {
 }
Exemple #22
0
 public Ingrediente(Pizza pizzaParaAcrescentarCobetura)
 {
     pizza = pizzaParaAcrescentarCobetura;
 }
Exemple #23
0
 protected PizzaDecorator(string name, Pizza pizza) : base(name)
 {
     this.pizza = pizza;
 }
Exemple #24
0
 public CheesePizza(Pizza p) : base(p.Name + ", с сыром", p)
 {
 }
Exemple #25
0
 public CheesePizza(Pizza pizza) : base(pizza.Name + ", with cheese", pizza)
 {
 }
 public override string GetDescription()
 {
     return Pizza.GetDescription() + ", Ham";
 }
Exemple #27
0
 public PizzaDecorator(string n, Pizza pizza) : base(n)
 {
     this.pizza = pizza;
 }
 public Pimenta(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura)
 {
     preco = 1;
 }
Exemple #29
0
 public TomatoPizza(Pizza p)
     : base(p.Name + ", с томатами", p)
 {
 }
Exemple #30
0
 public QueijoExtra(Pizza pizzaParaAcrescentarCobetura)
     : base(pizzaParaAcrescentarCobetura)
 {
     preco = 5;
 }
Exemple #31
0
 public TomatoSauce(Pizza newPizza) : base(newPizza)
 {
     Console.WriteLine("Adding Sauce");
 }
Exemple #32
0
 public Aliche(Pizza pizzaParaAcrescentarCobetura)
     : base(pizzaParaAcrescentarCobetura)
 {
     preco = 30;
 }
Exemple #33
0
 public Pimenta(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura)
 {
     preco = 1;
 }
Exemple #34
0
 public Ingrediente(Pizza pizzaParaAcrescentarCobetura)
 {
     pizza = pizzaParaAcrescentarCobetura;
 }
Exemple #35
0
 public ToppingsDecorator(Pizza pizzaToDecorate)
 {
     this.pizza = pizzaToDecorate;
 }