(xPosition: number = 294)
| 110 | } |
| 111 | |
| 112 | private addTreeSpirit(xPosition: number = 294): boolean{ // By default the wolf will be added at the end of the forest |
| 113 | var treeSpirit: QuestEntity = new TreeSpirit(this, new Pos(xPosition, this.groundYPosition-4), this.groundYPosition); |
| 114 | treeSpirit.setHealthBar(new QuestEntityHealthBar(treeSpirit, new Pos(5, 1))); |
| 115 | return this.addEntity(treeSpirit); |
| 116 | } |
| 117 | |
| 118 | private addWolf(xPosition: number = 294): boolean{ // By default the wolf will be added at the end of the forest |
| 119 | var wolf: QuestEntity = new Wolf(this, new Pos(xPosition, this.groundYPosition-2)); |
no test coverage detected