|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.Event
robocode.MineHitEvent
public class MineHitEvent
This event is sent to onMineHit
when one of your mines has hit a Ship.
BulletHitEvent
, Mathew A. Nelson (contributor), Flemming N. Larsen (contributor)Constructor Summary | |
---|---|
MineHitEvent(String name,
double energy,
Mine mine)
Called by the game to create a new MineHitEvent . |
Method Summary | |
---|---|
double |
getEnergy()
Returns the remaining energy of the ship your mine has hit (after the damage done by your mine). |
Mine |
getMine()
Returns the mine of yours that hit the ship. |
String |
getName()
Returns the name of the ship your mine hit. |
Methods inherited from class robocode.Event |
---|
compareTo, 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 MineHitEvent(String name, double energy, Mine mine)
MineHitEvent
.
name
- the name of the ship your mine hitenergy
- the remaining energy of the robot that your bullet has hitmine
- the mine that hit the robotMethod Detail |
---|
public Mine getMine()
public double getEnergy()
public String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |