unit
Class Mech
java.lang.Object
herzog3d.HZObject
unit.Unit
unit.Mech
public class Mech
- extends Unit
- Author:
- Shannon Smith
| 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 |
Mech
public Mech(Player owner,
ResourceManager res)
throws ResourceNotFoundException
- Throws:
ResourceNotFoundException
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