|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrobocode.Event
robocode.HitByMineEvent
public class HitByMineEvent
This event is sent to onHitByMine when you get hit by a mine (Which can be your own).
HitByBulletEvent, Mathew A. Nelson (contributor), Flemming N. Larsen (contributor)| Constructor Summary | |
|---|---|
HitByMineEvent(Mine mine)
Called by the game to create a new HitByBulletEvent. |
|
| Method Summary | |
|---|---|
Mine |
getMine()
Returns the mine that hit your ship. |
String |
getName()
Returns the name of the ship that placed the mine. |
double |
getPower()
Returns the power of this mine. |
| 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 HitByMineEvent(Mine mine)
HitByBulletEvent.
mine - the mine that has hit your ship| Method Detail |
|---|
public Mine getMine()
public String getName()
public double getPower()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||