This commit is contained in:
Jesper Lundin 2007-04-18 11:56:07 +00:00
parent 9324df29c7
commit 02316b71b3
4 changed files with 55 additions and 22 deletions

View file

@ -97,7 +97,7 @@ public abstract class Unit extends GameEntity{
* Lets a unit attack another unit or object in the world;
*/
public void attack(Vector2i target) {
Weapon wep = new Weapon(10, new Vector2f(unitNode.getLocation().getX(), unitNode.getLocation().getY()));
Weapon wep = new Weapon(10, new Vector2f(unitNode.getLocation().getX(), unitNode.getLocation().getY()), 4.0f);
wep.launch(target);
WeaponHandler.getInstance().addWeapon(wep);
}