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

Method update

code/main/InsideFortress.ts:125–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 private update(): void{
126 // Erase everything
127 this.renderArea.resetAllButSize();
128
129 // Back to the map button
130 this.addBackToMainMapButton(this.renderArea, "insideFortressBackToTheMapButton");
131
132 // Draw the ascii
133 this.renderArea.drawArray(Database.getAscii("places/fortress/inside"), 0, 3);
134
135 // Add the text
136 this.renderArea.drawString(Database.getText("fortressInsideText0"), 22, 29);
137 this.renderArea.drawString(Database.getText("fortressInsideText1"), 22, 30);
138 this.renderArea.drawString(Database.getText("fortressInsideText2"), 22, 31);
139
140 // Add the translated text
141 this.renderArea.drawString(Database.getTranslatedText("fortressInsideText0"), 22, 33, true);
142 this.renderArea.drawString(Database.getTranslatedText("fortressInsideText1"), 22, 34, true);
143 this.renderArea.drawString(Database.getTranslatedText("fortressInsideText2"), 22, 35, true);
144
145 // Add the doors buttons
146 this.addFirstDoorButton(8, 10);
147 this.addSecondDoorButton(42, 8);
148 this.addThirdDoorButton(78, 10);
149 }
150}

Callers 1

constructorMethod · 0.95

Calls 9

addFirstDoorButtonMethod · 0.95
addSecondDoorButtonMethod · 0.95
addThirdDoorButtonMethod · 0.95
resetAllButSizeMethod · 0.80
drawArrayMethod · 0.80
getAsciiMethod · 0.80
drawStringMethod · 0.80
getTextMethod · 0.45

Tested by

no test coverage detected