public class Racer extends Body
Modifier and Type | Class and Description |
---|---|
protected class |
Racer.RaceTyre
wheels for the racer
|
Body.BodyTractor
missileLink, tractors, turretIndex
Constructor and Description |
---|
Racer(AbstractPilot pilot,
int turretIndex,
Vector pos,
Angle ori) |
Modifier and Type | Method and Description |
---|---|
void |
doDamage(double damage)
does scaled damage relative to the type of
Body |
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 |
getECellStoreFractionFactor()
Energy cell store efficiency factor for the
exp function. |
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, drop, exertForce, exertForce, exertForce, getDebugLines, getDebugText, 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 Racer(AbstractPilot pilot, int turretIndex, Vector pos, Angle ori)
public void doDamage(double damage)
Body
Body
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 getECellStoreFractionFactor()
Body
exp
function.
smaller values mean less efficiency. Zero means no energy losses.
getECellStoreFractionFactor
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