Skip to content

Commit 60ebc79

Browse files
committed
Added missing files
1 parent 227a086 commit 60ebc79

8 files changed

+79
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var ChicagoStyleClamPizza = function(){
2+
Pizza.apply(this);
3+
this.sName = 'Chicago Style Deep Dish Cheese Pizza';
4+
this.sDough = 'Extra Thin Crust Dough';
5+
this.sSauce = 'Plum Tomato Sauce';
6+
this.aToppings = ["Shredded Mozzarella Cheese"];
7+
};
8+
ChicagoStyleClamPizza.prototype = new Pizza();
9+
ChicagoStyleClamPizza.prototype.cut = function(){
10+
console.log("Cutting the pizza into square slices.");
11+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var ChicagoStylePepperoniPizza = function(){
2+
Pizza.apply(this);
3+
this.sName = 'Chicago Style Deep Dish Cheese Pizza';
4+
this.sDough = 'Extra Thin Crust Dough';
5+
this.sSauce = 'Plum Tomato Sauce';
6+
this.aToppings = ["Shredded Mozzarella Cheese"];
7+
};
8+
ChicagoStylePepperoniPizza.prototype = new Pizza();
9+
ChicagoStylePepperoniPizza.prototype.cut = function(){
10+
console.log("Cutting the pizza into square slices.");
11+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var ChicagoStyleVeggiePizza = function(){
2+
Pizza.apply(this);
3+
this.sName = 'Chicago Style Deep Dish Cheese Pizza';
4+
this.sDough = 'Extra Thin Crust Dough';
5+
this.sSauce = 'Plum Tomato Sauce';
6+
this.aToppings = ["Shredded Mozzarella Cheese"];
7+
};
8+
ChicagoStyleVeggiePizza.prototype = new Pizza();
9+
ChicagoStyleVeggiePizza.prototype.cut = function(){
10+
console.log("Cutting the pizza into square slices.");
11+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var NyStyleClamPizza = function(){
2+
Pizza.apply(this);
3+
this.sName = 'NY Style Sauce and Cheese Pizza';
4+
this.sDough = 'Thin Crust Dough';
5+
this.sSauce = 'Marinara sauce';
6+
this.aToppings = ["Grated Reggiano Cheese"];
7+
};
8+
NyStyleClamPizza.prototype = new Pizza();
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var NyStylePepperoniPizza = function(){
2+
Pizza.apply(this);
3+
this.sName = 'NY Style Sauce and Cheese Pizza';
4+
this.sDough = 'Thin Crust Dough';
5+
this.sSauce = 'Marinara sauce';
6+
this.aToppings = ["Grated Reggiano Cheese"];
7+
};
8+
NyStylePepperoniPizza.prototype = new Pizza();
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var NyStyleVeggiePizza = function(){
2+
Pizza.apply(this);
3+
this.sName = 'NY Style Sauce and Cheese Pizza';
4+
this.sDough = 'Thin Crust Dough';
5+
this.sSauce = 'Marinara sauce';
6+
this.aToppings = ["Grated Reggiano Cheese"];
7+
};
8+
NyStyleVeggiePizza.prototype = new Pizza();

Factory/2/pizzas/PepperoniPizza.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var PepperoniPizza = function(oIngredientFactory){
2+
Pizza.apply(this);
3+
this.oIngredientFactory = oIngredientFactory;
4+
};
5+
PepperoniPizza.prototype = new Pizza();
6+
PepperoniPizza.prototype.prepare = function(){
7+
console.log("Preparing " + this.sName);
8+
this.oDough = this.oIngredientFactory.createDough();
9+
this.oSauce = this.oIngredientFactory.createSauce();
10+
this.oCheese = this.oIngredientFactory.createCheese();
11+
};

Factory/2/pizzas/VeggiePizza.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var VeggiePizza = function(oIngredientFactory){
2+
Pizza.apply(this);
3+
this.oIngredientFactory = oIngredientFactory;
4+
};
5+
VeggiePizza.prototype = new Pizza();
6+
VeggiePizza.prototype.prepare = function(){
7+
console.log("Preparing " + this.sName);
8+
this.oDough = this.oIngredientFactory.createDough();
9+
this.oSauce = this.oIngredientFactory.createSauce();
10+
this.oCheese = this.oIngredientFactory.createCheese();
11+
};

0 commit comments

Comments
 (0)