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

Method loadFortress

code/main/MainMap.ts:309–324  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

307 }
308
309 private loadFortress(x: number, y: number): void{
310 // Buttons
311 this.renderArea.addMultipleAsciiButtons("mapFortressButton",
312 x+1, x+3, y,
313 x+10, x+12, y,
314 x, x+4, y+1,
315 x+9, x+13, y+1,
316 x, x+13, y+2,
317 x, x+13, y+3,
318 x, x+13, y+4);
319 // Comments
320 this.renderArea.addFullComment(x + 7, y + 2, Database.getText("mapFortressComment"), Database.getTranslatedText("mapFortressComment"), "mapFortressComment");
321 // Interactions
322 this.renderArea.addLinkOver(".mapFortressButton, .mapFortressComment", ".mapFortressComment");
323 this.renderArea.addLinkCall(".mapFortressButton, .mapFortressComment", new CallbackCollection(this.goToFortress.bind(this)));
324 }
325
326 private loadLighthouse(x: number, y: number): void{
327 // Buttons

Callers 1

loadMethod · 0.95

Calls 6

addFullCommentMethod · 0.80
addLinkOverMethod · 0.80
addLinkCallMethod · 0.80
bindMethod · 0.80
getTextMethod · 0.45

Tested by

no test coverage detected