public class Panzer extends Body
Modifier and Type | Class and Description |
---|---|
protected class |
Panzer.PanzerTractor |
Body.BodyTractor
missileLink, tractors, turretIndex
Constructor and Description |
---|
Panzer(AbstractPilot pilot,
int turretIndex,
Vector pos,
Angle ori) |
Modifier and Type | Method and Description |
---|---|
void |
draw(javax.media.opengl.GL gl,
ArenaController arenaController)
calls a specific drawing routine
|
void |
drawTracks(javax.media.opengl.GL gl,
ArenaController arenaController)
calls a specific drawing routine
|
void |
drawTurret(javax.media.opengl.GL gl,
ArenaController arenaController,
double timestamp)
calls a specific drawing routine
|
double |
getBodyBreadth() |
protected double |
getBodyDiagonal() |
double |
getBodyLength() |
double |
getBodyMass() |
double |
getBodyMomentOfInertia() |
protected double |
getEnergyProductionPerSecond() |
protected double |
getEngineForce() |
protected double |
getFrictionAngular() |
protected double |
getFrictionFactorFrontal(TerrainType surface)
Surface properties are different for different ies.
|
protected double |
getFrictionFactorLateral(TerrainType surface)
Surface properties are different for different ies.
|
protected double |
getFrictionFrontal() |
protected double |
getFrictionLateral() |
protected double |
getMaxSpeedBoosting() |
protected double |
getVelocityLossFactorPerSecondAngular() |
protected double |
getVelocityLossFactorPerSecondFrontal() |
protected double |
getVelocityLossFactorPerSecondLateral() |
protected Vector |
handleBoosting(double elapsedTime)
applies the booster, if activated.
|
protected java.util.List<Body.BodyTractor> |
initTractors()
called once at creation time.
|
activateLinkToDirectables, applyMotionTarget, attachNewPilot, calculateMotion, chargeEnergy, compareTo, depleteEnergyBulky, depleteEnergyFlexibly, doDamage, drop, exertForce, exertForce, exertForce, getDebugLines, getDebugText, getECellStoreFractionFactor, getEnergy, getHealth, getID, getMaxSpeedBackward, getMaxSpeedForward, getOrientation, getPilot, getPos, getScanAperture, getScanDirection, getSonarEnergy, getTimeOfLastScan, getTractors, getVelocityLinear, init, isBoosting, isScannerReloaded, launch, processPilotCommands, resetPhysics, setHealth, setIsMovingInWrongDirection, setLastScan, setLastSonarTrace, setPosOfBestBot, setProximityScanDroppable, setProximityScanLaunchable, setTimeOfDropperReloaded, setTimeOfLauncherReloaded, zombificatePilot
public Panzer(AbstractPilot pilot, int turretIndex, Vector pos, Angle ori)
public void draw(javax.media.opengl.GL gl, ArenaController arenaController)
Body
public void drawTracks(javax.media.opengl.GL gl, ArenaController arenaController)
Body
drawTracks
in class Body
public void drawTurret(javax.media.opengl.GL gl, ArenaController arenaController, double timestamp)
Body
drawTurret
in class Body
public double getBodyBreadth()
getBodyBreadth
in class Body
protected double getBodyDiagonal()
getBodyDiagonal
in class Body
public double getBodyLength()
getBodyLength
in class Body
public double getBodyMass()
getBodyMass
in class Body
public double getBodyMomentOfInertia()
getBodyMomentOfInertia
in class Body
protected double getEnergyProductionPerSecond()
getEnergyProductionPerSecond
in class Body
protected double getEngineForce()
getEngineForce
in class Body
protected double getFrictionAngular()
getFrictionAngular
in class Body
protected double getFrictionFactorFrontal(TerrainType surface)
Body
getFrictionFactorFrontal
in class Body
protected double getFrictionFactorLateral(TerrainType surface)
Body
getFrictionFactorLateral
in class Body
protected double getFrictionFrontal()
getFrictionFrontal
in class Body
protected double getFrictionLateral()
getFrictionLateral
in class Body
protected final double getMaxSpeedBoosting()
getMaxSpeedBoosting
in class Body
protected double getVelocityLossFactorPerSecondAngular()
getVelocityLossFactorPerSecondAngular
in class Body
protected double getVelocityLossFactorPerSecondFrontal()
getVelocityLossFactorPerSecondFrontal
in class Body
protected double getVelocityLossFactorPerSecondLateral()
getVelocityLossFactorPerSecondLateral
in class Body
protected Vector handleBoosting(double elapsedTime)
Body
handleBoosting
in class Body
protected java.util.List<Body.BodyTractor> initTractors()
Body
Body.BodyTractor
s are constant over the lifetime of this Body
.initTractors
in class Body
Body