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

Method addSmallestFish

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

Source from the content-addressed store, hash-verified

116 }
117
118 public addSmallestFish(pos: Pos): SmallestFish{
119 var smallestFish: SmallestFish = new SmallestFish(this, pos);
120 smallestFish.setHealthBar(new QuestEntityHealthBar(smallestFish, new Pos(3, 1)));
121 if(this.addEntity(smallestFish)) // If we manage to add the entity
122 return smallestFish; // We return it
123 return null; // Else, we return null
124 }
125
126 public castJump(){} // We can't jump in the sea !
127

Callers 5

runMethod · 0.80
addCrossMethod · 0.80
addLinesMethod · 0.80
addSquareMethod · 0.80
runMethod · 0.80

Calls 2

setHealthBarMethod · 0.80
addEntityMethod · 0.80

Tested by

no test coverage detected