|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--robocode.Event
|
+--robocode.BulletHitEvent
This event is sent to onBulletHit
when one of your bullets hits another robot.
| Constructor Summary | |
BulletHitEvent(String name,
double energy,
Bullet bullet)
Called by the game to create a new BulletHitEvent. |
|
| Method Summary | |
Bullet |
getBullet()
Returns the Bullet that hit. |
double |
getEnergy()
Returns the remaining energy of the robot you hit (after the damage done by your bullet). |
double |
getLife()
Deprecated. use getEnergy() |
String |
getName()
Returns the name of the robot you hit. |
double |
getRobotLife()
Deprecated. use getEnergy() |
String |
getRobotName()
Deprecated. use getName() |
| Methods inherited from class robocode.Event |
compareTo, getPriority, getTime, setPriority, setTime |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BulletHitEvent(String name,
double energy,
Bullet bullet)
| Method Detail |
public Bullet getBullet()
public double getEnergy()
public double getLife()
public String getName()
public double getRobotLife()
public String getRobotName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||