IRobocodeEngine MethodsRobocode Control API for .NET
The IRobocodeEngine type exposes the following members.
Methods

  NameDescription
Public methodAbortCurrentBattle
Aborts the current battle if it is running.
Public methodClose
Closes the RobocodeEngine and releases any allocated resources it holds. You should call this when you have finished using the RobocodeEngine. This method automatically disposes the Robocode window if it open.
Public methodGetLocalRepository 
Returns all robots available from the local robot repository of Robocode. These robots must exists in the \robocode\robots directory, and must be compiled in advance, before these robot are returned with this method.
Public methodGetLocalRepository(String)
Returns a selection of robots available from the local robot repository of Robocode. These robots must exists in the \robocode\robots directory, and must be compiled in advance, before these robot are returned with this method.

Notice: If a specified robot cannot be found in the repository, it will not be returned in the array of robots returned by this method.
Public methodRunBattle(BattleSpecification)
Runs the specified battle.
Public methodRunBattle(BattleSpecification, Boolean)
Runs the specified battle.
Public methodRunBattle(BattleSpecification, String, Boolean)
Runs the specified battle.
Public methodWaitTillBattleOver
Will block caller until current battle is over.
Back to Top
See Also