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

Method addBigShark

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

Source from the content-addressed store, hash-verified

69
70 // Public methods
71 public addBigShark(pos: Pos): BigShark{
72 var bigShark: BigShark = new BigShark(this, pos);
73 bigShark.setHealthBar(new QuestEntityHealthBar(bigShark, new Pos(47, 1)));
74 if(this.addEntity(bigShark)) // If we manage to add the entity
75 return bigShark; // We return it
76 return null; // Else, we return null
77 }
78
79 public addJellyFish(pos: Pos): JellyFish{
80 var jellyFish: JellyFish = new JellyFish(this, pos);

Callers 2

runMethod · 0.80
runMethod · 0.80

Calls 2

setHealthBarMethod · 0.80
addEntityMethod · 0.80

Tested by

no test coverage detected