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

Method addWolf

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

Source from the content-addressed store, hash-verified

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));
120 wolf.setHealthBar(new QuestEntityHealthBar(wolf, new Pos(7, 1)));
121 return this.addEntity(wolf);
122 }
123
124 private monstersHandling(): void{
125 // If it's time to add a tree spirit

Callers 2

constructorMethod · 0.95
monstersHandlingMethod · 0.95

Calls 2

setHealthBarMethod · 0.80
addEntityMethod · 0.80

Tested by

no test coverage detected