Alphabetical Index

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

_

This class is used by the system as a placeholder for all *Radians calls in AdvancedRobot.
_AdvancedRadiansRobot() - constructor for class robocode._AdvancedRadiansRobot
Constructs a new robot.
This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls for AdvancedRobot.
_AdvancedRobot() - constructor for class robocode._AdvancedRobot
_Robot - class robocode._Robot
This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls for Robot.
_Robot() - constructor for class robocode._Robot
_RobotBase - class robocode._RobotBase
This class is the base class of all robots used by the system.

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.
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.
This method is called when a battle has been aborted.
This method is called when a battle completes successfully.
Defines the size of a battlefield.
BattlefieldSpecification() - constructor for class robocode.control.BattlefieldSpecification
Creates a standard 800 x 600 battlefield.
BattlefieldSpecification(int,int) - constructor for class robocode.control.BattlefieldSpecification
Creates a battlefield of the specified width and height.
battleMessage(String) - method in class robocode.control.RobocodeListener
This method is called when the game logs messages that is normally written out to the console.
Do not call this method!
BattleSpecification - class robocode.control.BattleSpecification
A BattleSpecification defines the settings of a battle.
Creates a new BattleSpecification with the given settings.
Creates a new BattleSpecification with the given number of rounds, battlefield size, and robots.
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(robocode.peer.BulletPeer) - constructor for class robocode.Bullet
Called by the game to create a new Bullet object
This event is sent to onBulletHitBullet when one of your bullets has hit another bullet.
Called by the game to create a new BulletHitEvent.
This event is sent to onBulletHit when one of your bullets has hit another robot.
Called by the game to create a new BulletHitEvent.
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.

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.Event) - method in class robocode.Event
Compares this event to another event regarding precedence.
Condition - class robocode.Condition
Condition is used to define custom AdvancedRobot.waitFor(Condition) and custom events for a AdvancedRobot.
Condition() - constructor for class robocode.Condition
Creates a new, unnamed Condition with the default priority, which is 80.
Condition(String) - constructor for class robocode.Condition
Creates a new Condition with the specified name, and default priority, which is 80.
Condition(String,int) - constructor for class robocode.Condition
Creates a new Condition with the specified name and priority.
CustomEvent - class robocode.CustomEvent
This event is sent to onCustomEvent(CustomEvent) 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(DeathEvent) 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 getGunCharge() - method in class robocode._Robot
double getHeadingDegrees() - method in class robocode._AdvancedRobot
double getHeadingDegrees() - method in class robocode.HitByBulletEvent
double getLife() - method in class robocode._Robot
double getLife() - method in class robocode.BulletHitEvent
double getLife() - method in class robocode.ScannedRobotEvent
double getRobotBearing() - method in class robocode.ScannedRobotEvent
double getRobotDistance() - method in class robocode.ScannedRobotEvent
double getRobotHeading() - 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.

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.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.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.
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)
getBodyHeading() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the direction that the robot's body is facing, 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.control.RobotResults
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.control.RobotResults
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.
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.
getCondition() - method in class robocode.CustomEvent
Returns the condition that fired, causing this event to be generated.
getDataDirectory() - method in class robocode.AdvancedRobot
Returns a file representing a data directory for the robot, which can be written to using RobocodeFileOutputStream or RobocodeFileWriter.
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.
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.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.
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.
getFirsts() - method in class robocode.control.RobotResults
Returns the number of times this robot placed first in the battle.
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.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.
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.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.
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._AdvancedRadiansRobot
Returns the direction that the robot's body is facing, in radians.
getHeadingRadians() - method in class robocode.Bullet
Returns the direction the bullet is/was heading, in radians (0 <= getHeadingRadians() <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.control.BattleSpecification
Returns the allowed inactivity time for the robots in this battle.
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).
getLastSurvivorBonus() - method in class robocode.control.RobotResults
Returns the last survivor score of this robot in the battle.
getLocalRepository() - method in class robocode.control.RobocodeEngine
Returns the robots available for for battle from the local robot repository in the Robocode home folder.
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.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.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.
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.
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
}
getPower() - method in class robocode.Bullet
Returns the power of this bullet.
getPower() - method in class robocode.HitByBulletEvent
Returns the power of this bullet.
getPriority() - method in class robocode.Condition
Returns the priority of this condition.
getPriority() - method in class robocode.Event
Returns the priority of this event.
getRadarHeading() - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the direction that the robot's radar is facing, 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.
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.
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.control.RobotResults
Returns the ram damage score of this robot in the battle.
getRamDamageBonus() - method in class robocode.control.RobotResults
Returns the ram damage bonus of this robot in the battle.
getRank() - method in class robocode.control.RobotResults
Returns the rank of this robot in 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 Runnable.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 robots participating in this battle.
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.
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.control.RobotResults
Returns the total score of this robot in the battle.
getSeconds() - method in class robocode.control.RobotResults
Returns the number of times this robot placed second in the battle.
getSender() - method in class robocode.MessageEvent
Returns the name of the sending robot.
getStatus() - method in class robocode.StatusEvent
Returns the RobotStatus at the time defined by Robot.getTime().
getSurvival() - method in class robocode.control.RobotResults
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!

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.
getThirds() - method in class robocode.control.RobotResults
Returns the number of times 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.
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.
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.
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.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.
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.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.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.
A prebuilt condition you can use that indicates your gun has finished turning.
Creates a new GunTurnCompleteCondition with default priority.
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.
A HitByBulletEvent is sent to onHitByBullet(HitByBulletEvent) when your robot has been hit by a bullet.
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(HitRobotEvent) when your robot collides with another robot.
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(HitWallEvent) 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.
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.
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 getBattleNum() - method in class robocode._Robot
int getMaxWaitCount() - method in class robocode._AdvancedRobot
int getNumBattles() - method in class robocode._Robot
int getWaitCount() - method in class robocode._AdvancedRobot
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.
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.
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.
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.

J

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

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(MessageEvent) 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.
move(double) - method in class robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately moves your robot forward or backward by distance measured in pixels.
A prebuilt condition you can use that indicates your robot has finished moving.
Creates a new MoveCompleteCondition with default priority.
Creates a new MoveCompleteCondition with the specified priority.

N

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

O

onBulletHit(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.
onBulletMissed(robocode.BulletMissedEvent) - method in class robocode.robotinterfaces.IBasicEvents
This method is called when one of your bullets misses, i.e.
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.
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.
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.
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.
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
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.
out - field in class robocode._RobotBase
The output stream your robot should use to print.

P

printRunningThreads() - static method in class robocode.Robocode
Prints out all running thread to the standard system out (console)
priority - 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.
A prebuilt condition you can use that indicates your radar has finished turning.
Creates a new RadarTurnCompleteCondition with default priority.
Creates a new RadarTurnCompleteCondition with the specified priority.
red - static field in class robocode.JuniorRobot
The color red (0xFF0000)
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 meant for 3rd party applications to let them run battles in Robocode and receive the results.
Creates a new RobocodeEngine for controlling Robocode.
RobocodeEngine(robocode.control.RobocodeListener) - constructor for class robocode.control.RobocodeEngine
Creates a new RobocodeEngine for controlling Robocode.
RobocodeFileOutputStream is similar to a FileOutputStream and is used for streaming/writing data out to a file, which you got previously by calling AdvancedRobot.getDataFile(String).
Constructs a new RobocodeFileOutputStream.
Constructs a new RobocodeFileOutputStream.
Constructs a new RobocodeFileOutputStream.
Constructs a new RobocodeFileOutputStream.
RobocodeFileWriter is similar to a FileWriter and is used for writing data out to a file, which you got by calling AdvancedRobot.getDataFile(String).
RobocodeFileWriter(File) - constructor for class robocode.RobocodeFileWriter
Constructs a new RobocodeFileWriter.
Constructs a new RobocodeFileWriter.
RobocodeFileWriter(String) - constructor for class robocode.RobocodeFileWriter
Constructs a new RobocodeFileWriter.
Constructs a new RobocodeFileWriter.
RobocodeListener - interface robocode.control.RobocodeListener
A Listener interface for receiving callbacks from the RobocodeEngine.
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.
This event is sent to onRobotDeath(RobotDeathEvent) 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(BattleSpecification,RobotResults[]) event handler.
Constructs a new RobotResults.
RobotSpecification - class robocode.control.RobotSpecification
Defines the properties of a robot, which is returned from RobocodeEngine.getLocalRepository().
RobotStatus - class robocode.RobotStatus
Contains the status of a robot for a specific time/turn.
RobotStatus(robocode.peer.RobotPeer) - 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).
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.
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).
A ScannedRobotEvent is sent to onScannedRobot(ScannedRobotEvent) when you scan a robot.
Called by the game to create a new ScannedRobotEvent.
scannedVelocity - field in class robocode.JuniorRobot
Current velocity of the scanned nearest other robot.
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.
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.
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.
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.
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._Robot
This call has moved to AdvancedRobot, and will no longer function in the Robot class.
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._RobotBase
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.
setPriority(int) - method in class robocode.Event
Called by the game to set the priority of an event to the priority your robot specified for this type of event (or the default priority).
setRadarColor(Color) - method in class robocode.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.
The system calls this method, you should not call it.
setTime(long) - method in class robocode.Event
Called by the game to set the time this event occurred.
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.
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.
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.
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.
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.
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.
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.
A SkippedTurnEvent is sent to onSkippedTurn(SkippedTurnEvent) 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(StatusEvent) every turn in a battle.
StatusEvent(robocode.peer.RobotPeer) - 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 getGunImageName() - method in class robocode._Robot
String getRadarImageName() - method in class robocode._Robot
String getRobotImageName() - method in class robocode._Robot
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

T

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.
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.
A prebuilt condition you can use that indicates your robot has finished turning.
Creates a new TurnCompleteCondition with default priority.
Creates a new TurnCompleteCondition with the specified priority.
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.
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.
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.
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.
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.
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.
Immediately turns the robot's body to the right by radians.
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 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 endTurn() - method in class robocode._AdvancedRobot
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.
This method is called if your robot dies.
void setGunImageName(String) - method in class robocode._Robot
Call this during an event handler to allow new events of the same priority to restart the event handler.
void setRadarImageName(String) - method in class robocode._Robot
void setRobotImageName(String) - method in class robocode._Robot
void turnLeftDegrees(double) - method in class robocode._AdvancedRobot
void write(byte[]) - method in class robocode.RobocodeFileOutputStream
Writes a byte array to this output stream.
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.
white - static field in class robocode.JuniorRobot
The color white (0xFFFFFF)
WinEvent - class robocode.WinEvent
This event is sent to onWin(WinEvent) 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)