Deprecated API


Contents
Deprecated Interfaces
robocode.control.RobocodeListener
          Since 1.6.2. Use the IBattleListener instead.

A listener interface for receiving callbacks from the RobocodeEngine. 

 

Deprecated Methods
robocode.control.RobocodeListener.battleAborted(BattleSpecification)
          Since 1.6.2. Use the IBattleListener.onBattleFinished() instead.

This method is called when a battle has been aborted. 

robocode.control.RobocodeListener.battleComplete(BattleSpecification, RobotResults[])
          Since 1.6.2. Use the IBattleListener.onBattleCompleted() instead.

This method is called when a battle completes successfully. 

robocode.control.RobocodeListener.battleMessage(String)
          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. 

robocode.HitRobotEvent.getBearingDegrees()
          Use HitRobotEvent.getBearing() instead. 
robocode.HitWallEvent.getBearingDegrees()
          Use HitWallEvent.getBearing() instead. 
robocode.HitByBulletEvent.getHeadingDegrees()
          Use HitByBulletEvent.getHeading() instead. 
robocode.ScannedRobotEvent.getLife()
          Use ScannedRobotEvent.getEnergy() instead. 
robocode.BulletHitEvent.getLife()
          Use BulletHitEvent.getEnergy() instead. 
robocode.ScannedRobotEvent.getRobotBearing()
          Use ScannedRobotEvent.getBearing() instead. 
robocode.ScannedRobotEvent.getRobotBearingDegrees()
          Use ScannedRobotEvent.getBearing() instead. 
robocode.ScannedRobotEvent.getRobotBearingRadians()
          Use ScannedRobotEvent.getBearingRadians() instead. 
robocode.ScannedRobotEvent.getRobotDistance()
          Use ScannedRobotEvent.getDistance() instead. 
robocode.ScannedRobotEvent.getRobotHeading()
          Use ScannedRobotEvent.getHeading() instead. 
robocode.ScannedRobotEvent.getRobotHeadingDegrees()
          Use ScannedRobotEvent.getHeading() instead. 
robocode.ScannedRobotEvent.getRobotHeadingRadians()
          Use ScannedRobotEvent.getHeadingRadians() instead. 
robocode.ScannedRobotEvent.getRobotLife()
          Use ScannedRobotEvent.getEnergy() instead. 
robocode.BulletHitEvent.getRobotLife()
          Use BulletHitEvent.getEnergy() instead. 
robocode.RobotDeathEvent.getRobotName()
          Use RobotDeathEvent.getName() instead. 
robocode.HitRobotEvent.getRobotName()
          Use HitRobotEvent.getName() instead. 
robocode.ScannedRobotEvent.getRobotName()
          Use ScannedRobotEvent.getName() instead. 
robocode.BulletHitEvent.getRobotName()
          Use BulletHitEvent.getName() instead. 
robocode.ScannedRobotEvent.getRobotVelocity()
          Use ScannedRobotEvent.getVelocity() instead. 
 

Deprecated Constructors
robocode.control.RobocodeEngine(File, RobocodeListener)
          Since 1.6.2. Use RobocodeEngine.RobocodeEngine(File) and addBattleListener() instead.

Creates a new RobocodeEngine for controlling Robocode. 

robocode.control.RobocodeEngine(RobocodeListener)
          Since 1.6.2. Use RobocodeEngine.RobocodeEngine() and addBattleListener() instead.

Creates a new RobocodeEngine for controlling Robocode. The JAR file of Robocode is used to determine the root directory of Robocode. 

robocode.ScannedRobotEvent()
          Use ScannedRobotEvent.ScannedRobotEvent(String, double, double, double, double, double) instead.