Fix: wait and serve meats by waiter

This commit is contained in:
2019-12-11 11:32:17 +09:00
parent c7fb4aca9b
commit 37ba3a2eeb
4 changed files with 49 additions and 33 deletions
+18 -6
View File
@@ -34,15 +34,10 @@ MeatBase.prototype.update = function() {
MeatBase.prototype.initMeatTypeVariables = function() {
this.cookingSpeed = 0.0;
this.className = "MeatBase";
this.baseScale = 0.5;
this.className = "MeatBase";
}
MeatBase.prototype.initMeatTypeVariables = function() {
this.cookingSide = MeatBase.MEAT_NONE;
this.cookingTime = [];
this.cookingGrade = [];
@@ -60,6 +55,23 @@ MeatBase.prototype.initMeatTypeVariables = function() {
this.spriteNameRare = "";
this.spriteNameWelldone = "";
this.spriteNameBurnBlack = "";
this.initCookingSpeedArray();
this.initScoreArray();
}
MeatBase.prototype.initCookingSpeedArray = function() {
this.cookingSpeedArray = [];
this.cookingSpeedArray[HeatPlate.BURN_LEVEL_WEAK] = 1;
this.cookingSpeedArray[HeatPlate.BURN_LEVEL_NORMAL] = 2;
this.cookingSpeedArray[HeatPlate.BURN_LEVEL_STRONG] = 3;
}
MeatBase.prototype.initScoreArray = function() {
this.scoreArray = [];
this.scoreArray[MeatBase.DONENESS_RARE] = 0;
this.scoreArray[MeatBase.DONENESS_WELLDONE] = 0;
this.scoreArray[MeatBase.DONENESS_BURN_BLACK] = 0;
}
MeatBase.prototype.initMouseEventHandler = function() {