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

Method addTreeSpirit

code/main/Forest.ts:112–116  ·  view source on GitHub ↗
(xPosition: number = 294)

Source from the content-addressed store, hash-verified

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

Callers 1

monstersHandlingMethod · 0.95

Calls 2

setHealthBarMethod · 0.80
addEntityMethod · 0.80

Tested by

no test coverage detected