game.weapons
Class AmmoGun
java.lang.Object
game.weapons.Weapon
game.weapons.Gun
game.weapons.AmmoGun
- public class AmmoGun
- extends Gun
Constructor Summary |
AmmoGun(double maxSpeed,
int energy,
java.lang.String name,
double range,
int damage,
double delay)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AmmoGun
public AmmoGun(double maxSpeed,
int energy,
java.lang.String name,
double range,
int damage,
double delay)
fire
public void fire(Body unit,
Body target)
- Overrides:
fire
in class Gun
- See Also:
Weapon.fire(game.physics.Body, game.physics.Body)
fire
public void fire(Turret unit,
double heading,
Body target)
- Overrides:
fire
in class Gun
isReady
public boolean isReady()
- Overrides:
isReady
in class Weapon
- See Also:
Weapon.isReady()
setAmmo
public void setAmmo(int ammo)