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

Method update

code/main/WishingWell.ts:363–383  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

361 }
362
363 private update(): void{
364 // Erase everything
365 this.renderArea.resetAllButSize();
366
367 // Back to the map button
368 this.addBackToMainMapButton(this.renderArea, "wishingWellBackToTheMapButton");
369
370 // Draw the well
371 this.renderArea.drawArray(Database.getAscii("places/wishingWell"), 38, 3);
372
373 // Draw the speech if currentSpeech isn't null
374 if(this.currentSpeech != null){
375 this.renderArea.drawSpeech(Database.getText(this.currentSpeech), 3, 75, 95, "wishingWellSpeech", Database.getTranslatedText(this.currentSpeech));
376 }
377
378 // Draw various stuff around it
379 this.drawCandiesStuff(0, 4);
380 if(this.getGame().getLollipops().getMax() >= 1) this.drawLollipopsStuff(0, 9);
381 if(this.getGame().getChocolateBars().getMax() >= 1) this.drawChocolateBarsStuff(0, 14);
382 if(this.getGame().getPainsAuChocolat().getMax() >= 1) this.drawPainsAuChocolatStuff(0, 24);
383 }
384}

Callers 9

constructorMethod · 0.95
chooseGiftMethod · 0.95
enchantMethod · 0.95
throwCandiesMethod · 0.95
throwChocolateBarMethod · 0.95
throwFirstCandyMethod · 0.95
throwFirstLollipopMethod · 0.95
throwLollipopsMethod · 0.95
throwPainAuChocolatMethod · 0.95

Calls 15

drawCandiesStuffMethod · 0.95
drawLollipopsStuffMethod · 0.95
resetAllButSizeMethod · 0.80
drawArrayMethod · 0.80
getAsciiMethod · 0.80
getMaxMethod · 0.80
getChocolateBarsMethod · 0.80
getPainsAuChocolatMethod · 0.80
drawSpeechMethod · 0.45

Tested by

no test coverage detected