()
| 22 | |
| 23 | // willBeDisplayed() |
| 24 | public willBeDisplayed(): void{ |
| 25 | // We check right now |
| 26 | this.checkCandies(); |
| 27 | |
| 28 | // And we add the callback |
| 29 | this.getGame().getCandies().getCallbackCollection().addCallback(this.checkCandies.bind(this)); |
| 30 | |
| 31 | // We add hotkeys |
| 32 | this.getGame().addHotkey(new Hotkey("e", new CallbackCollection(this.clickedEatCandiesButton.bind(this)))); |
| 33 | this.getGame().addHotkey(new Hotkey("t", new CallbackCollection(this.clickedThrowCandiesButton.bind(this)))); |
| 34 | } |
| 35 | |
| 36 | // Public methods |
| 37 | public update(): void{ |
nothing calls this directly
no test coverage detected