Skip to content

Commit 8b1143f

Browse files
committed
add getX & getY
1 parent 999279d commit 8b1143f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/bwapi/Unit.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ public Position getPosition() {
9191
return position;
9292
}
9393

94+
public int getX() {
95+
return position.x;
96+
}
97+
98+
public int getY() {
99+
return position.y;
100+
}
101+
94102
public TilePosition getTilePosition() {
95103
final Position p = getPosition();
96104
final UnitType ut = getType();

0 commit comments

Comments
 (0)