# Alphabetical Index

A B C D E F G H I J K L M N O P R S T U V W Y

## A

abortCurrentBattle() - method in class robocode.control.RobocodeEngine
Aborts the current battle if it is running.
ACCELERATION - static field in class robocode.Rules
The acceleration of a robot, i.e.
addBattleListener(robocode.control.events.IBattleListener) - method in class robocode.control.RobocodeEngine
Adds a battle listener that must receive events occurring in battles.
addCustomEvent(robocode.Condition) - method in class robocode.AdvancedRobot
Registers a custom event to be called when a condition is met.
addCustomEvent(robocode.Condition) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Registers a custom event to be called when a condition is met.
AdvancedRobot - class robocode.AdvancedRobot
A more advanced type of robot than Robot that allows non-blocking calls, custom events, and writes to the filesystem.
ahead(double) - method in class robocode.Robot
Immediately moves your robot ahead (forward) by distance measured in pixels.
ahead(int) - method in class robocode.JuniorRobot
Moves this robot forward by pixels.

## B

back(double) - method in class robocode.Robot
Immediately moves your robot backward by distance measured in pixels.
back(int) - method in class robocode.JuniorRobot
Moves this robot backward by pixels.
BattleAdaptor - class robocode.control.events.BattleAdaptor
An abstract adapter class for receiving battle events by implementing the `IBattleListener`.
BattleAdaptor() - constructor for class robocode.control.events.BattleAdaptor
Creates a BattleAdaptor.
BattleCompletedEvent - class robocode.control.events.BattleCompletedEvent
A BattleCompletedEvent is sent to `onBattleCompleted()` when the battle is completed successfully and results are available.
BattleCompletedEvent(robocode.BattleRules,robocode.BattleResults[]) - constructor for class robocode.control.events.BattleCompletedEvent
Creates a new BattleCompletedEvent.
BattleEndedEvent - class robocode.BattleEndedEvent
A BattleEndedEvent is sent to `onBattleEnded()` when the battle is ended.
BattleEndedEvent(boolean,robocode.BattleResults) - constructor for class robocode.BattleEndedEvent
Called by the game to create a new BattleEndedEvent.
BattleErrorEvent - class robocode.control.events.BattleErrorEvent
A BattleErrorEvent is sent to `onBattleError()` when an error message is sent from the game in the during the battle.
BattleErrorEvent(String) - constructor for class robocode.control.events.BattleErrorEvent
Creates a new BattleErrorEvent.
BattleEvent - class robocode.control.events.BattleEvent
This is the base class of all battle events.
BattleEvent() - constructor for class robocode.control.events.BattleEvent
Creates a new BattleEvent.
BattlefieldSpecification - class robocode.control.BattlefieldSpecification
Defines the size of a battlefield, which is a part of the `BattleSpecification`.
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 the specified width and height.
BattleFinishedEvent - class robocode.control.events.BattleFinishedEvent
A BattleFinishedEvent is sent to `onBattleFinished()` when the battle is finished.
BattleFinishedEvent(boolean) - constructor for class robocode.control.events.BattleFinishedEvent
Creates a new BattleFinishedEvent.
BattleMessageEvent - class robocode.control.events.BattleMessageEvent
A BattleMessageEvent is sent to `onBattleMessage()` when an information message is sent from the game in the during the battle.
BattleMessageEvent(String) - constructor for class robocode.control.events.BattleMessageEvent
Creates a new BattleMessageEvent.
BattlePausedEvent - class robocode.control.events.BattlePausedEvent
A BattlePausedEvent is sent to `onBattlePaused()` when the battle has been paused.
BattlePausedEvent() - constructor for class robocode.control.events.BattlePausedEvent
Creates a new BattlePausedEvent.
BattleProperties getBattleProperties() - method in class robocode.control.BattleSpecification
Do not call this method!
BattleResults - class robocode.BattleResults
Contains the battle results returned by `BattleEndedEvent.getResults()` when a battle has ended.
BattleResults(String,int,double,double,double,double,double,double,double,int,int,int) - constructor for class robocode.BattleResults
Constructs this BattleResults object.
BattleResumedEvent - class robocode.control.events.BattleResumedEvent
A BattleResumedEvent is sent to `onBattleResumed()` when the battle has been resumed (after having been paused).
BattleResumedEvent() - constructor for class robocode.control.events.BattleResumedEvent
Creates a new BattlePausedEvent.
BattleRules - class robocode.BattleRules
Contains the battle rules returned by `BattleStartedEvent.getBattleRules()` when a battle is started and `BattleCompletedEvent.getBattleRules()` when a battle is completed.
BattleRules(robocode.battle.BattleProperties) - constructor for class robocode.BattleRules
Do not call this constructor! This constructor is intended for the game alone.
BattleSpecification - class robocode.control.BattleSpecification
A BattleSpecification defines battle configuration used by the `RobocodeEngine`.
BattleSpecification(int,long,double,robocode.control.BattlefieldSpecification,robocode.control.RobotSpecification[]) - constructor for class robocode.control.BattleSpecification
Creates a new BattleSpecification with the given settings.
BattleSpecification(int,robocode.control.BattlefieldSpecification,robocode.control.RobotSpecification[]) - constructor for class robocode.control.BattleSpecification
Creates a new BattleSpecification with the given number of rounds, battlefield size, and robots.
BattleStartedEvent - class robocode.control.events.BattleStartedEvent
A BattleStartedEvent is sent to `onBattleStarted()` when a new battle is started.
BattleStartedEvent(robocode.BattleRules,int,boolean) - constructor for class robocode.control.events.BattleStartedEvent
Creates a new BattleStartedEvent.
bearGunTo(int) - method in class robocode.JuniorRobot
Turns the gun to the specified angle (in degrees) relative to body of this robot.
black - static field in class robocode.JuniorRobot
The color black (0x000000)
blue - static field in class robocode.JuniorRobot
The color blue (0x0000FF)
boolean test() - method in class robocode.GunTurnCompleteCondition
Tests if the gun has stopped turning.
boolean test() - method in class robocode.MoveCompleteCondition
Tests if the robot has stopped moving.
boolean test() - method in class robocode.RadarTurnCompleteCondition
Tests if the radar has stopped turning.
boolean test() - method in class robocode.TurnCompleteCondition
Tests if the robot has finished turning.
broadcastMessage(Serializable) - method in class robocode.robotinterfaces.peer.ITeamRobotPeer
Broadcasts a message to all teammates.
broadcastMessage(Serializable) - method in class robocode.TeamRobot
Broadcasts a message to all teammates.
brown - static field in class robocode.JuniorRobot
The color brown (0x8B4513)
Bullet - class robocode.Bullet
Represents a bullet.
Bullet(double,double,double,double,String,String,boolean,int) - constructor for class robocode.Bullet
Called by the game to create a new `Bullet` object
bulletDamage - field in class robocode.BattleResults
bulletDamageBonus - field in class robocode.BattleResults
BulletHitBulletEvent - class robocode.BulletHitBulletEvent
This event is sent to `onBulletHitBullet` when one of your bullets has hit another bullet.
BulletHitBulletEvent(robocode.Bullet,robocode.Bullet) - constructor for class robocode.BulletHitBulletEvent
Called by the game to create a new `BulletHitEvent`.
BulletHitEvent - class robocode.BulletHitEvent
This event is sent to `onBulletHit` when one of your bullets has hit another robot.
BulletHitEvent(String,double,robocode.Bullet) - constructor for class robocode.BulletHitEvent
Called by the game to create a new `BulletHitEvent`.
BulletMissedEvent - class robocode.BulletMissedEvent
This event is sent to `onBulletMissed` when one of your bullets has missed, i.e.
BulletMissedEvent(robocode.Bullet) - constructor for class robocode.BulletMissedEvent
Called by the game to create a new `BulletMissedEvent`.
BulletState - class robocode.control.snapshot.BulletState
Defines a bullet state, where the robot can be: just fired, moving somewhere, hitting a victim, hitting another bullet, hitting the wall, exploded, or inactive when it done an inactivated.

## C

cleanup() - method in class robocode.Condition
Called by the system in order to clean up references to internal objects.
clearAllEvents() - method in class robocode.AdvancedRobot
Clears out any pending events in the robot's event queue immediately.
clearAllEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Clears out any pending events in the robot's event queue immediately.
close() - method in class robocode.control.RobocodeEngine
Closes the RobocodeEngine and releases any allocated resources.
compareTo(robocode.BattleResults) - method in class robocode.BattleResults
compareTo(robocode.Event) - method in class robocode.Event
Compares this event to another event regarding precedence.
Condition - class robocode.Condition
Condition is used to define custom `waitFor(Condition)` and custom events for an `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.
convertResults(robocode.BattleResults[]) - static method in class robocode.control.RobotResults
Converts an array of `BattleResults` into an array of `RobotResults`.
CustomEvent - class robocode.CustomEvent
This event is sent to `onCustomEvent()` when a custom condition is met.
CustomEvent(robocode.Condition) - constructor for class robocode.CustomEvent
Called by the game to create a new CustomEvent when a condition is met.
CustomEvent(robocode.Condition,int) - constructor for class robocode.CustomEvent
Called by the game to create a new CustomEvent when a condition is met.

## D

DeathEvent - class robocode.DeathEvent
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 field in class robocode.Rules
The deceleration of a robot, i.e.
doNothing() - method in class robocode.JuniorRobot
Skips a turn.
doNothing() - method in class robocode.Robot
Do nothing this turn, meaning that the robot will skip it's turn.
doNothing(int) - method in class robocode.JuniorRobot
Skips the specified number of turns.
double getBearingDegrees() - method in class robocode.HitRobotEvent
double getBearingDegrees() - method in class robocode.HitWallEvent
double getHeadingDegrees() - method in class robocode.HitByBulletEvent
double getLife() - method in class robocode.BulletHitEvent
double getLife() - method in class robocode.ScannedRobotEvent
double getRobotBearing() - method in class robocode.ScannedRobotEvent
double getRobotBearingDegrees() - method in class robocode.ScannedRobotEvent
double getRobotBearingRadians() - method in class robocode.ScannedRobotEvent
double getRobotDistance() - method in class robocode.ScannedRobotEvent
double getRobotHeading() - method in class robocode.ScannedRobotEvent
double getRobotHeadingDegrees() - method in class robocode.ScannedRobotEvent
double getRobotHeadingRadians() - method in class robocode.ScannedRobotEvent
double getRobotLife() - method in class robocode.BulletHitEvent
double getRobotLife() - method in class robocode.ScannedRobotEvent
double getRobotVelocity() - method in class robocode.ScannedRobotEvent
Droid - interface robocode.Droid
Robots that implement Droid have no scanner, but an extra 20 life/energy.

## E

energy - field in class robocode.JuniorRobot
Current energy of this robot, where 100 means full energy and 0 means no energy (dead).
Event - class robocode.Event
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.
execute() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Executes any pending actions, or continues executing actions that are in process.

## F

fieldHeight - field in class robocode.JuniorRobot
Contains the height of the battlefield.
fieldWidth - field in class robocode.JuniorRobot
Contains the width of the battlefield.
fire() - method in class robocode.JuniorRobot
Fires a bullet with the default power of 1.
fire(double) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately fires a bullet.
fire(double) - method in class robocode.JuniorRobot
Fires a bullet with the specified bullet power, which is between 0.1 and 3 where 3 is the maximum bullet power.
fire(double) - method in class robocode.Robot
Immediately fires a bullet.
fireBullet(double) - method in class robocode.Robot
Immediately fires a bullet.
firsts - field in class robocode.BattleResults

## G

getAdvancedEventListener() - method in class robocode.AdvancedRobot
Do not call this method!

getAdvancedEventListener() - method in class robocode.robotinterfaces.IAdvancedRobot
This method is called by the game to notify this robot about advanced robot event.
getAllEvents() - method in class robocode.AdvancedRobot
Returns a vector containing all events currently in the robot's queue.
getAllEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all events currently in the robot's queue.
getAuthorName() - method in class robocode.control.RobotSpecification
Returns the name of this robot's author.
getBasicEventListener() - method in class robocode.robotinterfaces.IBasicRobot
This method is called by the game to notify this robot about basic robot event.
getBasicEventListener() - method in class robocode.JuniorRobot
Do not call this method!

getBasicEventListener() - method in class robocode.Robot
}
getBattlefield() - method in class robocode.control.BattleSpecification
Returns the battlefield size for this battle.
getBattlefieldHeight() - method in class robocode.BattleRules
Returns the battlefield height.
getBattleFieldHeight() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the height of the current battlefield measured in pixels.
getBattleFieldHeight() - method in class robocode.Robot
Returns the height of the current battlefield measured in pixels.
getBattlefieldWidth() - method in class robocode.BattleRules
Returns the battlefield width.
getBattleFieldWidth() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the width of the current battlefield measured in pixels.
getBattleFieldWidth() - method in class robocode.Robot
Returns the width of the current battlefield measured in pixels.
getBattleRules() - method in class robocode.control.events.BattleCompletedEvent
Returns the rules that was used in the battle.
getBattleRules() - method in class robocode.control.events.BattleStartedEvent
Returns the rules that will be used in the battle.
getBearing() - method in class robocode.HitByBulletEvent
Returns the bearing to the bullet, relative to your robot's heading, in degrees (-180 <32getBearing() <= 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() <32180)
getBearing() - method in class robocode.HitWallEvent
Returns the bearing to the wall you hit, relative to your robot's heading, in degrees (-180 <= getBearing() <32180)
getBearing() - method in class robocode.ScannedRobotEvent
Returns the bearing to the robot you scanned, relative to your robot's heading, in degrees (-180 <= getBearing() <32180)
getBearingRadians() - method in class robocode.HitByBulletEvent
Returns the bearing to the bullet, relative to your robot's heading, in radians (-Math.PI <32getBearingRadians() <= 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() <32PI)
getBearingRadians() - method in class robocode.HitWallEvent
Returns the bearing to the wall you hit, relative to your robot's heading, in radians (-PI <= getBearingRadians() <32PI)
getBearingRadians() - method in class robocode.ScannedRobotEvent
Returns the bearing to the robot you scanned, relative to your robot's heading, in radians (-PI <= getBearingRadians() <32PI)
getBodyColor() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the color of the body.
getBodyHeading() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the direction that the robot's body is facing, in radians.
getBodyHeading() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the body heading in radians.
getBodyTurnRemaining() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the angle remaining in the robot's turn, in radians.
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.BattleResults
Returns the bullet damage score of this robot in the battle.
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.BattleResults
Returns the bullet damage bonus of this robot in the battle.
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.
getBulletHitBulletEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
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.
getBulletHitEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
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.
getBulletMissedEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all BulletMissedEvents currently in the robot's queue.
getBullets() - method in class robocode.control.snapshot.ITurnSnapshot
Returns all bullets currently the battlefield.
getBulletSpeed(double) - static method in class robocode.Rules
Returns the speed of a bullet given a specific bullet power measured in pixels/turn
getCall() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
This call must be made from a robot call to inform the game that the robot made a `get*` call like e.g.
getClassName() - method in class robocode.control.RobotSpecification
Returns the full class name of this robot or team.
getColor() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the color of the bullet.
getCondition() - method in class robocode.CustomEvent
Returns the condition that fired, causing this event to be generated.
getContestantIndex() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the index of the contestant that will not be changed during a battle.
getCurrentBulletDamageScore() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the current bullet damage score.
getCurrentBulletKillBonus() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the current bullet kill bonus.
getCurrentRammingDamageScore() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the current ramming damage score.
getCurrentRammingKillBonus() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the current ramming kill bonus.
getCurrentScore() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the current score.
getCurrentSurvivalBonus() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the current survival bonus.
getCurrentSurvivalScore() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the current survival score.
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`.
getDataDirectory() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
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`.
getDataFile(String) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
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.
getDataQuotaAvailable() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns the data quota available in your data directory, i.e.
getDebugProperties() - method in class robocode.control.snapshot.IRobotSnapshot
Returns a list of all debug properties.
getDescription() - method in class robocode.control.RobotSpecification
Returns the description provided by the author 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.
getDistanceRemaining() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the distance remaining in the robot's current move measured in pixels.
getDistanceRemaining() - method in class robocode.RobotStatus
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.robotinterfaces.peer.IBasicRobotPeer
Returns the robot's current energy.
getEnergy() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the energy level.
getEnergy() - method in class robocode.Robot
Returns the robot's current energy.
getEnergy() - method in class robocode.RobotStatus
Returns the robot's current energy.
getEnergy() - method in class robocode.ScannedRobotEvent
Returns the energy of the robot.
getError() - method in class robocode.control.events.BattleErrorEvent
Returns the error message.
getEventPriority(String) - method in class robocode.AdvancedRobot
Returns the current priority of a class of events.
getEventPriority(String) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns the current priority of a class of events.
getExplosionImageIndex() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the index to which explosion image that must be rendered.
getFirsts() - method in class robocode.BattleResults
Returns the number of rounds this robot placed first in the battle.
getFrame() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the frame number to display.
getGraphics() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns a graphics context used for painting graphical items for the robot.
getGraphics() - method in class robocode.Robot
Returns a graphics context used for painting graphical items for the robot.
getGunColor() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the color of the gun.
getGunCoolingRate() - method in class robocode.BattleRules
Returns the rate at which the gun will cool down, i.e.
getGunCoolingRate() - method in class robocode.control.BattleSpecification
Returns the gun cooling rate of the robots in this battle.
getGunCoolingRate() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the rate at which the gun will cool down, i.e.
getGunCoolingRate() - method in class robocode.Robot
Returns the rate at which the gun will cool down, i.e.
getGunHeading() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the direction that the robot's gun is facing, in radians.
getGunHeading() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the gun heading in radians.
getGunHeading() - method in class robocode.Robot
Returns the direction that the robot's gun is facing, in degrees.
getGunHeading() - method in class robocode.RobotStatus
Returns the direction that the robot's gun is facing, in degrees.
getGunHeadingRadians() - method in class robocode.AdvancedRobot
Returns the direction that the robot's gun is facing, in radians.
getGunHeadingRadians() - method in class robocode.RobotStatus
Returns the direction that the robot's gun is facing, in radians.
getGunHeat() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the current heat of the gun.
getGunHeat() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the gun heat.
getGunHeat() - method in class robocode.Robot
Returns the current heat of the gun.
getGunHeat() - method in class robocode.RobotStatus
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.
getGunTurnRemaining() - method in class robocode.AdvancedRobot
Returns the angle remaining in the gun's turn, in degrees.
getGunTurnRemaining() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the angle remaining in the gun's turn, in radians.
getGunTurnRemaining() - method in class robocode.RobotStatus
Returns the angle remaining in the gun's turn, in degrees.
getGunTurnRemainingRadians() - method in class robocode.AdvancedRobot
Returns the angle remaining in the gun's turn, in radians.
getGunTurnRemainingRadians() - method in class robocode.RobotStatus
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() <32360).
getHeading() - method in class robocode.HitByBulletEvent
Returns the heading of the bullet when it hit you, in degrees (0 <= getHeading() <32360)

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.RobotStatus
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() <32360)
getHeadingRadians() - method in class robocode.AdvancedRobot
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() <322 * Math.PI).
getHeadingRadians() - method in class robocode.HitByBulletEvent
Returns the heading of the bullet when it hit you, in radians (0 <= getHeadingRadians() <322 * PI)

Note: This is not relative to the direction you are facing.
getHeadingRadians() - method in class robocode.RobotStatus
Returns the direction that the robot's body is facing, in radians.
getHeadingRadians() - method in class robocode.ScannedRobotEvent
Returns the heading of the robot, in radians (0 <= getHeading() <322 * PI)
getHeight() - method in class robocode.control.BattlefieldSpecification
Returns 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.
getHitByBulletEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
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.
getHitRobotEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
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.
getHitWallEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all HitWallEvents currently in the robot's queue.
getInactivityTime() - method in class robocode.BattleRules
Returns the allowed inactivity time, where the robot is not taking any action, before will begin to be zapped.
getInactivityTime() - method in class robocode.control.BattleSpecification
Returns the allowed inactivity time for the robots in this battle.
getIndexedResults() - method in class robocode.control.events.BattleCompletedEvent
Returns the unsorted battle results so that robot indexes can be used.
getIndexedTeamScores() - method in class robocode.control.snapshot.ITurnSnapshot
getInteractiveEventListener() - method in class robocode.robotinterfaces.IInteractiveRobot
This method is called by the game to notify this robot about interactive events, i.e.
getInteractiveEventListener() - method in class robocode.Robot
}
getJarFile() - method in class robocode.control.RobotSpecification
Returns the JAR file containing this robot or team, or `null` if it does not come from a JAR file (could be class files instead).
getKey() - method in class robocode.control.snapshot.IDebugProperty
Returns the key of the property.
getLastSurvivorBonus() - method in class robocode.BattleResults
Returns the last survivor score of this robot in the battle.
getLocalRepository() - method in class robocode.control.RobocodeEngine
Returns all robots available from the local robot repository of Robocode.
getLocalRepository(String) - method in class robocode.control.RobocodeEngine
Returns a selection of robots available from the local robot repository of Robocode.
getMessage() - method in class robocode.control.events.BattleMessageEvent
Returns the information message.
getMessage() - method in class robocode.MessageEvent
Returns the message itself.
getMessageEvents() - method in class robocode.robotinterfaces.peer.ITeamRobotPeer
Returns a vector containing all MessageEvents currently in the robot's queue.
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.robotinterfaces.peer.IBasicRobotPeer
Returns the robot's name.
getName() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the name of the robot.
getName() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the name of the robot.
getName() - method in class robocode.RobocodeFileOutputStream
Returns the filename of this output stream.
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.control.RobotSpecification
Returns the name of this robot or team.
getName() - method in class robocode.ScannedRobotEvent
Returns the name of the robot.
getNameAndVersion() - method in class robocode.control.RobotSpecification
Returns the name and version of this robot or team.
getNumRounds() - method in class robocode.BattleRules
Returns the number of rounds.
getNumRounds() - method in class robocode.control.BattleSpecification
Returns the number of rounds in this battle.
getNumRounds() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the number of rounds in the current battle.
getNumRounds() - method in class robocode.Robot
Returns the number of rounds in the current battle.
getNumRounds() - method in class robocode.RobotStatus
Returns the number of rounds in the current battle.
getOthers() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns how many opponents that are left in the current round.
getOthers() - method in class robocode.Robot
Returns how many opponents that are left in the current round.
getOthers() - method in class robocode.RobotStatus
Returns how many opponents that are left in the current round.
getOutputStreamSnapshot() - method in class robocode.control.snapshot.IRobotSnapshot
Returns a snapshot of the output print stream for this robot.
getPaintEventListener() - method in class robocode.robotinterfaces.IPaintRobot
This method is called by the game to notify this robot about painting events.
getPaintEventListener() - method in class robocode.Robot
}
getPaintX() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the x coordinate where to paint the bullet.
getPaintY() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the y coordinate where to paint the bullet.
getPower() - method in class robocode.Bullet
Returns the power of this bullet.
getPower() - method in class robocode.HitByBulletEvent
Returns the power of this bullet.
getPower() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the bullet power.
getPriority() - method in class robocode.Condition
Returns the priority of this condition.
getPriority() - method in class robocode.Event
Returns the priority of this event.
getRadarColor() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the color of the radar.
getRadarHeading() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the direction that the robot's radar is facing, in radians.
getRadarHeading() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the radar heading in radians.
getRadarHeading() - method in class robocode.Robot
Returns the direction that the robot's radar is facing, in degrees.
getRadarHeading() - method in class robocode.RobotStatus
Returns the direction that the robot's radar is facing, in degrees.
getRadarHeadingRadians() - method in class robocode.AdvancedRobot
Returns the direction that the robot's radar is facing, in radians.
getRadarHeadingRadians() - method in class robocode.RobotStatus
Returns the direction that the robot's radar is facing, in radians.
getRadarTurnRemaining() - method in class robocode.AdvancedRobot
Returns the angle remaining in the radar's turn, in degrees.
getRadarTurnRemaining() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the angle remaining in the radar's turn, in radians.
getRadarTurnRemaining() - method in class robocode.RobotStatus
Returns the angle remaining in the radar's turn, in degrees.
getRadarTurnRemainingRadians() - method in class robocode.AdvancedRobot
Returns the angle remaining in the radar's turn, in radians.
getRadarTurnRemainingRadians() - method in class robocode.RobotStatus
Returns the angle remaining in the radar's turn, in radians.
getRamDamage() - method in class robocode.BattleResults
Returns the ram damage score of this robot in the battle.
getRamDamageBonus() - method in class robocode.BattleResults
Returns the ram damage bonus of this robot in the battle.
getRandom() - static method in class robocode.util.Utils
Returns random number generator.
getRank() - method in class robocode.BattleResults
Returns the rank of this robot in the battle results.
getResults() - method in class robocode.BattleEndedEvent
Returns the battle results.
getRobocodeVersion() - method in class robocode.control.RobotSpecification
Returns the version of Robocode this robot was based on.
getRobot() - method in class robocode.control.RobotResults
Returns the robot these results are meant for.
getRobotDeathEvents() - method in class robocode.AdvancedRobot
Returns a vector containing all RobotDeathEvents currently in the robot's queue.
getRobotDeathEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all RobotDeathEvents currently in the robot's queue.
getRobotRunnable() - method in class robocode.robotinterfaces.IBasicRobot
This method is called by the game to invoke the `run()` method of your robot, where the program of your robot is implemented.
getRobotRunnable() - method in class robocode.JuniorRobot
Do not call this method!

getRobotRunnable() - method in class robocode.Robot
}
getRobots() - method in class robocode.control.BattleSpecification
Returns the specifications of the robots participating in this battle.
getRobots() - method in class robocode.control.snapshot.ITurnSnapshot
Returns all robots participating in the battle.
getRobotsCount() - method in class robocode.control.events.BattleStartedEvent
Returns the number of robots participating in the battle.
getRound() - method in class robocode.control.snapshot.ITurnSnapshot
Returns the current turn.
getRound() - method in class robocode.control.events.RoundEndedEvent
Returns the round number that was ended.
getRound() - method in class robocode.control.events.RoundStartedEvent
Returns the round number.
getRoundNum() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the number of the current round (0 to `getNumRounds()` - 1) in the battle.
getRoundNum() - method in class robocode.Robot
Returns the current round number (0 to `getNumRounds()` - 1) of the battle.
getRoundNum() - method in class robocode.RobotStatus
Returns the current round number (0 to `getNumRounds()` - 1) of the battle.
getScanColor() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the color of the scan arc.
getScannedRobotEvents() - method in class robocode.AdvancedRobot
Returns a vector containing all ScannedRobotEvents currently in the robot's queue.
getScannedRobotEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all ScannedRobotEvents currently in the robot's queue.
getScore() - method in class robocode.BattleResults
Returns the total score of this robot in the battle.
getScoreSnapshot() - method in class robocode.control.snapshot.IRobotSnapshot
Returns snapshot current score.
getSeconds() - method in class robocode.BattleResults
Returns the number of rounds this robot placed second in the battle.
getSender() - method in class robocode.MessageEvent
Returns the name of the sending robot.
getShortName() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the very short name of the robot.
getSortedResults() - method in class robocode.control.events.BattleCompletedEvent
Returns the battle results sorted on score, meaning that robot indexes cannot be used.
getSortedTeamScores() - method in class robocode.control.snapshot.ITurnSnapshot
getSourceEvent() - method in class robocode.KeyEvent
Do not call this method!

This method is used by the game to determine the type of the source key event that occurred in the AWT.
getSourceEvent() - method in class robocode.MouseEvent
Do not call this method!

This method is used by the game to determine the type of the source mouse event that occurred in the AWT.
getStartSnapshot() - method in class robocode.control.events.RoundStartedEvent
Returns the start snapshot of the participating robots, initial starting positions etc.
getState() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the bullet state.
getState() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the robot status.
getStatus() - method in class robocode.StatusEvent
Returns the `RobotStatus` at the time defined by `Robot.getTime()`.
getStatusEvents() - method in class robocode.AdvancedRobot
Returns a vector containing all StatusEvents currently in the robot's queue.
getStatusEvents() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all StatusEvents currently in the robot's queue.
getSurvival() - method in class robocode.BattleResults
Returns the survival score of this robot in the battle.
getTeamEventListener() - method in class robocode.robotinterfaces.ITeamRobot
This method is called by the game to notify this robot about team events.
getTeamEventListener() - method in class robocode.TeamRobot
Do not call this method!

getTeamLeaderName() - method in class robocode.BattleResults
Returns the name of the team leader in the team or the name of the robot if the robot is not participating in a team.
getTeammates() - method in class robocode.robotinterfaces.peer.ITeamRobotPeer
Returns the names of all teammates, or `null` there is no teammates.
getTeammates() - method in class robocode.TeamRobot
Returns the names of all teammates, or `null` there is no teammates.
getTeamName() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the name of the team, or name of the robot if the contestant is not a team.
getThirds() - method in class robocode.BattleResults
Returns the number of rounds this robot placed third in the battle.
getTime() - method in class robocode.Event
Returns the time this event occurred.
getTime() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the game time of the current round, where the time is equal to the current turn in the round.
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.
getTime() - method in class robocode.RobotStatus
Returns the game time of the round, where the time is equal to the current turn in the round.
getTotalBulletDamageScore() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total bullet damage score.
getTotalBulletKillBonus() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total bullet kill bonus.
getTotalFirsts() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total number of first places.
getTotalLastSurvivorBonus() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total last survivor score.
getTotalRammingDamageScore() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total ramming damage score.
getTotalRammingKillBonus() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total ramming kill bonus.
getTotalScore() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total score.
getTotalSeconds() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total number of second places.
getTotalSurvivalScore() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total survival score.
getTotalThirds() - method in class robocode.control.snapshot.IScoreSnapshot
Returns the total number of third places.
getTPS() - method in class robocode.control.snapshot.ITurnSnapshot
Returns the current TPS (turns per second).
getTurn() - method in class robocode.control.snapshot.ITurnSnapshot
Returns the current turn.
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.
getTurnRemaining() - method in class robocode.RobotStatus
Returns the angle remaining in the robots's turn, in degrees.
getTurnRemainingRadians() - method in class robocode.AdvancedRobot
Returns the angle remaining in the robot's turn, in radians.
getTurnRemainingRadians() - method in class robocode.RobotStatus
Returns the angle remaining in the robots's turn, in radians.
getTurns() - method in class robocode.control.events.RoundEndedEvent
Returns the number of turns that this round reached.
getTurnSnapshot() - method in class robocode.control.events.TurnEndedEvent
Returns a snapshot of the turn that has ended.
getValue() - method in class robocode.control.snapshot.IDebugProperty
Returns the value of the property.
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.robotinterfaces.peer.IBasicRobotPeer
Returns the velocity of the robot measured in pixels/turn.
getVelocity() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the velocity.
getVelocity() - method in class robocode.Robot
Returns the velocity of the robot measured in pixels/turn.
getVelocity() - method in class robocode.RobotStatus
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
Returns the version of this robot or team.
getVeryShortName() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the very short name of the 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.
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
Returns the web page for this robot.
getWidth() - method in class robocode.control.BattlefieldSpecification
Returns 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.robotinterfaces.peer.IBasicRobotPeer
Returns the X position of the robot.
getX() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the x coordinate of the bullet.
getX() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the x coordinate of the robot.
getX() - method in class robocode.Robot
Returns the X position of the robot.
getX() - method in class robocode.RobotStatus
Returns the X position of the robot.
getY() - method in class robocode.Bullet
Returns the Y position of the bullet.
getY() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the Y position of the robot.
getY() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the y coordinate of the bullet.
getY() - method in class robocode.control.snapshot.IRobotSnapshot
Returns the y coordinate of the robot.
getY() - method in class robocode.Robot
Returns the Y position of the robot.
getY() - method in class robocode.RobotStatus
Returns the Y position of the robot.
gray - static field in class robocode.JuniorRobot
The color gray (0x808080)
green - static field in class robocode.JuniorRobot
The color green (0x008000)
GUN_TURN_RATE - static field in class robocode.Rules
The turning rate of the gun measured in degrees, which is 20 degrees/turn.
GUN_TURN_RATE_RADIANS - static field in class robocode.Rules
The turning rate of the gun measured in radians instead of degrees.
gunBearing - field in class robocode.JuniorRobot
Current gun heading angle of this robot compared to its body (in degrees).
gunHeading - field in class robocode.JuniorRobot
Current gun heading angle of this robot (in degrees).
gunReady - field in class robocode.JuniorRobot
Flag specifying if the gun is ready to fire, i.e.
GunTurnCompleteCondition - class robocode.GunTurnCompleteCondition
A prebuilt condition you can use that indicates your gun has finished turning.
GunTurnCompleteCondition(robocode.AdvancedRobot) - constructor for class robocode.GunTurnCompleteCondition
Creates a new GunTurnCompleteCondition with default priority.
GunTurnCompleteCondition(robocode.AdvancedRobot,int) - constructor for class robocode.GunTurnCompleteCondition
Creates a new GunTurnCompleteCondition with a specific priority.

## H

heading - field in class robocode.JuniorRobot
Current heading angle of this robot (in degrees).
hitByBulletAngle - field in class robocode.JuniorRobot
Latest angle from where this robot was hit by a bullet (in degrees).
hitByBulletBearing - field in class robocode.JuniorRobot
Latest angle from where this robot was hit by a bullet (in degrees) compared to the body of this robot.
HitByBulletEvent - class robocode.HitByBulletEvent
A HitByBulletEvent is sent to `onHitByBullet()` when your robot has been hit by a bullet.
HitByBulletEvent(double,robocode.Bullet) - constructor for class robocode.HitByBulletEvent
Called by the game to create a new HitByBulletEvent.
hitRobotAngle - field in class robocode.JuniorRobot
Latest angle where this robot has hit another robot (in degrees).
hitRobotBearing - field in class robocode.JuniorRobot
Latest angle where this robot has hit another robot (in degrees) compared to the body of this robot.
HitRobotEvent - class robocode.HitRobotEvent
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.
hitWallAngle - field in class robocode.JuniorRobot
Latest angle where this robot has hit a wall (in degrees).
hitWallBearing - field in class robocode.JuniorRobot
Latest angle where this robot has hit a wall (in degrees) compared to the body of this robot.
HitWallEvent - class robocode.HitWallEvent
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

IAdvancedEvents - interface robocode.robotinterfaces.IAdvancedEvents
An event interface for receiving advanced robot events with an `IAdvancedRobot`.
IAdvancedRobot - interface robocode.robotinterfaces.IAdvancedRobot
A robot interface for creating a more advanced type of robot like `AdvancedRobot` that is able to handle advanced robot events.
IAdvancedRobotPeer - interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
The advanced robot peer for advanced robot types like `AdvancedRobot` and `TeamRobot`.
IBasicEvents - interface robocode.robotinterfaces.IBasicEvents
An event interface for receiving basic robot events with an `IBasicRobot`.
IBasicEvents2 - interface robocode.robotinterfaces.IBasicEvents2
First extended version of the `IBasicEvents` interface.
IBasicRobot - interface robocode.robotinterfaces.IBasicRobot
A robot interface for creating a basic type of robot like `Robot` that is able to receive common robot events, but not interactive events as with the `Robot` class.
IBasicRobotPeer - interface robocode.robotinterfaces.peer.IBasicRobotPeer
The basic robot peer for all robot types.
IBattleListener - interface robocode.control.events.IBattleListener
The listener interface for receiving "interesting" battle events from the game, e.g.
IBulletSnapshot - interface robocode.control.snapshot.IBulletSnapshot
Interface of a bullet snapshot.
IDebugProperty - interface robocode.control.snapshot.IDebugProperty
Interface of a debug property, which is a key-value pair.
IInteractiveEvents - interface robocode.robotinterfaces.IInteractiveEvents
An event interface for receiving interactive events with an `IInteractiveRobot`.
IInteractiveRobot - interface robocode.robotinterfaces.IInteractiveRobot
A robot interface for creating an interactive type of robot like `Robot` and `AdvancedRobot` that is able to receive interactive events from the keyboard or mouse.
IJuniorRobot - interface robocode.robotinterfaces.IJuniorRobot
A robot interface for creating the most primitive robot type, which is a `JuniorRobot`.
IJuniorRobotPeer - interface robocode.robotinterfaces.peer.IJuniorRobotPeer
The junior robot peer for junior robot types like `JuniorRobot`.
int compareTo(robocode.Event) - method in class robocode.HitRobotEvent
int compareTo(robocode.Event) - method in class robocode.ScannedRobotEvent
int getPriority() - method in class robocode.BattleEndedEvent
int getPriority() - method in class robocode.DeathEvent
int getPriority() - method in class robocode.SkippedTurnEvent
int getPriority() - method in class robocode.WinEvent
IPaintEvents - interface robocode.robotinterfaces.IPaintEvents
An event interface for receiving paint events with an `IPaintRobot`.
IPaintRobot - interface robocode.robotinterfaces.IPaintRobot
A robot interface that makes it possible for a robot to receive paint events.
IRobotSnapshot - interface robocode.control.snapshot.IRobotSnapshot
Interface of a robot snapshot.
isAborted() - method in class robocode.BattleEndedEvent
Checks if this battle was aborted.
isAborted() - method in class robocode.control.events.BattleFinishedEvent
Checks if the battle was aborted.
isActive() - method in class robocode.Bullet
Checks if this bullet is still active on the battlefield.
isAdjustGunForBodyTurn() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Checks if the gun is set to adjust for the robot turning, i.e.
isAdjustGunForRobotTurn() - method in class robocode.AdvancedRobot
Checks if the gun is set to adjust for the robot turning, i.e.
isAdjustRadarForBodyTurn() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Checks if the radar is set to adjust for the gun turning, i.e.
isAdjustRadarForGunTurn() - method in class robocode.AdvancedRobot
Checks if the radar is set to adjust for the gun turning, i.e.
isAdjustRadarForGunTurn() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Checks if the radar is set to adjust for the robot turning, i.e.
isAdjustRadarForRobotTurn() - method in class robocode.AdvancedRobot
Checks if the radar is set to adjust for the robot turning, i.e.
IScoreSnapshot - interface robocode.control.snapshot.IScoreSnapshot
Interface of a robot/team score snapshot.
isDroid() - method in class robocode.control.snapshot.IRobotSnapshot
Returns a flag specifying if this robot is a `Droid`.
isExplosion() - method in class robocode.control.snapshot.IBulletSnapshot
Returns the flag specifying if this bullet has turned into an explosion.
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 `double` values are near to each other.
isPaintEnabled() - method in class robocode.control.snapshot.IRobotSnapshot
Returns a flag specifying if robot's (onPaint) painting is enabled for the robot.
isPaintRobot() - method in class robocode.control.snapshot.IRobotSnapshot
Returns a flag specifying if this robot is an `IPaintRobot` or is asking for getGraphics().
isReplay() - method in class robocode.control.events.BattleStartedEvent
Checks if this battle is a replay or real battle.
isSGPaintEnabled() - method in class robocode.control.snapshot.IRobotSnapshot
Returns a flag specifying if RobocodeSG painting is enabled for the robot.
IStandardRobotPeer - interface robocode.robotinterfaces.peer.IStandardRobotPeer
The standard robot peer for standard robot types like `Robot`, `AdvancedRobot`, and `TeamRobot`.
isTeammate(String) - method in class robocode.robotinterfaces.peer.ITeamRobotPeer
Checks if a given robot name is the name of one of your teammates.
isTeammate(String) - method in class robocode.TeamRobot
Checks if a given robot name is the name of one of your teammates.
ITeamEvents - interface robocode.robotinterfaces.ITeamEvents
An event interface for receiving robot team events with an `ITeamRobot`.
ITeamRobot - interface robocode.robotinterfaces.ITeamRobot
A robot interface for creating a team robot like `TeamRobot` that is able to receive team events.
ITeamRobotPeer - interface robocode.robotinterfaces.peer.ITeamRobotPeer
The team robot peer for team robots like `TeamRobot`.
ITurnSnapshot - interface robocode.control.snapshot.ITurnSnapshot
Interface of a turn snapshot.

## J

JuniorRobot - class robocode.JuniorRobot
This is the simplest robot type, which is simpler than the `Robot` and `AdvancedRobot` classes.

## K

KeyEvent - class robocode.KeyEvent
Super class of all events that originates from the keyboard.
KeyEvent(java.awt.event.KeyEvent) - constructor for class robocode.KeyEvent
Called by the game to create a new KeyEvent.
KeyPressedEvent - class robocode.KeyPressedEvent
A KeyPressedEvent is sent to `onKeyPressed()` when a key has been pressed on the keyboard.
KeyPressedEvent(java.awt.event.KeyEvent) - constructor for class robocode.KeyPressedEvent
Called by the game to create a new KeyPressedEvent.
KeyReleasedEvent - class robocode.KeyReleasedEvent
A KeyReleasedEvent is sent to `onKeyReleased()` when a key has been released on the keyboard.
KeyReleasedEvent(java.awt.event.KeyEvent) - constructor for class robocode.KeyReleasedEvent
Called by the game to create a new KeyReleasedEvent.
KeyTypedEvent - class robocode.KeyTypedEvent
A KeyTypedEvent is sent to `onKeyTyped()` when a key has been typed (pressed and released) on the keyboard.
KeyTypedEvent(java.awt.event.KeyEvent) - constructor for class robocode.KeyTypedEvent
Called by the game to create a new KeyTypedEvent.

## L

lastSurvivorBonus - field in class robocode.BattleResults

## M

main(String[]) - static method in class robocode.Robocode
Use the command-line to start Robocode.
MAX_BULLET_POWER - static field in class robocode.Rules
The maximum bullet power, i.e.
MAX_TURN_RATE - static field in class robocode.Rules
The maximum turning rate of the robot, in degrees, which is 10 degress/turn.
MAX_TURN_RATE_RADIANS - static field in class robocode.Rules
The maximum turning rate of the robot measured in radians instead of degrees.
MAX_VELOCITY - static field in class robocode.Rules
The maximum velocity of a robot, which is 8 pixels/turn.
MessageEvent - class robocode.MessageEvent
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 field 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.
MouseClickedEvent - class robocode.MouseClickedEvent
A MouseClickedEvent is sent to `onMouseClicked()` when the mouse is clicked inside the battle view.
MouseClickedEvent(java.awt.event.MouseEvent) - constructor for class robocode.MouseClickedEvent
Called by the game to create a new MouseClickedEvent.
MouseDraggedEvent - class robocode.MouseDraggedEvent
A MouseDraggedEvent is sent to `onMouseDragged()` when the mouse is dragged inside the battle view.
MouseDraggedEvent(java.awt.event.MouseEvent) - constructor for class robocode.MouseDraggedEvent
Called by the game to create a new MouseDraggedEvent.
MouseEnteredEvent - class robocode.MouseEnteredEvent
A MouseEnteredEvent is sent to `onMouseEntered()` when the mouse has entered the battle view.
MouseEnteredEvent(java.awt.event.MouseEvent) - constructor for class robocode.MouseEnteredEvent
Called by the game to create a new MouseEnteredEvent.
MouseEvent - class robocode.MouseEvent
Super class of all events that originates from the mouse.
MouseEvent(java.awt.event.MouseEvent) - constructor for class robocode.MouseEvent
Called by the game to create a new MouseEvent.
MouseExitedEvent - class robocode.MouseExitedEvent
A MouseExitedEvent is sent to `onMouseExited()` when the mouse has exited the battle view.
MouseExitedEvent(java.awt.event.MouseEvent) - constructor for class robocode.MouseExitedEvent
Called by the game to create a new MouseExitedEvent.
MouseMovedEvent - class robocode.MouseMovedEvent
A MouseMovedEvent is sent to `onMouseMoved()` when the mouse has moved inside the battle view.
MouseMovedEvent(java.awt.event.MouseEvent) - constructor for class robocode.MouseMovedEvent
Called by the game to create a new MouseMovedEvent.
MousePressedEvent - class robocode.MousePressedEvent
A MousePressedEvent is sent to `onMousePressed()` when the mouse is pressed inside the battle view.
MousePressedEvent(java.awt.event.MouseEvent) - constructor for class robocode.MousePressedEvent
Called by the game to create a new MousePressedEvent.
MouseReleasedEvent - class robocode.MouseReleasedEvent
A MouseReleasedEvent is sent to `onMouseReleased()` when the mouse is released inside the battle view.
MouseReleasedEvent(java.awt.event.MouseEvent) - constructor for class robocode.MouseReleasedEvent
Called by the game to create a new MouseReleasedEvent.
MouseWheelMovedEvent - class robocode.MouseWheelMovedEvent
A MouseWheelMovedEvent is sent to `onMouseWheelMoved()` when the mouse wheel is rotated inside the battle view.
MouseWheelMovedEvent(java.awt.event.MouseEvent) - constructor for class robocode.MouseWheelMovedEvent
Called by the game to create a new MouseWheelMovedEvent.
move(double) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately moves your robot forward or backward by distance measured in pixels.
MoveCompleteCondition - class robocode.MoveCompleteCondition
A prebuilt condition you can use that indicates your robot has finished moving.
MoveCompleteCondition(robocode.AdvancedRobot) - constructor for class robocode.MoveCompleteCondition
Creates a new MoveCompleteCondition with default priority.
MoveCompleteCondition(robocode.AdvancedRobot,int) - constructor for class robocode.MoveCompleteCondition
Creates a new MoveCompleteCondition with the specified priority.

## N

name - field in class robocode.Condition
The name of this condition.
NEAR_DELTA - static field in class robocode.util.Utils
normalAbsoluteAngle(double) - static method in class robocode.util.Utils
Normalizes an angle to an absolute angle.
normalAbsoluteAngleDegrees(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.
normalNearAbsoluteAngleDegrees(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.
normalRelativeAngleDegrees(double) - static method in class robocode.util.Utils
Normalizes an angle to a relative angle.

## O

onBattleCompleted(robocode.control.events.BattleCompletedEvent) - method in class robocode.control.events.BattleAdaptor
onBattleCompleted(robocode.control.events.BattleCompletedEvent) - method in class robocode.control.events.IBattleListener
This method is called when the battle has completed successfully and results are available.
onBattleEnded(robocode.BattleEndedEvent) - method in class robocode.robotinterfaces.IBasicEvents2
This method is called after end of the battle, even when the battle is aborted.
onBattleEnded(robocode.BattleEndedEvent) - method in class robocode.Robot
onBattleError(robocode.control.events.BattleErrorEvent) - method in class robocode.control.events.BattleAdaptor
onBattleError(robocode.control.events.BattleErrorEvent) - method in class robocode.control.events.IBattleListener
This method is called when the game has sent an error message.
onBattleFinished(robocode.control.events.BattleFinishedEvent) - method in class robocode.control.events.BattleAdaptor
onBattleFinished(robocode.control.events.BattleFinishedEvent) - method in class robocode.control.events.IBattleListener
This method is called when the battle has finished.
onBattleMessage(robocode.control.events.BattleMessageEvent) - method in class robocode.control.events.BattleAdaptor
onBattleMessage(robocode.control.events.BattleMessageEvent) - method in class robocode.control.events.IBattleListener
This method is called when the game has sent a new information message.
onBattlePaused(robocode.control.events.BattlePausedEvent) - method in class robocode.control.events.BattleAdaptor
onBattlePaused(robocode.control.events.BattlePausedEvent) - method in class robocode.control.events.IBattleListener
This method is called when the battle has been paused, either by the user or the game.
onBattleResumed(robocode.control.events.BattleResumedEvent) - method in class robocode.control.events.BattleAdaptor
onBattleResumed(robocode.control.events.BattleResumedEvent) - method in class robocode.control.events.IBattleListener
This method is called when the battle has been resumed (after having been paused).
onBattleStarted(robocode.control.events.BattleStartedEvent) - method in class robocode.control.events.BattleAdaptor
onBattleStarted(robocode.control.events.BattleStartedEvent) - method in class robocode.control.events.IBattleListener
This method is called when a new battle has started.
onBulletHit(robocode.BulletHitEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called when one of your bullets hits another robot.
onBulletHit(robocode.BulletHitEvent) - method in class robocode.Robot
onBulletHitBullet(robocode.BulletHitBulletEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called when one of your bullets hits another bullet.
onBulletHitBullet(robocode.BulletHitBulletEvent) - method in class robocode.Robot
onBulletMissed(robocode.BulletMissedEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called when one of your bullets misses, i.e.
onBulletMissed(robocode.BulletMissedEvent) - method in class robocode.Robot
onCustomEvent(robocode.CustomEvent) - method in class robocode.AdvancedRobot
onCustomEvent(robocode.CustomEvent) - method in class robocode.robotinterfaces.IAdvancedEvents
This method is called when a custom condition is met.
onDeath(robocode.DeathEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called if your robot dies.
onDeath(robocode.DeathEvent) - method in class robocode.Robot
onHitByBullet() - method in class robocode.JuniorRobot
This event methods is called from the game when this robot has been hit by another robot's bullet.
onHitByBullet(robocode.HitByBulletEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called when your robot is hit by a bullet.
onHitByBullet(robocode.HitByBulletEvent) - method in class robocode.Robot
onHitRobot() - method in class robocode.JuniorRobot
This event methods is called from the game when a bullet from this robot has hit another robot.
onHitRobot(robocode.HitRobotEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called when your robot collides with another robot.
onHitRobot(robocode.HitRobotEvent) - method in class robocode.Robot
onHitWall() - method in class robocode.JuniorRobot
This event methods is called from the game when this robot has hit a wall.
onHitWall(robocode.HitWallEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called when your robot collides with a wall.
onHitWall(robocode.HitWallEvent) - method in class robocode.Robot
onKeyPressed(KeyEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when a key has been pressed.
onKeyPressed(KeyEvent) - method in class robocode.Robot
onKeyReleased(KeyEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when a key has been released.
onKeyReleased(KeyEvent) - method in class robocode.Robot
onKeyTyped(KeyEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when a key has been typed (pressed and released).
onKeyTyped(KeyEvent) - method in class robocode.Robot
onMessageReceived(robocode.MessageEvent) - method in class robocode.robotinterfaces.ITeamEvents
This method is called when your robot receives a message from a teammate.
onMessageReceived(robocode.MessageEvent) - method in class robocode.TeamRobot
onMouseClicked(MouseEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when a mouse button has been clicked (pressed and released).
onMouseClicked(MouseEvent) - method in class robocode.Robot
onMouseDragged(MouseEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when a mouse button has been pressed and then dragged.
onMouseDragged(MouseEvent) - method in class robocode.Robot
onMouseEntered(MouseEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when the mouse has entered the battle view.
onMouseEntered(MouseEvent) - method in class robocode.Robot
onMouseExited(MouseEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when the mouse has exited the battle view.
onMouseExited(MouseEvent) - method in class robocode.Robot
onMouseMoved(MouseEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when the mouse has been moved.
onMouseMoved(MouseEvent) - method in class robocode.Robot
onMousePressed(MouseEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when a mouse button has been pressed.
onMousePressed(MouseEvent) - method in class robocode.Robot
onMouseReleased(MouseEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when a mouse button has been released.
onMouseReleased(MouseEvent) - method in class robocode.Robot
onMouseWheelMoved(MouseWheelEvent) - method in class robocode.robotinterfaces.IInteractiveEvents
This method is called when the mouse wheel has been rotated.
onMouseWheelMoved(MouseWheelEvent) - method in class robocode.Robot
onPaint(Graphics2D) - method in class robocode.robotinterfaces.IPaintEvents
This method is called every time the robot is painted.
onPaint(Graphics2D) - method in class robocode.Robot
onRobotDeath(robocode.RobotDeathEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called when another robot dies.
onRobotDeath(robocode.RobotDeathEvent) - method in class robocode.Robot
onRoundEnded(robocode.control.events.RoundEndedEvent) - method in class robocode.control.events.BattleAdaptor
onRoundEnded(robocode.control.events.RoundEndedEvent) - method in class robocode.control.events.IBattleListener
This method is called when the current round of a battle has ended.
onRoundStarted(robocode.control.events.RoundStartedEvent) - method in class robocode.control.events.BattleAdaptor
onRoundStarted(robocode.control.events.RoundStartedEvent) - method in class robocode.control.events.IBattleListener
This method is called when a new round in a battle has started.
onScannedRobot() - method in class robocode.JuniorRobot
This event method is called from the game when the radar detects another robot.
onScannedRobot(robocode.ScannedRobotEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called when your robot sees another robot, i.e.
onScannedRobot(robocode.ScannedRobotEvent) - method in class robocode.Robot
onSkippedTurn(robocode.SkippedTurnEvent) - method in class robocode.AdvancedRobot
onSkippedTurn(robocode.SkippedTurnEvent) - method in class robocode.robotinterfaces.IAdvancedEvents
This method is called if the robot is using too much time between actions.
onStatus(robocode.StatusEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called every turn in a battle round in order to provide the robot status as a complete snapshot of the robot's current state at that specific time.
onStatus(robocode.StatusEvent) - method in class robocode.Robot
onTurnEnded(robocode.control.events.TurnEndedEvent) - method in class robocode.control.events.BattleAdaptor
onTurnEnded(robocode.control.events.TurnEndedEvent) - method in class robocode.control.events.IBattleListener
This method is called when the current turn in a battle round is ended.
onTurnStarted(robocode.control.events.TurnStartedEvent) - method in class robocode.control.events.BattleAdaptor
onTurnStarted(robocode.control.events.TurnStartedEvent) - method in class robocode.control.events.IBattleListener
This method is called when a new turn in a battle round has started.
onWin(robocode.WinEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called if your robot wins a battle.
onWin(robocode.WinEvent) - method in class robocode.Robot
orange - static field in class robocode.JuniorRobot
The color orange (0xFFA500)
others - field in class robocode.JuniorRobot
Current number of other robots on the battle field.

## P

PaintEvent - class robocode.PaintEvent
This event occurs when your robot should paint, where the `onPaint()` is called on your robot.
PaintEvent() - constructor for class robocode.PaintEvent
Called by the game to create a new PaintEvent.
printRunningThreads() - static method in class robocode.control.RobocodeEngine
Print out all running threads to standard system out.
priority - field in class robocode.Condition
The priority of this condition.
purple - static field in class robocode.JuniorRobot
The color purple (0x800080)

## R

RADAR_SCAN_RADIUS - static field in class robocode.Rules
The radar scan radius, which is 1200 pixels.
RADAR_TURN_RATE - static field in class robocode.Rules
The turning rate of the radar measured in degrees, which is 45 degrees/turn.
RADAR_TURN_RATE_RADIANS - static field in class robocode.Rules
The turning rate of the radar measured in radians instead of degrees.
RadarTurnCompleteCondition - class robocode.RadarTurnCompleteCondition
A prebuilt condition you can use that indicates your radar has finished turning.
RadarTurnCompleteCondition(robocode.AdvancedRobot) - constructor for class robocode.RadarTurnCompleteCondition
Creates a new RadarTurnCompleteCondition with default priority.
RadarTurnCompleteCondition(robocode.AdvancedRobot,int) - constructor for class robocode.RadarTurnCompleteCondition
Creates a new RadarTurnCompleteCondition with the specified priority.
ramDamage - field in class robocode.BattleResults
ramDamageBonus - field in class robocode.BattleResults
rank - field in class robocode.BattleResults
red - static field in class robocode.JuniorRobot
The color red (0xFF0000)
removeBattleListener(robocode.control.events.IBattleListener) - method in class robocode.control.RobocodeEngine
Removes a battle listener that has previously been added to this object.
removeCustomEvent(robocode.Condition) - method in class robocode.AdvancedRobot
Removes a custom event that was previously added by calling `addCustomEvent(Condition)`.
removeCustomEvent(robocode.Condition) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Removes a custom event that was previously added by calling `addCustomEvent(Condition)`.
rescan() - method in class robocode.robotinterfaces.peer.IStandardRobotPeer
Rescan for other robots.
resume() - method in class robocode.robotinterfaces.peer.IStandardRobotPeer
Immediately resumes the movement you stopped by `stop(boolean)`, if any.
resume() - method in class robocode.Robot
Immediately resumes the movement you stopped by `stop()`, if any.
Robocode - class robocode.Robocode
Robocode - A programming game involving battling AI tanks.
Copyright (c) 2001, 2008 Mathew A.
RobocodeEngine - class robocode.control.RobocodeEngine
The RobocodeEngine is the old interface provided for external applications in order to let these applications run battles within the Robocode application, and to get the results from these battles.
RobocodeEngine() - constructor for class robocode.control.RobocodeEngine
Creates a new RobocodeEngine for controlling Robocode.
RobocodeEngine(File) - constructor for class robocode.control.RobocodeEngine
Creates a new RobocodeEngine for controlling Robocode.
RobocodeFileOutputStream - class robocode.RobocodeFileOutputStream
RobocodeFileOutputStream is similar to a `FileOutputStream` and is used for streaming/writing data out to a file, which you got previously by calling `getDataFile()`.
RobocodeFileOutputStream(File) - constructor for class robocode.RobocodeFileOutputStream
Constructs a new RobocodeFileOutputStream.
RobocodeFileOutputStream(FileDescriptor) - constructor for class robocode.RobocodeFileOutputStream
Constructs a new RobocodeFileOutputStream.
RobocodeFileOutputStream(String) - constructor for class robocode.RobocodeFileOutputStream
Constructs a new RobocodeFileOutputStream.
RobocodeFileOutputStream(String,boolean) - constructor for class robocode.RobocodeFileOutputStream
Constructs a new RobocodeFileOutputStream.
RobocodeFileWriter - class robocode.RobocodeFileWriter
RobocodeFileWriter is similar to a `FileWriter` and is used for writing data out to a file, which you got by calling `getDataFile()`.
RobocodeFileWriter(File) - constructor for class robocode.RobocodeFileWriter
Constructs a new RobocodeFileWriter.
RobocodeFileWriter(FileDescriptor) - constructor for class robocode.RobocodeFileWriter
Constructs a new RobocodeFileWriter.
RobocodeFileWriter(String) - constructor for class robocode.RobocodeFileWriter
Constructs a new RobocodeFileWriter.
RobocodeFileWriter(String,boolean) - constructor for class robocode.RobocodeFileWriter
Constructs a new RobocodeFileWriter.
RobocodeListener - interface robocode.control.RobocodeListener
Robot - class robocode.Robot
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 field 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 field 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 robocode.RobotDeathEvent
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 robocode.control.RobotResults
Contains the battle results for an individual robot, which is given as input parameter with the `RobocodeListener#battleComplete()` event handler.
RobotResults(robocode.control.RobotSpecification,robocode.BattleResults) - constructor for class robocode.control.RobotResults
Constructs new RobotResults based on a `RobotSpecification` and `BattleResults`.
RobotResults(robocode.control.RobotSpecification,String,int,double,double,double,double,double,double,double,int,int,int) - constructor for class robocode.control.RobotResults
Constructs new RobotResults.
RobotSpecification - class robocode.control.RobotSpecification
Defines the properties of a robot, which is returned from `RobocodeEngine.getLocalRepository()` or
RobotState - class robocode.control.snapshot.RobotState
Defines a robot state, where the robot can be: active on the battlefield, hitting a wall or robot this second, or dead.
RobotStatus - class robocode.RobotStatus
Contains the status of a robot for a specific time/turn returned by `StatusEvent.getStatus()`.
RobotStatus(robocode.peer.RobotPeer,robocode.peer.ExecCommands,robocode.battle.Battle) - constructor for class robocode.RobotStatus
Creates a new RobotStatus based a a RobotPeer.
robotX - field in class robocode.JuniorRobot
Current horizontal location of this robot (in pixels).
robotY - field in class robocode.JuniorRobot
Current vertical location of this robot (in pixels).
RoundEndedEvent - class robocode.control.events.RoundEndedEvent
A RoundEndedEvent is sent to `onRoundEnded()` when the current round of a battle has ended.
RoundEndedEvent(int,int) - constructor for class robocode.control.events.RoundEndedEvent
Creates a new RoundEndedEvent.
RoundStartedEvent - class robocode.control.events.RoundStartedEvent
A RoundStartedEvent is sent to `onRoundStarted()` when a new round in a battle is started.
RoundStartedEvent(robocode.control.snapshot.ITurnSnapshot,int) - constructor for class robocode.control.events.RoundStartedEvent
Creates a new RoundStartedEvent.
Rules - class robocode.Rules
Constants and methods that defines the rules of Robocode.
run() - method in class robocode.JuniorRobot
The main method in every robot.
run() - method in class robocode.Robot
The main method in every robot.
runBattle(robocode.control.BattleSpecification) - method in class robocode.control.RobocodeEngine
Runs the specified battle.
runBattle(robocode.control.BattleSpecification,boolean) - method in class robocode.control.RobocodeEngine
Runs the specified battle.

## S

scan() - method in class robocode.Robot
Scans for other robots.
scannedAngle - field in class robocode.JuniorRobot
Current angle to the scanned nearest other robot (in degrees).
scannedBearing - field in class robocode.JuniorRobot
Current angle to the scanned nearest other robot (in degrees) compared to the body of this robot.
scannedDistance - field in class robocode.JuniorRobot
Current distance to the scanned nearest other robot (in pixels).
scannedEnergy - field in class robocode.JuniorRobot
Current energy of scanned nearest other robot.
scannedHeading - field in class robocode.JuniorRobot
Current heading of the scanned nearest other robot (in degrees).
ScannedRobotEvent - class robocode.ScannedRobotEvent
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.
scannedVelocity - field in class robocode.JuniorRobot
Current velocity of the scanned nearest other robot.
score - field in class robocode.BattleResults
seconds - field in class robocode.BattleResults
sendMessage(String,Serializable) - method in class robocode.robotinterfaces.peer.ITeamRobotPeer
Sends a message to one (or more) teammates.
sendMessage(String,Serializable) - method in class robocode.TeamRobot
Sends a message to one (or more) teammates.
serialVersionUID - static field in class robocode.BattleResults
setAdjustGunForBodyTurn(boolean) - method in class robocode.robotinterfaces.peer.IStandardRobotPeer
Sets the gun to turn independent from the robot's turn.
setAdjustGunForRobotTurn(boolean) - method in class robocode.Robot
Sets the gun to turn independent from the robot's turn.
setAdjustRadarForBodyTurn(boolean) - method in class robocode.robotinterfaces.peer.IStandardRobotPeer
Sets the radar to turn independent from the robot's turn.
setAdjustRadarForGunTurn(boolean) - method in class robocode.robotinterfaces.peer.IStandardRobotPeer
Sets the radar to turn independent from the gun'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.
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.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's body.
setBodyColor(Color) - method in class robocode.Robot
Sets the color of the robot's body.
setBulletColor(Color) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's bullets.
setBulletColor(Color) - method in class robocode.Robot
Sets the color of the robot's bullets.
setCall() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
This call must be made from a robot call to inform the game that the robot made a `set*` call like e.g.
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.
setColors(int,int,int) - method in class robocode.JuniorRobot
Sets the colors of the robot.
setColors(int,int,int,int,int) - method in class robocode.JuniorRobot
Sets the colors of the robot.
setDebugProperty(String,String) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Sets the debug property with the specified key to the specified value.
setDebugProperty(String,String) - method in class robocode.Robot
Sets the debug property with the specified key to the specified value.
setEventPriority(String,int) - method in class robocode.AdvancedRobot
Sets the priority of a class of events.
setEventPriority(String,int) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
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.
setFire(double) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
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.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's gun.
setGunColor(Color) - method in class robocode.Robot
Sets the color of the robot's gun.
setInterruptible(boolean) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
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).
setMaxTurnRate(double) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
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).
setMaxVelocity(double) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Sets the maximum velocity of the robot measured in pixels/turn if the robot should move slower than `Rules.MAX_VELOCITY` (8 pixels/turn).
setMove(double) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Sets the robot to move forward or backward by distance measured in pixels when the next execution takes place.
setName(String) - method in class robocode.Condition
Sets the name of this condition.
setOut(java.io.PrintStream) - method in class robocode.robotinterfaces.IBasicRobot
Do not call this method!

This method is called by the game when setting the output stream for your robot.
setPeer(robocode.robotinterfaces.peer.IBasicRobotPeer) - method in class robocode.robotinterfaces.IBasicRobot
Do not call this method! Your robot will simply stop interacting with the game.
setPriority(int) - method in class robocode.Condition
Sets the priority of this condition.
setRadarColor(Color) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's radar.
setRadarColor(Color) - method in class robocode.Robot
Sets the color of the robot's radar.
setResume() - method in class robocode.AdvancedRobot
Sets the robot to resume the movement stopped by `stop()` or `setStop()`, if any.
setResume() - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Sets the robot to resume the movement stopped by `stop(boolean)` or `setStop(boolean)`, if any.
setScanColor(Color) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's scan arc.
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 `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 `stop(boolean)`, but returns immediately, and will not execute until you call `execute()` or take an action that executes.
setStop(boolean) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
This call is identical to `stop(boolean)`, but returns immediately, and will not execute until you call `execute()` or take an action that executes.
setThreadManager(robocode.manager.IThreadManager) - static method in class robocode.RobocodeFileOutputStream
The system calls this method, you should not call it.
setTurnBody(double) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Sets the robot's body to turn right or left by radians when the next execution takes place.
setTurnGun(double) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Sets the robot's gun to turn right or left by radians when the next execution takes place.
setTurnGunLeft(double) - method in class robocode.AdvancedRobot
Sets the robot's gun to turn left by degrees when the next execution takes place.
setTurnGunLeftRadians(double) - method in class robocode.AdvancedRobot
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.
setTurnGunRightRadians(double) - method in class robocode.AdvancedRobot
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.
setTurnLeftRadians(double) - method in class robocode.AdvancedRobot
Sets the robot's body to turn left by radians when the next execution takes place.
setTurnRadar(double) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Sets the robot's radar to turn right or 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.
setTurnRadarLeftRadians(double) - method in class robocode.AdvancedRobot
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.
setTurnRadarRightRadians(double) - method in class robocode.AdvancedRobot
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.
setTurnRightRadians(double) - method in class robocode.AdvancedRobot
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 robocode.SkippedTurnEvent
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.
StatusEvent - class robocode.StatusEvent
This event is sent to `onStatus()` every turn in a battle to provide the status of the robot.
StatusEvent(robocode.RobotStatus) - constructor for class robocode.StatusEvent
This constructor is called internally from the game in order to create a new `RobotStatus`.
stop() - method in class robocode.Robot
Immediately stops all movement, and saves it for a call to `resume()`.
stop(boolean) - method in class robocode.robotinterfaces.peer.IStandardRobotPeer
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()`.
String getRobotName() - method in class robocode.BulletHitEvent
String getRobotName() - method in class robocode.HitRobotEvent
String getRobotName() - method in class robocode.RobotDeathEvent
String getRobotName() - method in class robocode.ScannedRobotEvent
survival - field in class robocode.BattleResults

## T

teamLeaderName - field in class robocode.BattleResults
TeamRobot - class robocode.TeamRobot
An an advanced type of robot that supports sending messages between team mates in a robot team.
test() - method in class robocode.Condition
Overriding the test() method is the point of a Condition.
thirds - field in class robocode.BattleResults
turnAheadLeft(int,int) - method in class robocode.JuniorRobot
Moves this robot forward by pixels and turns this robot left by degrees at the same time.
turnAheadRight(int,int) - method in class robocode.JuniorRobot
Moves this robot forward by pixels and turns this robot right by degrees at the same time.
turnAndMove(double,double) - method in class robocode.robotinterfaces.peer.IJuniorRobotPeer
Moves this robot forward or backwards by pixels and turns this robot right or left by degrees at the same time.
turnBackLeft(int,int) - method in class robocode.JuniorRobot
Moves this robot backward by pixels and turns this robot left by degrees at the same time.
turnBackRight(int,int) - method in class robocode.JuniorRobot
Moves this robot backward by pixels and turns this robot right by degrees at the same time.
turnBody(double) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately turns the robot's body to the right or left by radians.
TurnCompleteCondition - class robocode.TurnCompleteCondition
A prebuilt condition you can use that indicates your robot has finished turning.
TurnCompleteCondition(robocode.AdvancedRobot) - constructor for class robocode.TurnCompleteCondition
Creates a new TurnCompleteCondition with default priority.
TurnCompleteCondition(robocode.AdvancedRobot,int) - constructor for class robocode.TurnCompleteCondition
Creates a new TurnCompleteCondition with the specified priority.
TurnEndedEvent - class robocode.control.events.TurnEndedEvent
A TurnEndedEvent is sent to `onTurnEnded()` when the current turn in a battle round is ended.
TurnEndedEvent(robocode.control.snapshot.ITurnSnapshot) - constructor for class robocode.control.events.TurnEndedEvent
Creates a new TurnEndedEvent.
turnGun(double) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately turns the robot's gun to the right or left by radians.
turnGunLeft(double) - method in class robocode.Robot
Immediately turns the robot's gun to the left by degrees.
turnGunLeft(int) - method in class robocode.JuniorRobot
Turns the gun left by degrees.
turnGunLeftRadians(double) - method in class robocode.AdvancedRobot
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.
turnGunRight(int) - method in class robocode.JuniorRobot
Turns the gun right by degrees.
turnGunRightRadians(double) - method in class robocode.AdvancedRobot
Immediately turns the robot's gun to the right by radians.
turnGunTo(int) - method in class robocode.JuniorRobot
Turns the gun to the specified angle (in degrees).
turnLeft(double) - method in class robocode.Robot
Immediately turns the robot's body to the left by degrees.
turnLeft(int) - method in class robocode.JuniorRobot
Turns this robot left by degrees.
turnLeftRadians(double) - method in class robocode.AdvancedRobot
Immediately turns the robot's body to the left by radians.
turnRadar(double) - method in class robocode.robotinterfaces.peer.IStandardRobotPeer
Immediately turns the robot's radar to the right or left by radians.
turnRadarLeft(double) - method in class robocode.Robot
Immediately turns the robot's radar to the left by degrees.
turnRadarLeftRadians(double) - method in class robocode.AdvancedRobot
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.
turnRadarRightRadians(double) - method in class robocode.AdvancedRobot
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.
turnRight(int) - method in class robocode.JuniorRobot
Turns this robot right by degrees.
turnRightRadians(double) - method in class robocode.AdvancedRobot
Immediately turns the robot's body to the right by radians.
TurnStartedEvent - class robocode.control.events.TurnStartedEvent
A TurnStartedEvent is sent to `onTurnStarted()` when a new turn in a battle round is started.
TurnStartedEvent() - constructor for class robocode.control.events.TurnStartedEvent
Creates a new TurnStartedEvent.
turnTo(int) - method in class robocode.JuniorRobot
Turns this robot to the specified angle (in degrees).

## U

Utils - class robocode.util.Utils
Utility class that provide methods for normalizing angles.

## V

void battleAborted(robocode.control.BattleSpecification) - method in class robocode.control.RobocodeListener
void battleComplete(robocode.control.BattleSpecification,robocode.control.RobotResults[]) - method in class robocode.control.RobocodeListener
void battleMessage(String) - method in class robocode.control.RobocodeListener
void cleanup() - method in class robocode.GunTurnCompleteCondition
Called by the system in order to clean up references to internal objects.
void cleanup() - method in class robocode.MoveCompleteCondition
Called by the system in order to clean up references to internal objects.
void cleanup() - method in class robocode.RadarTurnCompleteCondition
Called by the system in order to clean up references to internal objects.
void cleanup() - method in class robocode.TurnCompleteCondition
Called by the system in order to clean up references to internal objects.
void close() - method in class robocode.RobocodeFileOutputStream
Closes this output stream.
void finalize() - method in class robocode.control.RobocodeEngine
void finalize() - method in class robocode.Robot
Called by the system to 'clean up' after your robot.
void flush() - method in class robocode.RobocodeFileOutputStream
Flushes this output stream.
void onDeath(robocode.DeathEvent) - method in class robocode.AdvancedRobot
This method is called if your robot dies.
void 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.
void write(byte[]) - method in class robocode.RobocodeFileOutputStream
Writes a byte array to this output stream.
void write(byte[],int,int) - method in class robocode.RobocodeFileOutputStream
Writes a byte array to this output stream.
void write(int) - method in class robocode.RobocodeFileOutputStream
Writes a single byte to this output stream.

## W

waitFor(robocode.Condition) - method in class robocode.AdvancedRobot
Does not return until a condition is met, i.e.
waitFor(robocode.Condition) - method in class robocode.robotinterfaces.peer.IAdvancedRobotPeer
Does not return until a condition is met, i.e.
waitTillBattleOver() - method in class robocode.control.RobocodeEngine
Will block caller until current battle is over
white - static field in class robocode.JuniorRobot
The color white (0xFFFFFF)
WinEvent - class robocode.WinEvent
This event is sent to `onWin()` when your robot wins the round in a battle.
WinEvent() - constructor for class robocode.WinEvent
Called by the game to create a new WinEvent.

## Y

yellow - static field in class robocode.JuniorRobot
The color yellow (0xFFFF00)