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

Method update

code/main/Cauldron.ts:505–513  ·  view source on GitHub ↗
(firstTimeWeUpdate: boolean = false, keepInputContent: boolean = true)

Source from the content-addressed store, hash-verified

503 }
504
505 private update(firstTimeWeUpdate: boolean = false, keepInputContent: boolean = true): void{
506 // Erase everything
507 this.renderArea.resetAllButSize();
508
509 // Draw everything
510 this.drawBook(2, 0);
511 this.drawCauldron(2, 39);
512 this.drawActions(47, 34, firstTimeWeUpdate, keepInputContent);
513 }
514
515 private updateFlamesArray(): void{
516 // Create the variables

Callers 7

constructorMethod · 0.95
actionIntervalMethod · 0.95
changeActionMethod · 0.95
nextPageMethod · 0.95
previousPageMethod · 0.95
putInCauldronMethod · 0.95
putIntoBottlesMethod · 0.95

Calls 4

drawBookMethod · 0.95
drawCauldronMethod · 0.95
drawActionsMethod · 0.95
resetAllButSizeMethod · 0.80

Tested by

no test coverage detected