public override double GetCost() { return Pizza.GetCost() + 200.0; }
public MolhoExtra(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura) { preco = 8; }
public QueijoExtra(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura) { preco = 5; }
public Mozzarella(Pizza newPizza) : base(newPizza) { Console.WriteLine("Adding Dough"); Console.WriteLine("Adding Mozzerella"); }
public Cebola(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura) { preco = 10; }
public Tomate(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura) { preco = 12; }
public BaconPizzaDecorator(Pizza pizza) : base(pizza) { }
public ExtraCheeseTopping(Pizza pizzaToDecorate) : base(pizzaToDecorate) { this.price = 0.99; }
public override double GetCost() { return(Pizza.GetCost() + 150.0); }
protected PizzaDecorator(Pizza pizza) { decorated = pizza; }
public override string GetDescription() { return(Pizza.GetDescription() + ", Cheese"); }
public JalapenoTopping(Pizza pizzaToDecorate) : base(pizzaToDecorate) { this.price = 1.49; }
public MushroomTopping(Pizza pizzaToDecorate) : base(pizzaToDecorate) { this.price = 1.49; }
public CheesePizzaDecorator(Pizza pizza) : base(pizza) { }
public ChickenPizzaDecorator(Pizza pizza) : base(pizza) { }
public TomatoPizza(Pizza pizza) : base(pizza.Name + " with tomatos", pizza) { }
public Aliche(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura) { preco = 30; }
public CheesPizza(Pizza pizza) : base(pizza.Name + " with chees", pizza) { }
public Ingrediente(Pizza pizzaParaAcrescentarCobetura) { pizza = pizzaParaAcrescentarCobetura; }
protected PizzaDecorator(string name, Pizza pizza) : base(name) { this.pizza = pizza; }
public CheesePizza(Pizza p) : base(p.Name + ", с сыром", p) { }
public CheesePizza(Pizza pizza) : base(pizza.Name + ", with cheese", pizza) { }
public override string GetDescription() { return Pizza.GetDescription() + ", Ham"; }
public PizzaDecorator(string n, Pizza pizza) : base(n) { this.pizza = pizza; }
public Pimenta(Pizza pizzaParaAcrescentarCobetura) : base(pizzaParaAcrescentarCobetura) { preco = 1; }
public TomatoPizza(Pizza p) : base(p.Name + ", с томатами", p) { }
public TomatoSauce(Pizza newPizza) : base(newPizza) { Console.WriteLine("Adding Sauce"); }
public ToppingsDecorator(Pizza pizzaToDecorate) { this.pizza = pizzaToDecorate; }