public class TankTrap extends Droppable
Modifier and Type | Field and Description |
---|---|
static double |
MAX_HINDRANCE_TIME |
Constructor and Description |
---|
TankTrap(Vector pos,
int ownerID,
java.awt.Color color) |
Modifier and Type | Method and Description |
---|---|
void |
checkTrigger(SimulationState state,
MotionTargetPanzer panzerTgt)
is called to detect collisions.
|
Droppable |
clone() |
Collision |
discoverCollision(MotionTargetLaunchable projTgt)
Constructs the Droppable's individual collision with the specified Launchable
|
Collision |
discoverCollision(MotionTargetPanzer panzerTgt)
Constructs the Droppable's individual collision with the specified Panzer
|
void |
draw(javax.media.opengl.GL gl,
ArenaController arenaController,
double timestamp)
Draws the object on the given arena.
|
double |
DROPPER_REFRACTORY_PERIOD()
Time until dropper gear can be reactivated after drop.
|
double |
LAUNCHABLE_TRIGGER_RADIUS()
trigger radius [m] for Launchables to set up the Droppable's effect (explosions etc.).
|
double |
LIFE_TIME_AVG()
Average life time [s] of this Droppable.
|
double |
TRIGGER_RADIUS()
trigger radius [m] for Panzers to set up Droppable's effect (explosions etc.).
|
calculateMotion, getAge, getColor, getMaxAge, getOwnerID, getPos, isArmed, isDetonating
public static final double MAX_HINDRANCE_TIME
public TankTrap(Vector pos, int ownerID, java.awt.Color color)
public void checkTrigger(SimulationState state, MotionTargetPanzer panzerTgt)
Droppable
May be overridden to implement individual behavior.
checkTrigger
in class Droppable
public Droppable clone()
public Collision discoverCollision(MotionTargetLaunchable projTgt)
Droppable
discoverCollision
in class Droppable
public Collision discoverCollision(MotionTargetPanzer panzerTgt)
Droppable
discoverCollision
in class Droppable
public void draw(javax.media.opengl.GL gl, ArenaController arenaController, double timestamp)
Droppable
public double DROPPER_REFRACTORY_PERIOD()
Droppable
Every descendant may have its own value.
DROPPER_REFRACTORY_PERIOD
in class Droppable
public double LAUNCHABLE_TRIGGER_RADIUS()
Droppable
Note that this value only applies to approaching Launchables.
Every descendant may have its own value.
LAUNCHABLE_TRIGGER_RADIUS
in class Droppable
public double LIFE_TIME_AVG()
Droppable
The actual life time will be subject of normal distribution.
Every descendant may have its own value.
LIFE_TIME_AVG
in class Droppable
public double TRIGGER_RADIUS()
Droppable
Also determines the activation distance.
(see Droppable#calculateMotion)
Every descendant may have its own value.
TRIGGER_RADIUS
in class Droppable