Skip to content

Commit 56d3d5c

Browse files
author
Bytekeeper
committed
Added approx distance to Position too, since bots can't access Point.
1 parent 9a3b04b commit 56d3d5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/bwapi/Position.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@ public Position multiply(final int multiplier) {
4444
public double getDistance(final Position position) {
4545
return getDistance(position.x, position.y);
4646
}
47+
48+
public int getApproxDistance(Position position) {
49+
return super.getApproxDistance(position);
50+
}
4751
}

0 commit comments

Comments
 (0)