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

Method update

code/main/Pier.ts:40–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 private update(): void{
41 // Erase everything
42 this.renderArea.resetAllButSize();
43
44 // Back to the map button
45 this.addBackToMainMapButton(this.renderArea, "thePierBackToTheMapButton");
46
47 // Draw the pier
48 this.renderArea.drawArray(Database.getAscii("places/pier"), 0, 3);
49
50 // Add the button to go to the lighthouse
51 this.addLighthouseButton(3, 27);
52
53 // Add the button to jump into the sea
54 this.addTheSeaButton(52, 9);
55 }
56}

Callers 1

constructorMethod · 0.95

Calls 6

addLighthouseButtonMethod · 0.95
addTheSeaButtonMethod · 0.95
resetAllButSizeMethod · 0.80
drawArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected