robocode.robotinterfaces
Interface IBasicEvents2
- IBasicEvents
- AdvancedRobot, Robot, TeamRobot
public interface IBasicEvents2
onBulletHit , onBulletHitBullet , onBulletMissed , onDeath , onHitByBullet , onHitRobot , onHitWall , onRobotDeath , onScannedRobot , onStatus , onWin |
onBattleEnded
public void onBattleEnded(BattleEndedEvent event)
This method is called after end of the battle, even when the battle is aborted.
You should override it in your robot if you want to be informed of this event.
Example:
public void onBattleEnded(BattleEndedEvent event) {
out.println("The battle has ended");
}
event
- the battle-ended event set by the game