unit
Class Infantry

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

public class Infantry
extends Unit

Author:
Shannon Smith

Field Summary
 
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
Infantry(Player owner, ResourceManager res, UnitStats stats)
           
 
Method Summary
 float getFireDir()
           
 Vector3f getFirePos()
           
 Vector3f testCollision(Vector3f v1, Vector3f v2)
           
 
Methods inherited from class unit.Unit
dammage, draw, fire, getAmmo, getArmour, getEnergy, getMissiles, getName, getOwner, getShell, intersects, isFlying, setAI, setOwner, setStats, testCollision, update
 
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
 

Constructor Detail

Infantry

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

testCollision

public Vector3f testCollision(Vector3f v1,
                              Vector3f v2)

getFireDir

public float getFireDir()
Specified by:
getFireDir in class Unit

getFirePos

public Vector3f getFirePos()
Specified by:
getFirePos in class Unit