(win: boolean)
| 55 | } |
| 56 | |
| 57 | public endQuest(win: boolean): void{ |
| 58 | // We add some messages |
| 59 | if(win){ |
| 60 | this.getGame().getQuestLog().addMessage(new QuestLogMessage("You managed to beat me. Congratulations :)")); |
| 61 | } |
| 62 | else{ |
| 63 | this.getGame().getQuestLog().addMessage(new QuestLogMessage("You died fighting the developer. Eh, he made this game after all!")); |
| 64 | } |
| 65 | |
| 66 | // We call the endQuest method of our mother class |
| 67 | super.endQuest(win); |
| 68 | } |
| 69 | |
| 70 | public update(): void{ |
| 71 | if(this.getQuestEnded() == false){ |
no test coverage detected