unit
Class Tank
java.lang.Object
herzog3d.HZObject
unit.Unit
unit.Tank
public class Tank
- extends Unit
- Author:
- Shannon Smith
| Methods inherited from class unit.Unit |
dammage, draw, fire, getAmmo, getArmour, getEnergy, getMissiles, getName, getOwner, getShell, intersects, isFlying, setAI, setOwner, setStats, testCollision |
| Methods inherited from class herzog3d.HZObject |
getColRadius, getDir, getPos, getRadius, intersects, isActive, move, move, setActive, setModel, setPos, setPos, setSkin, setState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROJECTILE_SPEED
public static final float PROJECTILE_SPEED
- See Also:
- Constant Field Values
COST
public static final int COST
- See Also:
- Constant Field Values
Tank
public Tank(Player owner,
ResourceManager res,
UnitStats stats)
getAbsTurretDir
public float getAbsTurretDir()
getRelTurretDir
public float getRelTurretDir()
setTurretDir
public void setTurretDir(float dir)
getFireDir
public float getFireDir()
- Specified by:
getFireDir in class Unit
getFirePos
public Vector3f getFirePos()
- Specified by:
getFirePos in class Unit
update
public void update(Game game,
float step)
- Overrides:
update in class Unit
isActionSupported
public boolean isActionSupported(UnitAI.UnitAction action)