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

Method addMiniShark

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

Source from the content-addressed store, hash-verified

93 }
94
95 public addMiniShark(pos: Pos): MiniShark{
96 var miniShark: MiniShark = new MiniShark(this, pos);
97 miniShark.setHealthBar(new QuestEntityHealthBar(miniShark, new Pos(19, 1)));
98 if(this.addEntity(miniShark)) // If we manage to add the entity
99 return miniShark; // We return it
100 return null; // Else, we return null
101 }
102
103 public addSeahorse(pos: Pos, intendedXPosition: number): Seahorse{
104 var seahorse: Seahorse = new Seahorse(this, pos, intendedXPosition);

Callers 1

runMethod · 0.80

Calls 2

setHealthBarMethod · 0.80
addEntityMethod · 0.80

Tested by

no test coverage detected