(entity: QuestEntity)
| 96 | } |
| 97 | |
| 98 | public addEntity(entity: QuestEntity): boolean{ |
| 99 | // Add the entity |
| 100 | this.entities.push(entity); |
| 101 | |
| 102 | // If it collides, remove it and return false (+ BUGS) |
| 103 | if(this.entities[this.entities.length-1].checkCollision() && Bugs.getQuestBugLevel() < 4){ |
| 104 | this.entities.splice(this.entities.length-1, 1); |
| 105 | return false; |
| 106 | } |
| 107 | |
| 108 | // Else, successfully added, we return true |
| 109 | return true; |
| 110 | } |
| 111 | |
| 112 | public addExitQuestButton(callbackCollection: CallbackCollection, buttonText: string): void{ |
| 113 | this.addBackToButton(this.renderArea, |
no test coverage detected