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

Method plus

code/main/Pos.ts:38–40  ·  view source on GitHub ↗
(pos: Pos)

Source from the content-addressed store, hash-verified

36 }
37
38 public plus(pos: Pos): Pos{ // The plus method return a new Pos object containing our position with the position given in parameter added
39 return new Pos(this.x + pos.x, this.y + pos.y);
40 }
41}

Callers 15

castPlayerTeleportMethod · 0.80
castWaterBallMethod · 0.80
dropADemonMethod · 0.80
castSpellMethod · 0.80
addMagicBallMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
updateMethod · 0.80
summonMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected