Add set coord method

This commit is contained in:
Victor 2014-02-26 18:25:08 +02:00
parent 7e647822fb
commit ab1635389e

View File

@ -35,6 +35,11 @@ public class SniperAim {
else if (y + ah2 > height) y = height - ah2;
}
public void set(int x, int y) {
this.x = x - aimWidth / 2;
this.y = y - aimHeight / 2;
}
public int getAimX() {
return x + aimWidth / 2;
}