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

Method update

code/main/OctopusKing.ts:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37 // update()
38 public update(): void{
39 // Go towards the player
40 this.goTowards(this.getGlobalPosition(), this.getQuest().getGame().getPlayer().getGlobalPosition(), 0, new Pos(1, 0));
41
42 // Call the mother class update method
43 super.update();
44 }
45
46 // willDie()
47 public willDie(): void{

Callers

nothing calls this directly

Calls 5

goTowardsMethod · 0.80
getGlobalPositionMethod · 0.80
getPlayerMethod · 0.80
getQuestMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected