()
| 72 | |
| 73 | // Private methods |
| 74 | private dropADemon(): void{ |
| 75 | // Create the demon |
| 76 | var demon: Demon = new Demon(this.getQuest(), this.getGlobalPosition().plus(new Pos(8, 8))); |
| 77 | |
| 78 | // Set the health bar |
| 79 | demon.setHealthBar(new QuestEntityHealthBar(demon, new Pos(6, 1))); |
| 80 | |
| 81 | // Add the demon |
| 82 | this.getQuest().addEntity(demon); |
| 83 | } |
| 84 | |
| 85 | private handleDropADemon(): void{ |
| 86 | // If it's time to add one |
no test coverage detected