|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBasicEvents4
Third extended version of the IBasicEvents
interface.
Method Summary | |
---|---|
void |
onHitByMine(HitByMineEvent event)
Triggers when your Ship get hit by a Mine. |
void |
onMineHit(MineHitEvent event)
Triggers when your Mine has hit a Ship (Can be your own Ship) |
void |
onMineHitMine(MineHitMineEvent event)
Triggers when your Mine has hit another Mine. |
void |
onScannedShip(ScannedShipEvent event)
This method is called when your robot sees another robot, i.e. when the robot's radar scan "hits" another robot. |
Methods inherited from interface robocode.robotinterfaces.IBasicEvents3 |
---|
onRoundEnded |
Methods inherited from interface robocode.robotinterfaces.IBasicEvents2 |
---|
onBattleEnded |
Methods inherited from interface robocode.robotinterfaces.IBasicEvents |
---|
onBulletHit, onBulletHitBullet, onBulletMissed, onDeath, onHitByBullet, onHitRobot, onHitWall, onRobotDeath, onScannedRobot, onStatus, onWin |
Method Detail |
---|
void onScannedShip(ScannedShipEvent event)
onScannedRobot
event. Rather then having the bearing from the center of your ship to
the other ship. This event contains the bearings for both the front
and the back canon. The only thing you have to do is rotate them by
the given amount of degrees.
event
- the scanned-robot event set by the gameIBasicEvents.onScannedRobot(ScannedRobotEvent)
,
ScannedRobotEvent
,
Event
,
Rules.RADAR_SCAN_RADIUS
void onMineHitMine(MineHitMineEvent event)
event
- You can use this event to retrieve the Mine that hit and the Mine that got hit.void onMineHit(MineHitEvent event)
event
- Has information like the Ship you hit, the Mine that hit and the energy left on that Ship.void onHitByMine(HitByMineEvent event)
event
- Contains the Mine that hit you, not much else.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |