public class Mine extends Droppable
Mines don't move, so there are no motion targets for them. They may collide with panzers.
Relevant aspects:
Modifier and Type | Field and Description |
---|---|
static double |
DETONATION_INNER_RADIUS
Effective mine explosion radius in [m] with max.
|
static double |
DETONATION_MAX_DAMAGE
Maximum mine damage (shrinks with distance)
|
static double |
DETONATION_MAX_FORCE
Maximum mine explosion force dealt to Panzer (shrinks with distance)
|
static double |
DETONATION_OUTER_RADIUS
mine explosion radius for decreasing effect in [m]
|
static int |
EXPLOSION_SIZE |
static double |
TRIGGER_RADIUS
trigger radius [m] used for Droppable's effect (explosions etc.)
|
Constructor and Description |
---|
Mine(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.
|
Mine |
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 |
LIFETIME_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 DETONATION_INNER_RADIUS
public static final double DETONATION_MAX_DAMAGE
public static final double DETONATION_MAX_FORCE
public static final double DETONATION_OUTER_RADIUS
public static final int EXPLOSION_SIZE
public static final double TRIGGER_RADIUS
Also determines the activation distance.
Every descendant may have its own value.
public Mine(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 Mine 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()
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 LIFETIME_AVG()
The actual life time will be subject of normal distribution.
Every descendant may have its own value.
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