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

Method willBeDisplayed

code/main/TheHole.ts:77–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76 // willBeDisplayed()
77 public willBeDisplayed(): void{
78 // We call the mother willBeDisplayed()
79 super.willBeDisplayed();
80
81 // Register hotkeys so that they can't be used by the player's browser
82 this.getGame().addHotkey(new Hotkey("left", null));
83 this.getGame().addHotkey(new Hotkey("right", null));
84 }
85
86 // Public methods
87 public castPlayerFireball(): void{

Callers

nothing calls this directly

Calls 2

addHotkeyMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected