A B C D E F G H I M N O P R S T U W _

## A

abortCurrentBattle() - Method in class robocode.control.RobocodeEngine
  Asks a battle to abort.
ACCELERATION - Static variable in class robocode.Rules
  The acceleration of a robot, i.e. the increase of velocity when the robot moves forward, which is 1 pixel/turn.
addCustomEvent(Condition) - Method in class robocode.AdvancedRobot
  Registers a custom event to be called when a condition is met.
AdvancedRobot - Class in robocode
  A more advanced type of robot than Robot that allows non-blocking calls, custom events, and writes to the filesystem.
AdvancedRobot() - Constructor for class robocode.AdvancedRobot
ahead(double) - Method in class robocode.Robot
  Immediately moves your robot ahead (forward) by distance measured in pixels.

## B

back(double) - Method in class robocode.Robot
  Immediately moves your robot backward by distance measured in pixels.
battleAborted(BattleSpecification) - Method in interface robocode.control.RobocodeListener
  Called when battle is aborted for any reason.
battleComplete(BattleSpecification, RobotResults[]) - Method in interface robocode.control.RobocodeListener
  Called when battle is complete.
BattlefieldSpecification - Class in robocode.control
  Defines a battlefield
BattlefieldSpecification() - Constructor for class robocode.control.BattlefieldSpecification
  Creates a standard 800 x 600 battlefield
BattlefieldSpecification(int, int) - Constructor for class robocode.control.BattlefieldSpecification
  Creates a battlefield of any width and height.
battleMessage(String) - Method in interface robocode.control.RobocodeListener
  Called for messages that would normally go to the Java console
BattleSpecification - Class in robocode.control
  Defines a battle
BattleSpecification(int, BattlefieldSpecification, RobotSpecification[]) - Constructor for class robocode.control.BattleSpecification
  Creates a BattleSpecification with the given number of rounds, battlefield, and robots inactivityTime defaults to 450.
BattleSpecification(int, long, double, BattlefieldSpecification, RobotSpecification[]) - Constructor for class robocode.control.BattleSpecification
  Creates a BattleSpecification with the given number of rounds, inactivityTime, gunCoolingRate, battlefield, and robots
broadcastMessage(Serializable) - Method in class robocode.TeamRobot
  Broadcasts a message to all teammates.
Bullet - Class in robocode
  Represents a bullet.
Bullet(BulletPeer) - Constructor for class robocode.Bullet
  Called by the game to create a Bullet object
BulletHitBulletEvent - Class in robocode
  This event is sent to `onBulletHitBullet` when one of your bullets has hit another bullet.
BulletHitBulletEvent(Bullet, Bullet) - Constructor for class robocode.BulletHitBulletEvent
  Called by the game to create a new BulletHitEvent.
BulletHitEvent - Class in robocode
  This event is sent to `onBulletHit` when one of your bullets has hit another robot.
BulletHitEvent(String, double, Bullet) - Constructor for class robocode.BulletHitEvent
  Called by the game to create a new BulletHitEvent.
BulletMissedEvent - Class in robocode
  This event is sent to `onBulletMissed` when one of your bullets has missed, i.e. when the bullet has reached the border of the battlefield.
BulletMissedEvent(Bullet) - Constructor for class robocode.BulletMissedEvent
  Called by the game to create a new BulletMissedEvent.

## C

clearAllEvents() - Method in class robocode.AdvancedRobot
  Clears out any pending events immediately.
close() - Method in class robocode.control.RobocodeEngine
  Call this when you are finished with this RobocodeEngine.
close() - Method in class robocode.RobocodeFileOutputStream
  See java.io.FileOutputStream
compareTo(Event) - Method in class robocode.Event
  Compares this event with another event, but only based on the priority and time of the two events.
Condition - Class in robocode
  Condition is used to define custom AdvancedRobot#waitFor waitFor} and custom events for a `AdvancedRobot`.
Condition() - Constructor for class robocode.Condition
  Creates a new, unnamed Condition with the default priority, which is 80.
Condition(String) - Constructor for class robocode.Condition
  Creates a new Condition with the specified name, and default priority, which is 80.
Condition(String, int) - Constructor for class robocode.Condition
  Creates a new Condition with the specified name and priority.
CustomEvent - Class in robocode
  This event is sent to `onCustomEvent` when a custom condition is met.
CustomEvent(Condition) - Constructor for class robocode.CustomEvent
  Called by the game to create a new CustomEvent when a condition is met.
CustomEvent(Condition, int) - Constructor for class robocode.CustomEvent
  Called by the game to create a new CustomEvent when a condition is met.

## D

DeathEvent - Class in robocode
  This event is sent to `onDeath` when your robot dies.
DeathEvent() - Constructor for class robocode.DeathEvent
  Called by the game to create a new DeathEvent.
DECELERATION - Static variable in class robocode.Rules
  The deceleration of a robot, i.e. the decrease of velocity when the robot moves backwards (or brakes), which is 2 pixels/turn.
doNothing() - Method in class robocode.Robot
  Do nothing this turn, meaning that the robot will skip it's turn.
Droid - Interface in robocode
  Robots that implement Droid have no scanner, but an extra 20 life.

## E

endTurn() - Method in class robocode._AdvancedRobot
  Deprecated. Use `execute` instead.
Event - Class in robocode
  The superclass of all Robocode events.
Event() - Constructor for class robocode.Event
  Called by the game to create a new Event.
execute() - Method in class robocode.AdvancedRobot
  Executes any pending actions, or continues executing actions that are in process.

## F

finalize() - Method in class robocode.Robot
  Called by the system to 'clean up' after your robot.
fire(double) - Method in class robocode.Robot
  Immediately fires a bullet.
fireBullet(double) - Method in class robocode.Robot
  Immediately fires a bullet.
flush() - Method in class robocode.RobocodeFileOutputStream
  See java.io.FileOutputStream

## G

getAllEvents() - Method in class robocode.AdvancedRobot
  Returns a vector containing all events currently in the robot's queue.
getAuthorName() - Method in class robocode.control.RobotSpecification
  Gets the name of this robot's author
getBattlefield() - Method in class robocode.control.BattleSpecification
  Gets the battleField for this battle
getBattleFieldHeight() - Method in class robocode.Robot
  Returns the height of the current battlefield measured in pixels.
getBattleFieldWidth() - Method in class robocode.Robot
  Returns the width of the current battlefield measured in pixels.
getBattleNum() - Method in class robocode._Robot
  Deprecated. Use `getRoundNum` instead.
getBattleProperties() - Method in class robocode.control.BattleSpecification
  Deprecated.
getBearing() - Method in class robocode.HitByBulletEvent
  Returns the bearing to the bullet, relative to your robot's heading, in degrees (-180 < getBearing() <= 180) If you were to turnRight(e.getBearing()), you would be facing the direction the bullet came from.
getBearing() - Method in class robocode.HitRobotEvent
  Returns the bearing to the robot you hit, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)
getBearing() - Method in class robocode.HitWallEvent
  Returns the bearing to the wall you hit, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)
getBearing() - Method in class robocode.ScannedRobotEvent
  Returns the bearing to the robot you scanned, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)
getBearingDegrees() - Method in class robocode.HitRobotEvent
  Deprecated. Use `HitRobotEvent.getBearing()` instead.
getBearingDegrees() - Method in class robocode.HitWallEvent
  Deprecated. Use `HitWallEvent.getBearing()` instead.
getBearingRadians() - Method in class robocode.HitByBulletEvent
  Returns the bearing to the bullet, relative to your robot's heading, in radians (-Math.PI < getBearingRadians() <= Math.PI) If you were to turnRightRadians(e.getBearingRadians()), you would be facing the direction the bullet came from.
getBearingRadians() - Method in class robocode.HitRobotEvent
  Returns the bearing to the robot you hit, relative to your robot's heading, in radians (-PI <= getBearingRadians() < PI)
getBearingRadians() - Method in class robocode.HitWallEvent
  Returns the bearing to the wall you hit, relative to your robot's heading, in radians (-PI <= getBearingRadians() < PI)
getBearingRadians() - Method in class robocode.ScannedRobotEvent
  Returns the bearing to the robot you scanned, relative to your robot's heading, in radians (-PI <= getBearingRadians() < PI)
getBullet() - Method in class robocode.BulletHitBulletEvent
  Returns your bullet that hit another bullet.
getBullet() - Method in class robocode.BulletHitEvent
  Returns the bullet of yours that hit the robot.
getBullet() - Method in class robocode.BulletMissedEvent
  Returns the bullet that missed.
getBullet() - Method in class robocode.HitByBulletEvent
  Returns the bullet that hit your robot.
getBulletDamage() - Method in class robocode.control.RobotResults
  Gets the bullet damage score of this robot.
getBulletDamage(double) - Static method in class robocode.Rules
  Returns the amount of damage of a bullet given a specific bullet power.
getBulletDamageBonus() - Method in class robocode.control.RobotResults
  Gets the bullet damage bonus of this robot.
getBulletHitBonus(double) - Static method in class robocode.Rules
  Returns the amount of bonus given when a robot's bullet hits an opponent robot given a specific bullet power.
getBulletHitBulletEvents() - Method in class robocode.AdvancedRobot
  Returns a vector containing all BulletHitBulletEvents currently in the robot's queue.
getBulletHitEvents() - Method in class robocode.AdvancedRobot
  Returns a vector containing all BulletHitEvents currently in the robot's queue.
getBulletMissedEvents() - Method in class robocode.AdvancedRobot
  Returns a vector containing all BulletMissedEvents currently in the robot's queue.
getBulletSpeed(double) - Static method in class robocode.Rules
  Returns the speed of a bullet given a specific bullet power measured in pixels/turn
getClassName() - Method in class robocode.control.RobotSpecification
  Gets the className of this robot
getCondition() - Method in class robocode.CustomEvent
  Returns the condition that fired, causing this event to be generated.
getDataDirectory() - Method in class robocode.AdvancedRobot
  Returns a file representing a data directory for the robot, which can be written to using `RobocodeFileOutputStream` or `RobocodeFileWriter`.
getDataFile(String) - Method in class robocode.AdvancedRobot
  Returns a file in your data directory that you can write to using `RobocodeFileOutputStream` or `RobocodeFileWriter`.
getDataQuotaAvailable() - Method in class robocode.AdvancedRobot
  Returns the data quota available in your data directory, i.e. the amount of bytes left in the data directory for the robot.
getDescription() - Method in class robocode.control.RobotSpecification
  Gets the description of this robot
getDistance() - Method in class robocode.ScannedRobotEvent
  Returns the distance to the robot (your center to his center).
getDistanceRemaining() - Method in class robocode.AdvancedRobot
  Returns the distance remaining in the robot's current move measured in pixels.
getEnergy() - Method in class robocode.BulletHitEvent
  Returns the remaining energy of the robot your bullet has hit (after the damage done by your bullet).
getEnergy() - Method in class robocode.HitRobotEvent
  Returns the amount of energy of the robot you hit.
getEnergy() - Method in class robocode.Robot
  Returns the robot's current energy.
getEnergy() - Method in class robocode.ScannedRobotEvent
  Returns the energy of the robot.
getEventPriority(String) - Method in class robocode.AdvancedRobot
  Returns the current priority of a class of events.
getFirsts() - Method in class robocode.control.RobotResults
  Gets the number of times this robot placed first.
