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

Method addJellyFish

code/main/TheSea.ts:79–85  ·  view source on GitHub ↗
(pos: Pos)

Source from the content-addressed store, hash-verified

77 }
78
79 public addJellyFish(pos: Pos): JellyFish{
80 var jellyFish: JellyFish = new JellyFish(this, pos);
81 jellyFish.setHealthBar(new QuestEntityHealthBar(jellyFish, new Pos(6, 1), new Pos(0, 0)));
82 if(this.addEntity(jellyFish)) // If we manage to add the entity
83 return jellyFish; // We return it
84 return null; // Else, we return null
85 }
86
87 public addMediumFish(pos: Pos): MediumFish{
88 var mediumFish: MediumFish = new MediumFish(this, pos);

Callers 1

runMethod · 0.80

Calls 2

setHealthBarMethod · 0.80
addEntityMethod · 0.80

Tested by

no test coverage detected