fixed enamy select and building units

This commit is contained in:
Ziver Koc 2007-05-07 09:32:13 +00:00
parent ba32196429
commit 8f74ca2ee5
7 changed files with 83 additions and 24 deletions

View file

@ -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+"]";
}