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

Method willBeDisplayed

code/main/Cauldron.ts:54–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53 // willBeDisplayed()
54 public willBeDisplayed(): void{
55 // We add hotkeys
56 this.getGame().addHotkey(new Hotkey("a", new CallbackCollection(this.putInCauldron.bind(this))));
57 this.getGame().addHotkey(new Hotkey("m", new CallbackCollection(this.changeAction.bind(this, CauldronAction.MIXING))));
58 this.getGame().addHotkey(new Hotkey("b", new CallbackCollection(this.changeAction.bind(this, CauldronAction.BOILING))));
59 this.getGame().addHotkey(new Hotkey("s", new CallbackCollection(this.changeAction.bind(this, CauldronAction.NOTHING))));
60 this.getGame().addHotkey(new Hotkey("p", new CallbackCollection(this.putIntoBottles.bind(this))));
61 this.getGame().addHotkey(new Hotkey("left", new CallbackCollection(this.previousPage.bind(this))));
62 this.getGame().addHotkey(new Hotkey("right", new CallbackCollection(this.nextPage.bind(this))));
63 }
64
65 // willStopBeingDisplayed()
66 public willStopBeingDisplayed(): void{

Callers

nothing calls this directly

Calls 3

addHotkeyMethod · 0.80
bindMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected