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

Method willBeDisplayed

code/main/Quest.ts:685–694  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

683 }
684
685 public willBeDisplayed(): void{
686 // Some some stuff needed because we start questing
687 this.getGame().setWeAreQuesting(true);
688 this.getGame().getQuestCallbackCollection().addCallback(this.update.bind(this));
689
690 // Add some hotkeys
691 for(var i = 0; i < this.playerSpellsHotkeys.length; i++){
692 this.getGame().addHotkey(this.playerSpellsHotkeys[i]);
693 }
694 }
695
696 public willBeClosed(): void{
697 this.getGame().setWeAreQuesting(false);

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected