MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / actionInterval

Method actionInterval

code/main/Cauldron.ts:71–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70 // Private methods
71 private actionInterval(): void{
72 // Increase the time
73 this.timerTime += 1;
74
75 // If we're boiling, update the flames array
76 if(this.currentAction == CauldronAction.BOILING){
77 this.updateFlamesArray();
78 }
79
80 // If we're not doing nothing, update
81 if(this.currentAction != CauldronAction.NOTHING){
82 this.update();
83 this.getGame().updatePlace();
84 }
85 }
86
87 private changeAction(newAction: CauldronAction): void{
88 // If we're not already doing that

Callers

nothing calls this directly

Calls 4

updateFlamesArrayMethod · 0.95
updateMethod · 0.95
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected