Add set coord method
This commit is contained in:
parent
7e647822fb
commit
ab1635389e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user