|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.control.RobocodeEngine
public class RobocodeEngine
RobocodeEngine - Class for controlling Robocode.
Constructor Summary | |
---|---|
RobocodeEngine(java.io.File robocodeHome,
RobocodeListener listener)
Creates a new RobocodeEngine |
|
RobocodeEngine(RobocodeListener listener)
Creates a new RobocodeEngine using robocode.jar to determine the robocodeHome file. |
Method Summary | |
---|---|
void |
abortCurrentBattle()
Asks a battle to abort. |
void |
close()
Call this when you are finished with this RobocodeEngine. |
RobotSpecification[] |
getLocalRepository()
Gets a list of robots available for battle. |
java.lang.String |
getVersion()
Returns the installed version of Robocode. |
void |
runBattle(BattleSpecification battle)
Runs a battle |
void |
setVisible(boolean visible)
Shows or hides the Robocode window. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RobocodeEngine(java.io.File robocodeHome, RobocodeListener listener)
robocodeHome
- should be the root robocode directory (i.e. c:\robocode)listener
- Your listenerpublic RobocodeEngine(RobocodeListener listener)
listener
- Your listenerMethod Detail |
---|
public void close()
public java.lang.String getVersion()
public void setVisible(boolean visible)
public RobotSpecification[] getLocalRepository()
public void runBattle(BattleSpecification battle)
public void abortCurrentBattle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |