(win: boolean)
| 39 | } |
| 40 | |
| 41 | public endQuest(win: boolean): void{ |
| 42 | // We add some messages |
| 43 | if(win){ |
| 44 | this.getGame().getQuestLog().addMessage(new QuestLogMessage("You exit the room.")); |
| 45 | } |
| 46 | |
| 47 | // We call the endQuest method of our mother class |
| 48 | super.endQuest(win); |
| 49 | } |
| 50 | |
| 51 | public update(): void{ |
| 52 | if(this.getQuestEnded() == false){ |
no test coverage detected