unit
Class Tank

java.lang.Object
  extended by herzog3d.HZObject
      extended by unit.Unit
          extended by unit.Tank

public class Tank
extends Unit

Author:
Shannon Smith

Field Summary
static int COST
           
static float PROJECTILE_SPEED
           
 
Fields inherited from class unit.Unit
ai, ammo, armour, energy, missiles, owner, stats
 
Fields inherited from class herzog3d.HZObject
active, dir, model, pos, radius, shell, skin, state
 
Constructor Summary
Tank(Player owner, ResourceManager res, UnitStats stats)
           
 
Method Summary
 float getAbsTurretDir()
           
 float getFireDir()
           
 Vector3f getFirePos()
           
 float getRelTurretDir()
           
 boolean isActionSupported(UnitAI.UnitAction action)
           
 void setTurretDir(float dir)
           
 void update(Game game, float step)
           
 
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
 

Field Detail

PROJECTILE_SPEED

public static final float PROJECTILE_SPEED
See Also:
Constant Field Values

COST

public static final int COST
See Also:
Constant Field Values
Constructor Detail

Tank

public Tank(Player owner,
            ResourceManager res,
            UnitStats stats)
Method Detail

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)