getGunCharge() - Method in class robocode._Robot
  Deprecated. Use `getGunHeat` instead.
getGunCoolingRate() - Method in class robocode.control.BattleSpecification
  Gets the gunCoolingRate for this battle
getGunCoolingRate() - Method in class robocode.Robot
  Returns the rate at which the gun will cool down, i.e. the amount of heat the gun heat will drop per turn.
getGunHeading() - Method in class robocode.Robot
  Returns the direction that the robot's gun is facing, in degrees.
getGunHeadingDegrees() - Method in class robocode._AdvancedRobot
  Deprecated. Use `getGunHeading` instead.
getGunHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
  Returns the direction that the robot's gun is facing, in radians.
getGunHeat() - Method in class robocode.Robot
  Returns the current heat of the gun.
getGunHeat(double) - Static method in class robocode.Rules
  Returns the heat produced by firing the gun given a specific bullet power.
getGunImageName() - Method in class robocode._Robot
  Deprecated. This call is not used.
getGunTurnRemaining() - Method in class robocode.AdvancedRobot
  Returns the angle remaining in the gun's turn, in degrees.
getGunTurnRemainingRadians() - Method in class robocode._AdvancedRadiansRobot
  Returns the angle remaining in the gun's turn, in radians.
getHeading() - Method in class robocode.Bullet
  Returns the direction the bullet is/was heading, in degrees (0 <= getHeading() < 360).
getHeading() - Method in class robocode.HitByBulletEvent
  Returns the heading of the bullet when it hit you, in degrees (0 <= getHeading() < 360) Note: This is not relative to the direction you are facing.
getHeading() - Method in class robocode.Robot
  Returns the direction that the robot's body is facing, in degrees.
getHeading() - Method in class robocode.ScannedRobotEvent
  Returns the heading of the robot, in degrees (0 <= getHeading() < 360)
getHeadingDegrees() - Method in class robocode._AdvancedRobot
  Deprecated. Use `getHeading` instead.
getHeadingDegrees() - Method in class robocode.HitByBulletEvent
  Deprecated. Use `HitByBulletEvent.getHeading()` instead.
getHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
  Returns the direction that the robot's body is facing, in radians.
getHeadingRadians() - Method in class robocode.Bullet
  Returns the direction the bullet is/was heading, in radians (0 <= getHeadingRadians() < 2 * Math.PI).
getHeadingRadians() - Method in class robocode.HitByBulletEvent
  Returns the heading of the bullet when it hit you, in radians (0 <= getHeadingRadians() < 2 * PI) Note: This is not relative to the direction you are facing.
getHeadingRadians() - Method in class robocode.ScannedRobotEvent
  Returns the heading of the robot, in radians (0 <= getHeading() < 2 * PI)
getHeight() - Method in class robocode.control.BattlefieldSpecification
  Gets the height of this battlefield.
getHeight() - Method in class robocode.Robot
  Returns the height of the robot measured in pixels.
getHitBullet() - Method in class robocode.BulletHitBulletEvent
  Returns the bullet that was hit by your bullet.
getHitByBulletEvents() - Method in class robocode.AdvancedRobot
  Returns a vector containing all HitByBulletEvents currently in the robot's queue.
getHitRobotEvents() - Method in class robocode.AdvancedRobot
  Returns a vector containing all HitRobotEvents currently in the robot's queue.
getHitWallEvents() - Method in class robocode.AdvancedRobot
  Returns a vector containing all HitWallEvents currently in the robot's queue.
getInactivityTime() - Method in class robocode.control.BattleSpecification
  Gets the inactivityTime for this battle
getJarFile() - Method in class robocode.control.RobotSpecification
  Gets the jar file containing this robot.
getLastSurvivorBonus() - Method in class robocode.control.RobotResults
  Gets the last survivor bonus of this robot.
getLife() - Method in class robocode._Robot
  Deprecated. Use `getEnergy` instead.
getLife() - Method in class robocode.BulletHitEvent
  Deprecated. Use `BulletHitEvent.getEnergy()` instead.
getLife() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getEnergy()` instead.
getLocalRepository() - Method in class robocode.control.RobocodeEngine
  Gets a list of robots available for battle.
getMaxWaitCount() - Method in class robocode._AdvancedRobot
  Deprecated. This method is no longer functional. Use `AdvancedRobot.onSkippedTurn(SkippedTurnEvent)` instead.
getMessage() - Method in class robocode.MessageEvent
  Returns the message itself.
getMessageEvents() - Method in class robocode.TeamRobot
  Returns a vector containing all MessageEvents currently in the robot's queue.
getName() - Method in class robocode.Bullet
  Returns the name of the robot that fired this bullet.
getName() - Method in class robocode.BulletHitEvent
  Returns the name of the robot your bullet hit.
getName() - Method in class robocode.Condition
  Returns the name of this condition.
getName() - Method in class robocode.HitByBulletEvent
  Returns the name of the robot that fired the bullet.
getName() - Method in class robocode.HitRobotEvent
  Returns the name of the robot you hit.
getName() - Method in class robocode.RobocodeFileOutputStream
  Returns the filename
getName() - Method in class robocode.Robot
  Returns the robot's name
getName() - Method in class robocode.RobotDeathEvent
  Returns the name of the robot that died.
getName() - Method in class robocode.ScannedRobotEvent
  Returns the name of the robot.
getNumBattles() - Method in class robocode._Robot
  Deprecated. Use `getNumRounds` instead.
getNumRounds() - Method in class robocode.control.BattleSpecification
  Gets the number of rounds in this battle
getNumRounds() - Method in class robocode.Robot
  Returns the number of rounds in the current battle.
getOthers() - Method in class robocode.Robot
  Returns how many opponents are left in the current round.
getPower() - Method in class robocode.Bullet
  Returns the power of this bullet.
getPower() - Method in class robocode.HitByBulletEvent
  Returns the power of this bullet.
getPriority() - Method in class robocode.Condition
  Returns the priority of this condition.
getPriority() - Method in class robocode.Event
  Returns the priority of this event.
getRadarHeading() - Method in class robocode.Robot
  Returns the direction that the robot's radar is facing, in degrees.
getRadarHeadingDegrees() - Method in class robocode._AdvancedRobot
  Deprecated. Use `getRadarHeading` instead.
getRadarHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
  Returns the direction that the robot's radar is facing, in radians.
getRadarImageName() - Method in class robocode._Robot
  Deprecated. This call is not used.
getRadarTurnRemaining() - Method in class robocode.AdvancedRobot
  Returns the angle remaining in the radar's turn, in degrees.
getRadarTurnRemainingRadians() - Method in class robocode._AdvancedRadiansRobot
  Returns the angle remaining in the radar's turn, in radians.
getRamDamage() - Method in class robocode.control.RobotResults
  Gets the ram damage score of this robot.
getRamDamageBonus() - Method in class robocode.control.RobotResults
  Gets the ram damage bonus of this robot.
getRank() - Method in class robocode.control.RobotResults
  Gets the rank of this robot in the results.
getRobocodeVersion() - Method in class robocode.control.RobotSpecification
  Gets the version of Robocode this robot was designed for
getRobot() - Method in class robocode.control.RobotResults
  Gets the robot these results are for.
getRobotBearing() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getBearing()` instead.
getRobotBearingDegrees() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getBearing()` instead.
getRobotBearingRadians() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getBearingRadians()` instead.
getRobotDeathEvents() - Method in class robocode.AdvancedRobot
  Returns a vector containing all RobotDeathEvents currently in the robot's queue.
getRobotDistance() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getDistance()` instead.
getRobotHeading() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getHeading()` instead.
getRobotHeadingDegrees() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getHeading()` instead.
getRobotHeadingRadians() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getHeadingRadians()` instead.
getRobotImageName() - Method in class robocode._Robot
  Deprecated. This call is not used.
getRobotLife() - Method in class robocode.BulletHitEvent
  Deprecated. Use `BulletHitEvent.getEnergy()` instead.
getRobotLife() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getEnergy()` instead.
getRobotName() - Method in class robocode.BulletHitEvent
  Deprecated. Use `BulletHitEvent.getName()` instead.
getRobotName() - Method in class robocode.HitRobotEvent
  Deprecated. Use `HitRobotEvent.getName()` instead.
getRobotName() - Method in class robocode.RobotDeathEvent
  Deprecated. Use `RobotDeathEvent.getName()` instead.
getRobotName() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getName()` instead.
getRobots() - Method in class robocode.control.BattleSpecification
  Gets the robots participating in this battle
getRobotVelocity() - Method in class robocode.ScannedRobotEvent
  Deprecated. Use `ScannedRobotEvent.getVelocity()` instead.
getRoundNum() - Method in class robocode.Robot
  Returns the number of the current round (0 to `Robot.getNumRounds()` - 1) in the battle.
getScannedRobotEvents() - Method in class robocode.AdvancedRobot
  Returns a vector containing all ScannedRobotEvents currently in the robot's queue.
getScore() - Method in class robocode.control.RobotResults
  Gets the total score of this robot.
getSeconds() - Method in class robocode.control.RobotResults
  Gets the number of times this robot placed second.
getSender() - Method in class robocode.MessageEvent
  Returns the name of the sending robot.
getSurvival() - Method in class robocode.control.RobotResults
  Gets the survival score of this robot.
getTeammates() - Method in class robocode.TeamRobot
  Returns the names of all your teammates.
getThirds() - Method in class robocode.control.RobotResults
  Gets the number of times this robot placed third.
getTime() - Method in class robocode.Event
  Returns the time this event occurred.
getTime() - Method in class robocode.Robot
  Returns the game time of the current round, where the time is equal to the current turn in the round.
getTurnRate(double) - Static method in class robocode.Rules
  Returns the turn rate of a robot given a specific velocity measured in degrees/turn.
getTurnRateRadians(double) - Static method in class robocode.Rules
  Returns the turn rate of a robot given a specific velocity measured in radians/turn.
getTurnRemaining() - Method in class robocode.AdvancedRobot
  Returns the angle remaining in the robots's turn, in degrees.
getTurnRemainingRadians() - Method in class robocode._AdvancedRadiansRobot
  Returns the angle remaining in the robot's turn, in radians.
getVelocity() - Method in class robocode.Bullet
  Returns the velocity of this bullet.
getVelocity() - Method in class robocode.HitByBulletEvent
  Returns the velocity of this bullet.
getVelocity() - Method in class robocode.Robot
  Returns the velocity of the robot measured in pixels/turn.
getVelocity() - Method in class robocode.ScannedRobotEvent
  Returns the velocity of the robot.
getVersion() - Method in class robocode.control.RobocodeEngine
  Returns the installed version of Robocode.
getVersion() - Method in class robocode.control.RobotSpecification
  Gets the version of this robot.
getVictim() - Method in class robocode.Bullet
  Returns the name of the robot that this bullet hit, or `null` if the bullet has not hit a robot.
getWaitCount() - Method in class robocode._AdvancedRobot
  Deprecated. This method is no longer functional. Use `AdvancedRobot.onSkippedTurn(SkippedTurnEvent)` instead.
getWallHitDamage(double) - Static method in class robocode.Rules
  Returns the amount of damage taken when robot hits a wall with a specific velocity.
getWebpage() - Method in class robocode.control.RobotSpecification
  Gets this robot's webpage
getWidth() - Method in class robocode.control.BattlefieldSpecification
  Gets the width of this battlefield.
getWidth() - Method in class robocode.Robot
  Returns the width of the robot measured in pixels.
getX() - Method in class robocode.Bullet
  Returns the X position of the bullet.
getX() - Method in class robocode.Robot
  Returns the X position of the robot. (0,0) is at the bottom left of the battlefield.
getY() - Method in class robocode.Bullet
  Returns the Y position of the bullet.
getY() - Method in class robocode.Robot
  Returns the Y position of the robot. (0,0) is at the bottom left of the battlefield.
GUN_TURN_RATE - Static variable in class robocode.Rules
  The turning rate of the gun measured in degrees, which is 20 degrees/turn.
GUN_TURN_RATE_RADIANS - Static variable in class robocode.Rules
  The turning rate of the gun measured in radians instead of degrees.
GunTurnCompleteCondition - Class in robocode
  A prebuilt condition you can use that indicates your gun has finished turning.
GunTurnCompleteCondition(AdvancedRobot) - Constructor for class robocode.GunTurnCompleteCondition
  Creates a new GunTurnCompleteCondition with default priority.
GunTurnCompleteCondition(AdvancedRobot, int) - Constructor for class robocode.GunTurnCompleteCondition
  Creates a new GunTurnCompleteCondition with a specific priority.

## H

HitByBulletEvent - Class in robocode
  A HitByBulletEvent is sent to `onHitByBullet` when your robot has been hit by a bullet.
HitByBulletEvent(double, Bullet) - Constructor for class robocode.HitByBulletEvent
  Called by the game to create a new HitByBulletEvent.
HitRobotEvent - Class in robocode
  A HitRobotEvent is sent to `onHitRobot` when your robot collides with another robot.
HitRobotEvent(String, double, double, boolean) - Constructor for class robocode.HitRobotEvent
  Called by the game to create a new HitRobotEvent.
HitWallEvent - Class in robocode
  A HitWallEvent is sent to `onHitWall` when you collide a wall.
HitWallEvent(double) - Constructor for class robocode.HitWallEvent
  Called by the game to create a new HitWallEvent.

## I

isActive() - Method in class robocode.Bullet
  Checks if this bullet is still active on the battlefield.
isAdjustGunForRobotTurn() - Method in class robocode.AdvancedRobot
  Checks if the gun is set to adjust for the robot turning, i.e. to turn independent from the robot's body turn.
isAdjustRadarForGunTurn() - Method in class robocode.AdvancedRobot
  Checks if the radar is set to adjust for the gun turning, i.e. to turn independent from the gun's turn.
isAdjustRadarForRobotTurn() - Method in class robocode.AdvancedRobot
  Checks if the radar is set to adjust for the robot turning, i.e. to turn independent from the robot's body turn.
isMyFault() - Method in class robocode.HitRobotEvent
  Checks if your robot was moving towards the robot that was hit.
isNear(double, double) - Static method in class robocode.util.Utils
  Tests if the two specified angles are near to each other.
isTeammate(String) - Method in class robocode.TeamRobot
  Checks if a given robot name is the name of one of your teammates.

## M

main(String[]) - Static method in class robocode.Robocode
  Use the command-line to start Robocode.
MAX_BULLET_POWER - Static variable in class robocode.Rules
  The maximum bullet power, i.e. the maximum amount of energy that can be transferred to a bullet when it is fired, which is 3 energy points.
MAX_TURN_RATE - Static variable in class robocode.Rules
  The maximum turning rate of the robot, in degrees, which is 10 degress/turn.
MAX_TURN_RATE_RADIANS - Static variable in class robocode.Rules
  The maximum turning rate of the robot measured in radians instead of degrees.
MAX_VELOCITY - Static variable in class robocode.Rules
  The maximum velocity of a robot, which is 8 pixels/turn.
MessageEvent - Class in robocode
  A MessageEvent is sent to `onMessageReceived` when a teammate sends a message to your robot.
MessageEvent(String, Serializable) - Constructor for class robocode.MessageEvent
  Called by the game to create a new MessageEvent.
MIN_BULLET_POWER - Static variable in class robocode.Rules
  The minimum bullet power, i.e the amount of energy required for firing a bullet, which is 0.1 energy points.
MoveCompleteCondition - Class in robocode
  A prebuilt condition you can use that indicates your robot has finished moving.
MoveCompleteCondition(AdvancedRobot) - Constructor for class robocode.MoveCompleteCondition
  Creates a new MoveCompleteCondition with default priority.
MoveCompleteCondition(AdvancedRobot, int) - Constructor for class robocode.MoveCompleteCondition
  Creates a new MoveCompleteCondition with the specified priority.

## N

name - Variable in class robocode.Condition
  The name of this condition.
normalAbsoluteAngle(double) - Static method in class robocode.util.Utils
  Normalizes an angle to an absolute angle.
normalNearAbsoluteAngle(double) - Static method in class robocode.util.Utils
  Normalizes an angle to be near an absolute angle.
normalRelativeAngle(double) - Static method in class robocode.util.Utils
  Normalizes an angle to a relative angle.

## O

onBulletHit(BulletHitEvent) - Method in class robocode.Robot
  This method is called when one of your bullets hits another robot.
onBulletHitBullet(BulletHitBulletEvent) - Method in class robocode.Robot
  This method is called when one of your bullets hits another bullet.
onBulletMissed(BulletMissedEvent) - Method in class robocode.Robot
  This method is called when one of your bullets misses, i.e. hits a wall.
onCustomEvent(CustomEvent) - Method in class robocode.AdvancedRobot
  This method is called when a custom condition is met.
onDeath(DeathEvent) - Method in class robocode.AdvancedRobot
  This method is called if your robot dies.
