|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RobocodeListener
A listener interface for receiving callbacks from the RobocodeEngine
.
RobocodeEngine(RobocodeListener)
,
RobocodeEngine(java.io.File, RobocodeListener)
Method Summary | |
---|---|
void |
battleAborted(BattleSpecification battle)
This method is called when a battle has been aborted. |
void |
battleComplete(BattleSpecification battle,
RobotResults[] results)
This method is called when a battle completes successfully. |
void |
battleMessage(String message)
This method is called when the game logs messages that is normally written out to the console. |
Method Detail |
---|
void battleComplete(BattleSpecification battle, RobotResults[] results)
battle
- information about the battle that completedresults
- an array containing the results for the individual robotRobocodeEngine.runBattle(BattleSpecification)
,
BattleSpecification
,
RobotResults
void battleAborted(BattleSpecification battle)
battle
- information about the battle that was abortedRobocodeEngine.abortCurrentBattle()
,
BattleSpecification
void battleMessage(String message)
message
- the message logged by the gameRobocodeEngine.runBattle(BattleSpecification)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |