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

Method endQuest

code/main/CastleRoom1.ts:41–49  ·  view source on GitHub ↗
(win: boolean)

Source from the content-addressed store, hash-verified

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){

Callers 1

updateMethod · 0.95

Calls 3

addMessageMethod · 0.80
getQuestLogMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected