robocode.control

Interface RobocodeListener

public interface RobocodeListener

Authors:
Mathew A. Nelson (original)
Flemming N. Larsen (contributor)
See Also:
IBattleListener

Method Summary

@Deprecated
void battleAborted(BattleSpecification battle)
Deprecated. Since 1.6.2.
@Deprecated
void battleComplete(BattleSpecification battle, RobotResults[] results)
Deprecated. Since 1.6.2.
@Deprecated
void battleMessage(String message)
Deprecated. Since 1.6.2.

Method Details

void battleAborted

public @Deprecated void battleAborted(BattleSpecification battle)

Deprecated. Since 1.6.2. Use the IBattleListener.onBattleFinished() instead.

This method is called when a battle has been aborted.

Parameters:
battle - information about the battle that was aborted

void battleComplete

public @Deprecated void battleComplete(BattleSpecification battle,
                                       RobotResults[] results)

Deprecated. Since 1.6.2. Use the IBattleListener.onBattleCompleted() instead.

This method is called when a battle completes successfully.

Parameters:
battle - information about the battle that completed
results - an array containing the results for the individual robot

void battleMessage

public @Deprecated void battleMessage(String message)

Deprecated. Since 1.6.2. Use the IBattleListener.onBattleMessage() instead.

This method is called when the game logs messages that is normally written out to the console.

Parameters:
message - the message logged by the game