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

Method copy

code/main/Pos.ts:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 }
17
18 public copy(): Pos{
19 return new Pos(this.x, this.y);
20 }
21
22 public getDistance(pos: Pos): Pos{
23 return new Pos(this.x-pos.x, this.y-pos.y);

Callers 2

moveMethod · 0.80
moveWormsLikeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected