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

Method willBeDisplayed

code/main/TheSea.ts:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60 // willBeDisplayed()
61 public willBeDisplayed(): void{
62 // We call the mother willBeDisplayed()
63 super.willBeDisplayed();
64
65 // Register hotkeys so that they can't be used by the player's browser
66 this.getGame().addHotkey(new Hotkey("up", null));
67 this.getGame().addHotkey(new Hotkey("down", null));
68 }
69
70 // Public methods
71 public addBigShark(pos: Pos): BigShark{

Callers

nothing calls this directly

Calls 2

addHotkeyMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected