fixed enamy select and building units
This commit is contained in:
parent
ba32196429
commit
8f74ca2ee5
7 changed files with 83 additions and 24 deletions
|
|
@ -64,6 +64,16 @@ public class Vector2f implements Comparable{
|
|||
y += i.getY();
|
||||
}
|
||||
|
||||
public void sub(Vector2f i){
|
||||
x -= i.getX();
|
||||
y -= i.getY();
|
||||
}
|
||||
|
||||
public void sub(float sx,float sy){
|
||||
x += sx;
|
||||
y += sy;
|
||||
}
|
||||
|
||||
public String toString(){
|
||||
return "Vector2f["+x+","+y+"]";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue