timeInFrame
Modifier and Type | Method and Description |
---|---|
static CollisionPanzerLaunchable |
discoverCollision(MotionTargetPanzer panzerTgt,
MotionTargetLaunchable projTgt)
Analyses if conditions for a collision between a certain Panzer and a
certain Projectile are met and if so, returns a correctly initialised
CollisionPanzerProjectile (with collision time etc.). |
void |
react(SimulationState state,
java.util.List<MotionTargetPanzer> panzerTargets,
SimulationMode simulationMode)
Performs collision effects.
|
compareTo, discoverCollisions, getTimeInFrame, rediscoverCollisions
public static CollisionPanzerLaunchable discoverCollision(MotionTargetPanzer panzerTgt, MotionTargetLaunchable projTgt)
CollisionPanzerProjectile
(with collision time etc.).panzerTgt
- projTgt
- CollisionPanzerProjectile
if conditions for a collision
are met
null
otherwise
public void react(SimulationState state, java.util.List<MotionTargetPanzer> panzerTargets, SimulationMode simulationMode)
Collision