()
| 514 | } |
| 515 | |
| 516 | public drawEntities(): void{ |
| 517 | for(var i = 0; i < this.entities.length; i++){ |
| 518 | // Let the entity draw itself |
| 519 | this.entities[i].draw(this.renderArea); |
| 520 | // Should we draw a health bar ? |
| 521 | if(this.entities[i].getHealthBar() != null) |
| 522 | this.entities[i].getHealthBar().draw(this.renderArea); |
| 523 | } |
| 524 | } |
| 525 | |
| 526 | public endQuest(win: boolean): void{ |
| 527 | // If the player won the quest |