From 49a8f97db79a94b8c8e5046b6d225e173f5c02b7 Mon Sep 17 00:00:00 2001 From: Robert Chen Date: Fri, 29 Nov 2013 16:29:56 -0800 Subject: [PATCH] Moar debug --- js/model.js | 12 ++++++------ js/ui.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/js/model.js b/js/model.js index f9cd569..f3e6f8d 100644 --- a/js/model.js +++ b/js/model.js @@ -21,7 +21,7 @@ function TurkeyLayer( name, percentRadius, turkeyModel, ovenModel ){ ovenModel.globalTime ); that.waterLost = that.waterLost + UtilityFunctions.waterLoss( that.finalTemperature ); that.cookCondition = UtilityFunctions.cookCondition(that.waterLost); - //console.log( that.name + ": "+ that.waterLost + " " + that.cookCondition); + console.log( that.name + ": "+ that.waterLost + " " + that.cookCondition); }, resetLayerTemps: function(){ that.initialTemp = that.finalTemperature; @@ -118,7 +118,7 @@ function OvenModel( turkeyWeight, gameState ) { }; }, changeTemp: function(setTemp){ - //console.log("temp changed to " + setTemp); + console.log("temp changed to " + setTemp); that.setTemp = setTemp; }, secondTick: function(){ @@ -134,9 +134,9 @@ function OvenModel( turkeyWeight, gameState ) { // Turn off oven light gameState.pubsub.publish( "OvenLight", "Off" ); } - //console.log("Steady Temp " + that.steadyTemp) - //console.log("Steady Timer " + that.steadyTimer) - //console.log("Oven Temp " + that.tempInfini ) + console.log("Steady Temp " + that.steadyTemp) + console.log("Steady Timer " + that.steadyTimer) + console.log("Oven Temp " + that.tempInfini ) turkey.updateLayerTemps(); } } @@ -262,7 +262,7 @@ UtilityFunctions = { tempAtTimeAndRadius=(sum*(tempInitial-tempInfini))+tempInfini - //console.log("The Temperature at radius " + rPosition + " m and time " + t/60/60 + " hours is " + tempAtTimeAndRadius + " C or " + this.C2F(tempAtTimeAndRadius) + " F"); + console.log("The Temperature at radius " + rPosition + " m and time " + t/60/60 + " hours is " + tempAtTimeAndRadius + " C or " + this.C2F(tempAtTimeAndRadius) + " F"); return(tempAtTimeAndRadius) }, diff --git a/js/ui.js b/js/ui.js index 7b79476..9e4c5d3 100644 --- a/js/ui.js +++ b/js/ui.js @@ -361,10 +361,10 @@ function OvenUI( stage, gameState ){ panFront.alpha = 1; stage.addChild(turkeyStates[0]); - /*for(i in turkeyStates){ + for(i in turkeyStates){ stage.addChild(turkeyStates[i]); - }*/ + } stage.addChild(panFront); } // Pan front goes here