unit
Class Mech

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

public class Mech
extends Unit

Author:
Shannon Smith

Nested Class Summary
static class Mech.MechForm
           
 
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
Mech(Player owner, ResourceManager res)
           
 
Method Summary
 void dropUnit(Game game)
           
 float getFireDir()
           
 Vector3f getFirePos()
           
 Mech.MechForm getForm()
           
 boolean isFlying()
           
 void pickUpUnit(Unit unit)
           
 void switchAnimation(java.lang.String name)
           
 void update(Game game, float step)
           
 
Methods inherited from class unit.Unit
dammage, draw, fire, getAmmo, getArmour, getEnergy, getMissiles, getName, getOwner, getShell, intersects, 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
 

Constructor Detail

Mech

public Mech(Player owner,
            ResourceManager res)
     throws ResourceNotFoundException
Throws:
ResourceNotFoundException
Method Detail

pickUpUnit

public void pickUpUnit(Unit unit)

dropUnit

public void dropUnit(Game game)

getForm

public Mech.MechForm getForm()

isFlying

public boolean isFlying()
Overrides:
isFlying in class Unit

switchAnimation

public void switchAnimation(java.lang.String name)

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