game.weapons
Class Turret
java.lang.Object
game.weapons.Turret
- Direct Known Subclasses:
- GunTurret, MissileTurret
- public abstract class Turret
- extends java.lang.Object
Constructor Summary |
Turret(java.lang.String name,
double bearingMin,
double bearingMax)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Turret
public Turret(java.lang.String name,
double bearingMin,
double bearingMax)
toggleWeaponsFree
public void toggleWeaponsFree()
getBody
public Body getBody()
canEngage
public boolean canEngage(Vector2D position)
integrate
public void integrate(Body body,
double timestep)
toString
public java.lang.String toString()
- See Also:
Object.toString()
getName
public java.lang.String getName()