|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.Event
robocode.ScannedProjectileEvent
@Deprecated public class ScannedProjectileEvent
A ScannedProjectileEvent is sent to
onScannedProjectile(ScannedProjectileEvent)
when you
scan/found an incoming projectile. You can use the information
contained in this event to determine how to react.
Constructor Summary | |
---|---|
ScannedProjectileEvent(double energy,
double velocity,
double distance,
double bearingFront,
double bearingBack)
Deprecated. Creates a new scanned projectile event. |
Method Summary | |
---|---|
int |
compareTo(Event event)
Deprecated. Compares this event to another event regarding precedence. |
double |
getBearingBackCanon()
Deprecated. Get the bearing from the back canon to the projectile. |
double |
getBearingFrontCanon()
Deprecated. Get the bearing from the front canon to the projectile. |
double |
getDistance()
Deprecated. Get the distance between the projectile and the vehicle. |
double |
getEnergy()
Deprecated. Get the amount of energy the projectile has been fired with. |
double |
getVelocity()
Deprecated. Get the velocity at which the projectile is traveling. |
Methods inherited from class robocode.Event |
---|
getPriority, getTime, setPriority, setTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScannedProjectileEvent(double energy, double velocity, double distance, double bearingFront, double bearingBack)
energy
- The energy at which the projectile has been fired.velocity
- The velocity at which the projectile is traveling.distance
- The distance between the vehicle and the projectile.bearingFront
- The bearing from the front canon to the projectile.bearingBack
- The bearing from the back canon to the projectile.Method Detail |
---|
public double getEnergy()
public double getVelocity()
public double getDistance()
public double getBearingFrontCanon()
public double getBearingBackCanon()
public int compareTo(Event event)
compareTo
in interface Comparable<Event>
compareTo
in class Event
event
- the event to compare to this event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |