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

Method willBeDisplayed

code/main/ThirdHouse.ts:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23 // willBeDisplayed()
24 public willBeDisplayed(): void{
25 this.getGame().getQuestCallbackCollection().addCallback(this.runGame.bind(this));
26
27 // Add some hotkeys
28 this.getGame().addHotkey(new Hotkey("up", new CallbackCollection(this.pressedUpButton.bind(this))));
29 this.getGame().addHotkey(new Hotkey("down", new CallbackCollection(this.pressedDownButton.bind(this))));
30 this.getGame().addHotkey(new Hotkey("space", new CallbackCollection(this.pressedSpaceButton.bind(this))));
31 }
32
33
34 // Private methods

Callers

nothing calls this directly

Calls 5

addCallbackMethod · 0.80
bindMethod · 0.80
addHotkeyMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected