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

Method update

code/main/CastleTower.ts:148–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146 }
147
148 private update(): void{
149 // Erase everything
150 this.renderArea.resetAllButSize();
151
152 // Back to the map button
153 this.addBackToTheCastleButton(this.renderArea, "castleTowerBackToTheCastleButton");
154
155 // Draw the background
156 this.drawBackground();
157
158 // Draw the stones related stuff
159 this.drawStones();
160
161 // Draw the talking candy related stuff
162 this.drawTalkingCandy();
163 }
164}

Callers 4

constructorMethod · 0.95
actionIntervalMethod · 0.95
clickedOnStoneMethod · 0.95
takeTalkingCandyMethod · 0.95

Calls 5

drawBackgroundMethod · 0.95
drawStonesMethod · 0.95
drawTalkingCandyMethod · 0.95
resetAllButSizeMethod · 0.80

Tested by

no test coverage detected