onDeath(DeathEvent) - Method in class robocode.Robot
  This method is called if your robot dies.
onHitByBullet(HitByBulletEvent) - Method in class robocode.Robot
  This method is called when your robot is hit by a bullet.
onHitRobot(HitRobotEvent) - Method in class robocode.Robot
  This method is called when your robot collides with another robot.
onHitWall(HitWallEvent) - Method in class robocode.Robot
  This method is called when your robot collides with a wall.
onMessageReceived(MessageEvent) - Method in class robocode.TeamRobot
  This method is called when your robot receives a message from a teammate.
onPaint(Graphics2D) - Method in class robocode.Robot
  This method is called every time the robot is painted.
onRobotDeath(RobotDeathEvent) - Method in class robocode.Robot
  This method is called when another robot dies.
onScannedRobot(ScannedRobotEvent) - Method in class robocode.Robot
  This method is called when your robot sees another robot, i.e. when the robot's radar scan "hits" another robot.
onSkippedTurn(SkippedTurnEvent) - Method in class robocode.AdvancedRobot
  This method is called if the robot is using too much time between actions.
onWin(WinEvent) - Method in class robocode.Robot
  This method is called if your robot wins a battle.
out - Variable in class robocode.Robot
  The output stream your robot should use to print.

## P

printRunningThreads() - Static method in class robocode.Robocode
  Prints out all running thread to the standard system out (console)
priority - Variable in class robocode.Condition
  The priority of this condition.

## R

RADAR_SCAN_RADIUS - Static variable in class robocode.Rules
  The radar scan radius, which is 1200 pixels.
RADAR_TURN_RATE - Static variable in class robocode.Rules
  The turning rate of the radar measured in degrees, which is 45 degrees/turn.
RADAR_TURN_RATE_RADIANS - Static variable in class robocode.Rules
  The turning rate of the radar measured in radians instead of degrees.
RadarTurnCompleteCondition - Class in robocode
  A prebuilt condition you can use that indicates your radar has finished turning.
RadarTurnCompleteCondition(AdvancedRobot) - Constructor for class robocode.RadarTurnCompleteCondition
  Creates a new RadarTurnCompleteCondition with default priority.
RadarTurnCompleteCondition(AdvancedRobot, int) - Constructor for class robocode.RadarTurnCompleteCondition
  Creates a new RadarTurnCompleteCondition with the specified priority.
removeCustomEvent(Condition) - Method in class robocode.AdvancedRobot
  Removes a custom event (specified by condition).
resume() - Method in class robocode.Robot
  Immediately resumes the movement you stopped by stop(), if any.
robocode - package robocode
Robocode - Class in robocode
  Robocode - A programming game involving battling AI tanks.
robocode.control - package robocode.control
robocode.util - package robocode.util
RobocodeEngine - Class in robocode.control
  RobocodeEngine - Class for controlling Robocode.
RobocodeEngine(File, RobocodeListener) - Constructor for class robocode.control.RobocodeEngine
  Creates a new RobocodeEngine
RobocodeEngine(RobocodeListener) - Constructor for class robocode.control.RobocodeEngine
  Creates a new RobocodeEngine using robocode.jar to determine the robocodeHome file.
RobocodeFileOutputStream - Class in robocode
  RobocodeFileOutputStream is used for streaming/writing data out to a file, which you got by calling `AdvancedRobot.getDataFile(String)`.
RobocodeFileOutputStream(File) - Constructor for class robocode.RobocodeFileOutputStream
  RobocodeFileOutputStream constructor -- see FileOutputStream for docs!
RobocodeFileOutputStream(FileDescriptor) - Constructor for class robocode.RobocodeFileOutputStream
  RobocodeFileOutputStream constructor -- see FileOutputStream for docs!
RobocodeFileOutputStream(String) - Constructor for class robocode.RobocodeFileOutputStream
  RobocodeFileOutputStream constructor -- see FileOutputStream for docs!
RobocodeFileOutputStream(String, boolean) - Constructor for class robocode.RobocodeFileOutputStream
  RobocodeFileOutputStream constructor -- see FileOutputStream for docs!
RobocodeFileWriter - Class in robocode
  RobocodeFileWriter is used for writing data out to a file, which you got by calling `AdvancedRobot.getDataFile(String)`.
RobocodeFileWriter(File) - Constructor for class robocode.RobocodeFileWriter
  RobocodeFileWriter constructor -- see java.io.FileWriter for docs!
RobocodeFileWriter(FileDescriptor) - Constructor for class robocode.RobocodeFileWriter
  RobocodeFileWriter constructor -- see java.io.FileWriter for docs!
RobocodeFileWriter(String) - Constructor for class robocode.RobocodeFileWriter
  RobocodeFileWriter constructor -- see java.io.FileWriter for docs!
RobocodeFileWriter(String, boolean) - Constructor for class robocode.RobocodeFileWriter
  RobocodeFileWriter constructor -- see java.io.FileWriter for docs!
RobocodeListener - Interface in robocode.control
  RobocodeListener - Interface for receiving callbacks from RobocodeEngine
Robot - Class in robocode
  The basic robot class that you will extend to create your own robots.
Robot() - Constructor for class robocode.Robot
  Constructs a new robot.
ROBOT_HIT_BONUS - Static variable in class robocode.Rules
  The amount of bonus given when a robot moving forward hits an opponent robot (ramming), which is 1.2 energy points.
ROBOT_HIT_DAMAGE - Static variable in class robocode.Rules
  The amount of damage taken when a robot hits or is hit by another robot, which is 0.6 energy points.
RobotDeathEvent - Class in robocode
  This event is sent to `onRobotDeath` when another robot (not your robot) dies.
RobotDeathEvent(String) - Constructor for class robocode.RobotDeathEvent
  Called by the game to create a new RobotDeathEvent.
RobotResults - Class in robocode.control
  Contains results for a robot when a battle completes.
RobotResults(RobotSpecification, int, double, double, double, double, double, double, double, int, int, int) - Constructor for class robocode.control.RobotResults
RobotSpecification - Class in robocode.control
  Defines a robot.
Rules - Class in robocode
  Constants and methods that defines the rules of Robocode.
Rules() - Constructor for class robocode.Rules
run() - Method in class robocode.Robot
  The main method in every robot.
runBattle(BattleSpecification) - Method in class robocode.control.RobocodeEngine
  Runs a battle

## S

scan() - Method in class robocode.Robot
  Scans for other robots.
ScannedRobotEvent - Class in robocode
  A ScannedRobotEvent is sent to `onScannedRobot` when you scan a robot.
ScannedRobotEvent(String, double, double, double, double, double) - Constructor for class robocode.ScannedRobotEvent
  Called by the game to create a new ScannedRobotEvent.
sendMessage(String, Serializable) - Method in class robocode.TeamRobot
  Sends a message to one (or more) teammates.
setAdjustGunForRobotTurn(boolean) - Method in class robocode.Robot
  Sets the gun to turn independent from the robot's turn.
setAdjustRadarForGunTurn(boolean) - Method in class robocode.Robot
  Sets the radar to turn independent from the gun's turn.
setAdjustRadarForRobotTurn(boolean) - Method in class robocode.Robot
  Sets the radar to turn independent from the robot's turn.
setAhead(double) - Method in class robocode.AdvancedRobot
  Sets the robot to move ahead (forward) by distance measured in pixels when the next execution takes place.
setAllColors(Color) - Method in class robocode.Robot
  Sets all the robot's color to the same color in the same time, i.e. the color of the body, gun, radar, bullet, and scan arc.
setBack(double) - Method in class robocode.AdvancedRobot
  Sets the robot to move back by distance measured in pixels when the next execution takes place.
setBodyColor(Color) - Method in class robocode.Robot
  Sets the color of the robot's body.
setBulletColor(Color) - Method in class robocode.Robot
  Sets the color of the robot's bullets.
setColors(Color, Color, Color) - Method in class robocode.Robot
  Sets the color of the robot's body, gun, and radar in the same time.
setColors(Color, Color, Color, Color, Color) - Method in class robocode.Robot
  Sets the color of the robot's body, gun, radar, bullet, and scan arc in the same time.
setEventPriority(String, int) - Method in class robocode.AdvancedRobot
  Sets the priority of a class of events.
setFileOutputStream(FileOutputStream) - Method in class robocode.RobocodeFileOutputStream
  The system calls this method, you should not call it.
setFire(double) - Method in class robocode.AdvancedRobot
  Sets the gun to fire a bullet when the next execution takes place.
setFireBullet(double) - Method in class robocode.AdvancedRobot
  Sets the gun to fire a bullet when the next execution takes place.
setGunColor(Color) - Method in class robocode.Robot
  Sets the color of the robot's gun.
setGunImageName(String) - Method in class robocode._Robot
  Deprecated. This call is not used.
setInterruptible(boolean) - Method in class robocode._Robot
  Deprecated. This call has moved to `AdvancedRobot`, and will no longer function in the Robot class.
setInterruptible(boolean) - Method in class robocode.AdvancedRobot
  Call this during an event handler to allow new events of the same priority to restart the event handler.
setMaxTurnRate(double) - Method in class robocode.AdvancedRobot
  Sets the maximum turn rate of the robot measured in degrees if the robot should turn slower than `Rules.MAX_TURN_RATE` (10 degress/turn).
setMaxVelocity(double) - Method in class robocode.AdvancedRobot
  Sets the maximum velocity of the robot measured in pixels/turn if the robot should move slower than `Rules.MAX_VELOCITY` (8 pixels/turn).
setName(String) - Method in class robocode.Condition
  Sets the name of this condition.
setPeer(RobotPeer) - Method in class robocode._Robot
  This method is called by the game.
setPriority(int) - Method in class robocode.Condition
  Sets the priority of this condition.
setPriority(int) - Method in class robocode.Event
  Called by the game to set the priority of an event to the priority your robot specified for this type of event (or the default priority).
setRadarColor(Color) - Method in class robocode.Robot
  Sets the color of the robot's radar.
setRadarImageName(String) - Method in class robocode._Robot
  Deprecated. This call is not used.
setResume() - Method in class robocode.AdvancedRobot
  Sets the robot to resume the movement stopped by stop() or setStop(), if any.
setRobotImageName(String) - Method in class robocode._Robot
  Deprecated. This call is not used.
setScanColor(Color) - Method in class robocode.Robot
  Sets the color of the robot's scan arc.
setStop() - Method in class robocode.AdvancedRobot
  This call is identical to `Robot.stop()`, but returns immediately, and will not execute until you call execute() or take an action that executes.
setStop(boolean) - Method in class robocode.AdvancedRobot
  This call is identical to `Robot.stop(boolean)`, but returns immediately, and will not execute until you call execute() or take an action that executes.
setThreadManager(ThreadManager) - Static method in class robocode.RobocodeFileOutputStream
  The system calls this method, you should not call it.
setTime(long) - Method in class robocode.Event
  Called by the game to set the time this event occurred.
setTurnGunLeft(double) - Method in class robocode.AdvancedRobot
  Sets the robot's gun to turn left by degrees when the next execution takes place.
setTurnGunLeftDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `setTurnGunLeft` instead.
setTurnGunLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Sets the robot's gun to turn left by radians when the next execution takes place.
setTurnGunRight(double) - Method in class robocode.AdvancedRobot
  Sets the robot's gun to turn right by degrees when the next execution takes place.
setTurnGunRightDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `setTurnGunRight` instead.
setTurnGunRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Sets the robot's gun to turn right by radians when the next execution takes place.
setTurnLeft(double) - Method in class robocode.AdvancedRobot
  Sets the robot's body to turn left by degrees when the next execution takes place.
setTurnLeftDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `setTurnLeft` instead.
setTurnLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Sets the robot's body to turn left by radians when the next execution takes place.
setTurnRadarLeft(double) - Method in class robocode.AdvancedRobot
  Sets the robot's radar to turn left by degrees when the next execution takes place.
setTurnRadarLeftDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `setTurnRadarLeft` instead.
setTurnRadarLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Sets the robot's radar to turn left by radians when the next execution takes place.
setTurnRadarRight(double) - Method in class robocode.AdvancedRobot
  Sets the robot's radar to turn right by degrees when the next execution takes place.
setTurnRadarRightDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `setTurnRadarRight` instead.
setTurnRadarRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Sets the robot's radar to turn right by radians when the next execution takes place.
setTurnRight(double) - Method in class robocode.AdvancedRobot
  Sets the robot's body to turn right by degrees when the next execution takes place.
setTurnRightDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `setTurnRight` instead.
setTurnRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Sets the robot's body to turn right by radians when the next execution takes place.
setVisible(boolean) - Method in class robocode.control.RobocodeEngine
  Shows or hides the Robocode window.
SkippedTurnEvent - Class in robocode
  A SkippedTurnEvent is sent to `onSkippedTurn` when your robot is forced to skipping a turn.
SkippedTurnEvent() - Constructor for class robocode.SkippedTurnEvent
  Called by the game to create a new SkippedTurnEvent.
stop() - Method in class robocode.Robot
  Immediately stops all movement, and saves it for a call to resume().
stop(boolean) - Method in class robocode.Robot
  Immediately stops all movement, and saves it for a call to resume().

## T

TeamRobot - Class in robocode
  An advanced type of robot that supports messages between teammates.
TeamRobot() - Constructor for class robocode.TeamRobot
test() - Method in class robocode.Condition
  Overriding the test() method is the point of a Condition.
test() - Method in class robocode.GunTurnCompleteCondition
  Tests if the gun has stopped turning.
test() - Method in class robocode.MoveCompleteCondition
  Tests if the robot has stopped moving.
test() - Method in class robocode.RadarTurnCompleteCondition
  Tests if the radar has stopped turning.
test() - Method in class robocode.TurnCompleteCondition
  Tests if the robot has finished turning.
TurnCompleteCondition - Class in robocode
  A prebuilt condition you can use that indicates your robot has finished turning.
TurnCompleteCondition(AdvancedRobot) - Constructor for class robocode.TurnCompleteCondition
  Creates a new TurnCompleteCondition with default priority.
TurnCompleteCondition(AdvancedRobot, int) - Constructor for class robocode.TurnCompleteCondition
  Creates a new TurnCompleteCondition with the specified priority.
turnGunLeft(double) - Method in class robocode.Robot
  Immediately turns the robot's gun to the left by degrees.
turnGunLeftDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `turnGunLeft` instead.
turnGunLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Immediately turns the robot's gun to the left by radians.
turnGunRight(double) - Method in class robocode.Robot
  Immediately turns the robot's gun to the right by degrees.
turnGunRightDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `turnGunRight` instead.
turnGunRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Immediately turns the robot's gun to the right by radians.
turnLeft(double) - Method in class robocode.Robot
  Immediately turns the robot's body to the left by degrees.
turnLeftDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `turnLeft` instead.
turnLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Immediately turns the robot's body to the left by radians.
turnRadarLeft(double) - Method in class robocode.Robot
  Immediately turns the robot's radar to the left by degrees.
turnRadarLeftDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `turnRadarLeft` instead.
turnRadarLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Immediately turns the robot's radar to the left by radians.
turnRadarRight(double) - Method in class robocode.Robot
  Immediately turns the robot's radar to the right by degrees.
turnRadarRightDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `turnRadarRight` instead.
turnRadarRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Immediately turns the robot's radar to the right by radians.
turnRight(double) - Method in class robocode.Robot
  Immediately turns the robot's body to the right by degrees.
turnRightDegrees(double) - Method in class robocode._AdvancedRobot
  Deprecated. Use `turnRight` instead.
turnRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
  Immediately turns the robot's body to the right by radians.

## U

uninitializedException(String) - Method in class robocode._Robot
  Throws a RobotException.
Utils - Class in robocode.util
  Utility class that provide methods for normalizing angles.

## W

waitFor(Condition) - Method in class robocode.AdvancedRobot
  Does not return until a `Condition.test()` returns `true`.
WinEvent - Class in robocode
  This event is sent to `onWin` when your robot wins the round.
WinEvent() - Constructor for class robocode.WinEvent
  Called by the game to create a new WinEvent.
write(byte[]) - Method in class robocode.RobocodeFileOutputStream
  See java.io.FileOutputStream
write(byte[], int, int) - Method in class robocode.RobocodeFileOutputStream
  See java.io.FileOutputStream
write(int) - Method in class robocode.RobocodeFileOutputStream
  See java.io.FileOutputStream

## _

_AdvancedRadiansRobot - Class in robocode
  This class is used by the system as a placeholder for all *Radians calls in AdvancedRobot.
_AdvancedRadiansRobot() - Constructor for class robocode._AdvancedRadiansRobot
_AdvancedRobot - Class in robocode
  This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls for AdvancedRobot.
_AdvancedRobot() - Constructor for class robocode._AdvancedRobot
_Robot - Class in robocode
  This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls for Robot.
_Robot() - Constructor for class robocode._Robot

A B C D E F G H I M N O P R S T U W _