Skip navigation links
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 interface robocode.control.IRobocodeEngine
Aborts the current battle if it is running and waits for the end.
abortCurrentBattle(boolean) - Method in interface robocode.control.IRobocodeEngine
Aborts the current battle if it is running.
abortCurrentBattle() - Method in class robocode.control.RobocodeEngine
Aborts the current battle if it is running and waits for the end.
abortCurrentBattle(boolean) - Method in class robocode.control.RobocodeEngine
Aborts the current battle if it is running.
ACCELERATION - Static variable in class robocode.Rules
The acceleration of a robot, i.e. the increase of velocity when the robot moves forward, which is 1 pixel/turn.
addBattleListener(IBattleListener) - Method in interface robocode.control.IRobocodeEngine
Adds a battle listener that must receive events occurring in battles.
addBattleListener(IBattleListener) - Method in class robocode.control.RobocodeEngine
Adds a battle listener that must receive events occurring in battles.
addCustomEvent(Condition) - Method in class robocode.AdvancedRobot
Registers a custom event to be called when a condition is met.
addCustomEvent(Condition) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Registers a custom event to be called when a condition is met.
AdvancedRobot - Class in robocode
A more advanced type of robot than Robot that allows non-blocking calls, custom events, and writes to the filesystem.
AdvancedRobot() - Constructor for class robocode.AdvancedRobot
 
after() - Method in class robocode.control.RobotTestBed
 
afterInit() - Method in class robocode.control.RobotTestBed
 
ahead(int) - Method in class robocode.JuniorRobot
Moves this robot forward by pixels.
ahead(double) - Method in class robocode.Robot
Immediately moves your robot ahead (forward) by distance measured in pixels.
angleToApproximateDirection(double) - Static method in class robocode.util.Utils
Returns approximate cardinal direction for absolute angle in radians, like N,NE,E,SE,S,SW,W,NW
assertEquals(String, Object, Object) - Static method in class robocode.util.Utils
Throws AssertionError when the params expected and actual do not equal each other.
assertNear(String, double, double) - Static method in class robocode.util.Utils
Throws AssertionError when the params expected and actual do not within .00001 difference.
assertNotNull(String, Object) - Static method in class robocode.util.Utils
Throws AssertionError when the param value is null.
assertTrue(String, boolean) - Static method in class robocode.util.Utils
Throws AssertionError when the assertion is false.

B

back(int) - Method in class robocode.JuniorRobot
Moves this robot backward by pixels.
back(double) - Method in class robocode.Robot
Immediately moves your robot backward by distance measured in pixels.
battleAborted(BattleSpecification) - Method in interface robocode.control.RobocodeListener
Deprecated.
Since 1.6.2. Use the IBattleListener.onBattleFinished() instead.

This method is called when a battle has been aborted.

BattleAdaptor - Class in robocode.control.events
An abstract adapter class for receiving battle events by implementing the IBattleListener.
BattleAdaptor() - Constructor for class robocode.control.events.BattleAdaptor
Creates a BattleAdaptor.
battleComplete(BattleSpecification, RobotResults[]) - Method in interface robocode.control.RobocodeListener
Deprecated.
Since 1.6.2. Use the IBattleListener.onBattleCompleted() instead.

This method is called when a battle completes successfully.

BattleCompletedEvent - Class in robocode.control.events
A BattleCompletedEvent is sent to onBattleCompleted() when the battle is completed successfully and results are available.
BattleCompletedEvent(BattleRules, BattleResults[]) - Constructor for class robocode.control.events.BattleCompletedEvent
Called by the game to create a new BattleCompletedEvent.
BattleEndedEvent - Class in robocode
A BattleEndedEvent is sent to onBattleEnded() when the battle is ended.
BattleEndedEvent(boolean, BattleResults) - Constructor for class robocode.BattleEndedEvent
Called by the game to create a new BattleEndedEvent.
BattleErrorEvent - Class in robocode.control.events
A BattleErrorEvent is sent to onBattleError() when an error message is sent from the game in the during the battle.
BattleErrorEvent(String, Throwable) - Constructor for class robocode.control.events.BattleErrorEvent
Called by the game to create a new BattleErrorEvent.
BattleEvent - Class in robocode.control.events
This is the base class of all battle events.
BattleEvent() - Constructor for class robocode.control.events.BattleEvent
Creates a new BattleEvent.
battleFieldSpec - Variable in class robocode.control.RobotTestBed
The battlefield specification, which is the default.
BattlefieldSpecification - Class in robocode.control
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 in robocode.control.events
A BattleFinishedEvent is sent to onBattleFinished() when the battle is finished.
BattleFinishedEvent(boolean) - Constructor for class robocode.control.events.BattleFinishedEvent
Called by the game to create a new BattleFinishedEvent.
battleMessage(String) - Method in interface robocode.control.RobocodeListener
Deprecated.
Since 1.6.2. Use the IBattleListener.onBattleMessage() instead.

This method is called when the game logs messages that is normally written out to the console.

BattleMessageEvent - Class in robocode.control.events
A BattleMessageEvent is sent to onBattleMessage() when an informal message is sent from the game in the during the battle.
BattleMessageEvent(String) - Constructor for class robocode.control.events.BattleMessageEvent
Called by the game to create a new BattleMessageEvent.
BattlePausedEvent - Class in robocode.control.events
A BattlePausedEvent is sent to onBattlePaused() when a battle has been paused.
BattlePausedEvent() - Constructor for class robocode.control.events.BattlePausedEvent
Called by the game to create a new BattlePausedEvent.
BattleResults - Class in robocode
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 in robocode.control.events
A BattleResumedEvent is sent to onBattleResumed() when a battle has been resumed (after having been paused).
BattleResumedEvent() - Constructor for class robocode.control.events.BattleResumedEvent
Called by the game to create a new BattleResumedEvent.
BattleRules - Class in robocode
Contains the battle rules returned by BattleStartedEvent.getBattleRules() when a battle is started and BattleCompletedEvent.getBattleRules() when a battle is completed.
BattleSpecification - Class in robocode.control
A BattleSpecification defines a battle configuration used by the RobocodeEngine.
BattleSpecification(int, BattlefieldSpecification, RobotSpecification[]) - Constructor for class robocode.control.BattleSpecification
Creates a new BattleSpecification with the given number of rounds, battlefield size, and robots.
BattleSpecification(int, long, double, BattlefieldSpecification, RobotSpecification[]) - Constructor for class robocode.control.BattleSpecification
Creates a new BattleSpecification with the given settings.
BattleSpecification(int, long, double, boolean, BattlefieldSpecification, RobotSpecification[]) - Constructor for class robocode.control.BattleSpecification
Creates a new BattleSpecification with the given settings.
BattleSpecification(BattlefieldSpecification, int, long, double, int, boolean, RobotSpecification[]) - Constructor for class robocode.control.BattleSpecification
Creates a new BattleSpecification with the given settings.
BattleSpecification(BattlefieldSpecification, int, long, double, int, boolean, RobotSpecification[], RobotSetup[]) - Constructor for class robocode.control.BattleSpecification
Creates a new BattleSpecification with the given settings.
BattleStartedEvent - Class in robocode.control.events
A BattleStartedEvent is sent to onBattleStarted() when a new battle is started.
BattleStartedEvent(BattleRules, int, boolean, UUID) - Constructor for class robocode.control.events.BattleStartedEvent
Called by the game to create 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.
before() - Method in class robocode.control.RobotTestBed
The setup method run before each test, which sets up the listener on the engine for testing.
beforeInit() - Method in class robocode.control.RobotTestBed
 
black - Static variable in class robocode.JuniorRobot
The color black (0x000000)
blue - Static variable in class robocode.JuniorRobot
The color blue (0x0000FF)
BorderSentry - Interface in robocode
A robot that implements BorderSentry is a robot type used for keeping other robots away from the borders, i.e. guarding the borders in order to prevent "wall crawlers".
broadcastMessage(Serializable) - Method in interface 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 variable in class robocode.JuniorRobot
The color brown (0x8B4513)
Bullet - Class in robocode
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 - Variable in class robocode.BattleResults
 
bulletDamageBonus - Variable in class robocode.BattleResults
 
BulletHitBulletEvent - Class in robocode
This event is sent to onBulletHitBullet when one of your bullets has hit another bullet.
BulletHitBulletEvent(Bullet, Bullet) - Constructor for class robocode.BulletHitBulletEvent
Called by the game to create a new BulletHitEvent.
BulletHitEvent - Class in robocode
This event is sent to onBulletHit when one of your bullets has hit another robot.
BulletHitEvent(String, double, Bullet) - Constructor for class robocode.BulletHitEvent
Called by the game to create a new BulletHitEvent.
BulletMissedEvent - Class in robocode
This event is sent to onBulletMissed when one of your bullets has missed, i.e. when the bullet has reached the border of the battlefield.
BulletMissedEvent(Bullet) - Constructor for class robocode.BulletMissedEvent
Called by the game to create a new BulletMissedEvent.
BulletState - Enum in robocode.control.snapshot
Defines a bullet state, which can be: just fired, moving somewhere, hitting a victim, hitting another bullet, hitting the wall, exploded, or inactive.

C

cleanup() - Method in class robocode.Condition
Called by the system in order to clean up references to internal objects.
cleanup() - Method in class robocode.GunTurnCompleteCondition
Called by the system in order to clean up references to internal objects.
cleanup() - Method in class robocode.MoveCompleteCondition
Called by the system in order to clean up references to internal objects.
cleanup() - Method in class robocode.RadarTurnCompleteCondition
Called by the system in order to clean up references to internal objects.
cleanup() - Method in class robocode.TurnCompleteCondition
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 interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Clears out any pending events in the robot's event queue immediately.
close() - Method in interface robocode.control.IRobocodeEngine
Closes the RobocodeEngine and releases any allocated resources it holds.
close() - Method in class robocode.control.RobocodeEngine
Closes the RobocodeEngine and releases any allocated resources it holds.
close() - Method in class robocode.RobocodeFileOutputStream
Closes this output stream.
compareTo(BattleResults) - Method in class robocode.BattleResults
compareTo(Event) - Method in class robocode.CustomEvent
Compares this event to another event regarding precedence.
compareTo(Event) - Method in class robocode.Event
Compares this event to another event regarding precedence.
compareTo(Event) - Method in class robocode.HitRobotEvent
Compares this event to another event regarding precedence.
compareTo(Event) - Method in class robocode.ScannedRobotEvent
Compares this event to another event regarding precedence.
Condition - Class in robocode
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(BattleResults[]) - Static method in class robocode.control.RobotResults
Converts an array of BattleResults into an array of RobotResults.
CustomEvent - Class in robocode
This event is sent to onCustomEvent() when a custom condition is met.
CustomEvent(Condition) - Constructor for class robocode.CustomEvent
Called by the game to create a new CustomEvent when a condition is met.
CustomEvent(Condition, int) - Constructor for class robocode.CustomEvent
Called by the game to create a new CustomEvent when a condition is met.

D

DeathEvent - Class in robocode
This event is sent to onDeath() when your robot dies.
DeathEvent() - Constructor for class robocode.DeathEvent
Called by the game to create a new DeathEvent.
DECELERATION - Static variable in class robocode.Rules
The deceleration of a robot, i.e. the decrease of velocity when the robot moves backwards (or brakes), which is 2 pixels/turn.
doNothing() - Method in class robocode.JuniorRobot
Skips a turn.
doNothing(int) - Method in class robocode.JuniorRobot
Skips the specified number of turns.
doNothing() - Method in class robocode.Robot
Do nothing this turn, meaning that the robot will skip it's turn.
Droid - Interface in robocode
A Droid is an interface used on a TeamRobot to create a specialized team robot, i.e. a droid robot.

E

endTurn() - Method in class robocode._AdvancedRobot
Deprecated.
Use execute instead.
energy - Variable in class robocode.JuniorRobot
Current energy of this robot, where 100 means full energy and 0 means no energy (dead).
engine - Static variable in class robocode.control.RobotTestBed
The Robocode game engine instance used for this test.
engineErrorsListener - Variable in class robocode.control.RobotTestBed
 
equals(Object) - Method in class robocode.BattleResults
 
equals(Object) - Method in class robocode.Bullet
 
equals(Object) - Method in class robocode.control.RobotResults
 
errors - Variable in class robocode.control.RobotTestBed
The number of errors generated during this battle so far.
errorText - Variable in class robocode.control.RobotTestBed
 
Event - Class in robocode
The superclass of all Robocode events.
Event() - Constructor for class robocode.Event
Default constructor used 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.RateControlRobot
Executes any pending actions, or continues executing actions that are in process.
execute() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Executes any pending actions, or continues executing actions that are in process.

F

fieldHeight - Variable in class robocode.JuniorRobot
Contains the height of the battlefield.
fieldWidth - Variable in class robocode.JuniorRobot
Contains the width of the battlefield.
finalize() - Method in class robocode._RobotBase
Called by the system to 'clean up' after your robot.
finalize() - Method in class robocode.control.RobocodeEngine
fire() - Method in class robocode.JuniorRobot
Fires a bullet with the default power of 1.
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.
fire(double) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately fires a bullet.
fireBullet(double) - Method in class robocode.Robot
Immediately fires a bullet.
firsts - Variable in class robocode.BattleResults
 
flush() - Method in class robocode.RobocodeFileOutputStream
Flushes this output stream.

G

getAdvancedEventListener() - Method in class robocode.AdvancedRobot
Do not call this method!
getAdvancedEventListener() - Method in interface 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 interface 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 the author of this robot or team.
getBasicEventListener() - Method in class robocode.JuniorRobot
Do not call this method!
getBasicEventListener() - Method in class robocode.Robot
This method is called by the game to notify this robot about basic robot event.
getBasicEventListener() - Method in interface robocode.robotinterfaces.IBasicRobot
This method is called by the game to notify this robot about basic robot event.
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.Robot
Returns the height of the current battlefield measured in pixels.
getBattleFieldHeight() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
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.Robot
Returns the width of the current battlefield measured in pixels.
getBattleFieldWidth() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the width of the current battlefield measured in pixels.
getBattleId() - Method in class robocode.control.events.BattleStartedEvent
Unique ID of the battle
getBattleNum() - Method in class robocode._Robot
Deprecated.
Use getRoundNum() instead.
getBattleRules() - Method in class robocode.control.events.BattleCompletedEvent
Returns the rules 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 < getBearing() <= 180).
getBearing() - Method in class robocode.HitRobotEvent
Returns the bearing to the robot you hit, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)
getBearing() - Method in class robocode.HitWallEvent
Returns the bearing to the wall you hit, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)
getBearing() - Method in class robocode.ScannedRobotEvent
Returns the bearing to the robot you scanned, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)
getBearingDegrees() - Method in class robocode.HitRobotEvent
Deprecated.
getBearingDegrees() - Method in class robocode.HitWallEvent
Deprecated.
getBearingRadians() - Method in class robocode.HitByBulletEvent
Returns the bearing to the bullet, relative to your robot's heading, in radians (-Math.PI < getBearingRadians() <= Math.PI).
getBearingRadians() - Method in class robocode.HitRobotEvent
Returns the bearing to the robot you hit, relative to your robot's heading, in radians (-PI <= getBearingRadians() < PI)
getBearingRadians() - Method in class robocode.HitWallEvent
Returns the bearing to the wall you hit, relative to your robot's heading, in radians (-PI <= getBearingRadians() < PI)
getBearingRadians() - Method in class robocode.ScannedRobotEvent
Returns the bearing to the robot you scanned, relative to your robot's heading, in radians (-PI <= getBearingRadians() < PI)
getBodyColor() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the color of the body.
getBodyHeading() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the body heading of the robot in radians.
getBodyHeading() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the direction that the robot's body is facing, in radians.
getBodyTurnRemaining() - Method in interface 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 interface 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 interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all BulletHitEvents currently in the robot's queue.
getBulletId() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the ID of the bullet used for identifying the bullet in a collection of bullets.
getBulletMissedEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all BulletMissedEvents currently in the robot's queue.
getBulletMissedEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all BulletMissedEvents currently in the robot's queue.
getBullets() - Method in interface robocode.control.snapshot.ITurnSnapshot
Returns a list of snapshots for the bullets that are currently on 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 interface 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 interface 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 interface robocode.control.snapshot.IRobotSnapshot
Returns the contestant index, which is unique for each robot or team participating in a battle.
getCurrentBulletDamageScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the current bullet damage score.
getCurrentBulletKillBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the current bullet kill bonus.
getCurrentRammingDamageScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the current ramming damage score.
getCurrentRammingKillBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the current ramming kill bonus.
getCurrentScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the current score.
getCurrentSurvivalBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the current survival bonus.
getCurrentSurvivalScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the current survival score.
getCurrentWorkingDir() - Static method in class robocode.control.RobocodeEngine
Returns the current working directory.
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 interface 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 interface 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. the amount of bytes left in the data directory for the robot.
getDataQuotaAvailable() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns the data quota available in your data directory, i.e. the amount of bytes left in the data directory for the robot.
getDebugProperties() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns a snapshot of debug properties.
getDescription() - Method in class robocode.control.RobotSpecification
Returns the description provided by the author of this robot or team.
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 interface 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.
getEnemyName() - Method in class robocode.control.RobotTestBed
Must return a fully qualified enemy robot name to be in this battle.
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 interface robocode.control.snapshot.IRobotSnapshot
Returns the energy level of the robot.
getEnergy() - Method in class robocode.HitRobotEvent
Returns the amount of energy of the robot you hit.
getEnergy() - Method in class robocode.Robot
Returns the robot's current energy.
getEnergy() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
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.
getErrorInstance() - Method in class robocode.control.events.BattleErrorEvent
Returns the error instance when available.
getEventPriority(String) - Method in class robocode.AdvancedRobot
Returns the current priority of a class of events.
getEventPriority(String) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns the current priority of a class of events.
getExpectedErrors() - Method in class robocode.control.RobotTestBed
 
getExpectedRobotCount(String) - Method in class robocode.control.RobotTestBed
Provides the number of robots in this battle.
getExplosionImageIndex() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the explosion image index, which is different depending on the type of explosion.
getFirsts() - Method in class robocode.BattleResults
Returns the number of rounds this robot placed first in the battle.
getFrame() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the current frame number to display, i.e. when the bullet explodes.
getGraphics() - Method in class robocode.Robot
Returns a graphics context used for painting graphical items for the robot.
getGraphics() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns a graphics context used for painting graphical items for the robot.
getGunCharge() - Method in class robocode._Robot
Deprecated.
Use getGunHeat() instead.
getGunColor() - Method in interface 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. the amount of heat the gun heat will drop per turn.
getGunCoolingRate() - Method in class robocode.control.BattleSpecification
Returns the gun cooling rate of the robots in this battle.
getGunCoolingRate() - Method in class robocode.Robot
Returns the rate at which the gun will cool down, i.e. the amount of heat the gun heat will drop per turn.
getGunCoolingRate() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the rate at which the gun will cool down, i.e. the amount of heat the gun heat will drop per turn.
getGunHeading() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the gun heading of the robot in radians.
getGunHeading() - Method in class robocode.Robot
Returns the direction that the robot's gun is facing, in degrees.
getGunHeading() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the direction that the robot's gun is facing, in radians.
getGunHeading() - Method in class robocode.RobotStatus
Returns the direction that the robot's gun is facing, in degrees.
getGunHeadingDegrees() - Method in class robocode._AdvancedRobot
Deprecated.
Use getGunHeading() instead.
getGunHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
 
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 interface robocode.control.snapshot.IRobotSnapshot
Returns the gun heat of the robot.
getGunHeat() - Method in class robocode.Robot
Returns the current heat of the gun.
getGunHeat() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
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.
getGunImageName() - Method in class robocode._Robot
Deprecated.
This call is not used.
getGunRotationRate() - Method in class robocode.RateControlRobot
Gets the gun's clockwise rotation per turn, in degrees.
getGunRotationRateRadians() - Method in class robocode.RateControlRobot
Gets the gun's clockwise rotation per turn, in radians.
getGunTurnRemaining() - Method in class robocode.AdvancedRobot
Returns the angle remaining in the gun's turn, in degrees.
getGunTurnRemaining() - Method in interface 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._AdvancedRadiansRobot
 
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() < 360).
getHeading() - Method in class robocode.control.RobotSetup
Returns the body, gun, and radar heading (in degrees).
getHeading() - Method in interface robocode.control.snapshot.IBulletSnapshot
 
getHeading() - Method in class robocode.HitByBulletEvent
Returns the heading of the bullet when it hit you, in degrees (0 <= getHeading() < 360).
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() < 360)
getHeadingDegrees() - Method in class robocode._AdvancedRobot
Deprecated.
Use getHeading() instead.
getHeadingDegrees() - Method in class robocode.HitByBulletEvent
Deprecated.
getHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
 
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() < 2 * Math.PI).
getHeadingRadians() - Method in class robocode.HitByBulletEvent
Returns the heading of the bullet when it hit you, in radians (0 <= getHeadingRadians() < 2 * PI).
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() < 2 * 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.
getHideEnemyNames() - Method in class robocode.BattleRules
 
getHideEnemyNames() - Method in class robocode.control.BattleSpecification
Returns the flag specifying if the enemy names must be hidden from events sent to robots.
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 interface 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 interface 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 interface 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 battle results that can be used to determine the score for the individual robot based on the robot index.
getIndexedTeamScores() - Method in interface robocode.control.snapshot.ITurnSnapshot
Returns an array of indexed scores grouped by teams that can be used to determine the score for the individual team based on the team index.
getInitialPositions() - Method in class robocode.control.RobotTestBed
Returns a comma or space separated list like: x1,y1,heading1, x2,y2,heading2, which are the coordinates and heading of robot #1 and #2.
getInitialSetups() - Method in class robocode.control.BattleSpecification
Returns the initial position and heading of each robot participating in this battle.
getInteractiveEventListener() - Method in class robocode.Robot
This method is called by the game to notify this robot about interactive events, i.e. keyboard and mouse events.
getInteractiveEventListener() - Method in interface robocode.robotinterfaces.IInteractiveRobot
This method is called by the game to notify this robot about interactive events, i.e. keyboard and mouse events.
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 interface 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.
getLife() - Method in class robocode._Robot
Deprecated.
Use getEnergy() instead.
getLife() - Method in class robocode.BulletHitEvent
Deprecated.
getLife() - Method in class robocode.ScannedRobotEvent
Deprecated.
getLocalRepository() - Method in interface robocode.control.IRobocodeEngine
Returns all robots available from the local robot repository of Robocode.
getLocalRepository(String) - Method in interface robocode.control.IRobocodeEngine
Returns a selection of robots available from the local robot repository of Robocode.
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.
getMaxWaitCount() - Method in class robocode._AdvancedRobot
Deprecated.
This method is no longer functional. Use AdvancedRobot.onSkippedTurn(SkippedTurnEvent) instead.
getMessage() - Method in class robocode.control.events.BattleMessageEvent
Returns the informal message.
getMessage() - Method in class robocode.MessageEvent
Returns the message itself.
getMessageEvents() - Method in interface 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.control.RobotSpecification
Returns the name of this robot or team.
getName() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the name of the robot.
getName() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the name of the contestant, i.e. a robot or team.
getName() - Method in class robocode.HitByBulletEvent
Returns the name of the robot that fired the bullet.
getName() - Method in class robocode.HitRobotEvent
Returns the name of the robot you hit.
getName() - Method in class robocode.RobocodeFileOutputStream
Returns the filename 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 interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the robot's name.
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.
getNumBattles() - Method in class robocode._Robot
Deprecated.
Use getNumRounds() instead.
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.control.RobotTestBed
Provides the number of rounds in this battle.
getNumRounds() - Method in class robocode.Robot
Returns the number of rounds in the current battle.
getNumRounds() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the number of rounds in the current battle.
getNumRounds() - Method in class robocode.RobotStatus
Returns the number of rounds in the current battle.
getNumSentries() - Method in class robocode.Robot
Returns how many sentry robots that are left in the current round.
getNumSentries() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns how many sentry robots that are left in the current round.
getNumSentries() - Method in class robocode.RobotStatus
Returns how many sentry robots 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 interface robocode.robotinterfaces.peer.IBasicRobotPeer
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 interface robocode.control.snapshot.IRobotSnapshot
Returns a snapshot of the output print stream for this robot.
getOwnerIndex() - Method in interface robocode.control.snapshot.IBulletSnapshot
 
getPaintEventListener() - Method in class robocode.Robot
This method is called by the game to notify this robot about painting events.
getPaintEventListener() - Method in interface robocode.robotinterfaces.IPaintRobot
This method is called by the game to notify this robot about painting events.
getPaintX() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the X painting position of the bullet.
getPaintY() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the Y painting position of the bullet.
getPower() - Method in class robocode.Bullet
Returns the power of this bullet.
getPower() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the bullet power.
getPower() - Method in class robocode.HitByBulletEvent
Returns the power of this bullet.
getPriority() - Method in class robocode.BattleEndedEvent
Returns the priority of this event.
getPriority() - Method in class robocode.Condition
Returns the priority of this condition.
getPriority() - Method in class robocode.CustomEvent
Returns the priority of this event.
getPriority() - Method in class robocode.DeathEvent
Returns the priority of this event.
getPriority() - Method in class robocode.Event
Returns the priority of this event.
getPriority() - Method in class robocode.RoundEndedEvent
Returns the priority of this event.
getPriority() - Method in class robocode.SkippedTurnEvent
Returns the priority of this event.
getPriority() - Method in class robocode.WinEvent
Returns the priority of this event.
getRadarColor() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the color of the radar.
getRadarHeading() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the radar heading of the robot in radians.
getRadarHeading() - Method in class robocode.Robot
Returns the direction that the robot's radar is facing, in degrees.
getRadarHeading() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the direction that the robot's radar is facing, in radians.
getRadarHeading() - Method in class robocode.RobotStatus
Returns the direction that the robot's radar is facing, in degrees.
getRadarHeadingDegrees() - Method in class robocode._AdvancedRobot
Deprecated.
Use getRadarHeading() instead.
getRadarHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
 
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.
getRadarImageName() - Method in class robocode._Robot
Deprecated.
This call is not used.
getRadarRotationRate() - Method in class robocode.RateControlRobot
Gets the radar's clockwise rotation per turn, in degrees.
getRadarRotationRateRadians() - Method in class robocode.RateControlRobot
Gets the radar's clockwise rotation per turn, in radians.
getRadarTurnRemaining() - Method in class robocode.AdvancedRobot
Returns the angle remaining in the radar's turn, in degrees.
getRadarTurnRemaining() - Method in interface 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._AdvancedRadiansRobot
 
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.control.RandomFactory
Returns the random number generator used for generating a stream of random numbers.
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 or team was build with.
getRobot() - Method in class robocode.control.RobotResults
Returns the robot these results are meant for.
getRobotBearing() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRobotBearingDegrees() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRobotBearingRadians() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRobotDeathEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all RobotDeathEvents currently in the robot's queue.
getRobotDeathEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all RobotDeathEvents currently in the robot's queue.
getRobotDistance() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRobotHeading() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRobotHeadingDegrees() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRobotHeadingRadians() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRobotImageName() - Method in class robocode._Robot
Deprecated.
This call is not used.
getRobotIndex() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the index of the robot, which is unique for the specific robot and constant during a battle.
getRobotLife() - Method in class robocode.BulletHitEvent
Deprecated.
getRobotLife() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRobotName() - Method in class robocode.BulletHitEvent
Deprecated.
getRobotName() - Method in class robocode.control.RobotTestBed
Must return a fully qualified robot name to be in this battle.
getRobotName() - Method in class robocode.HitRobotEvent
Deprecated.
getRobotName() - Method in class robocode.RobotDeathEvent
Deprecated.
getRobotName() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRobotObjects() - Method in class robocode.control.events.RoundStartedEvent
 
getRobotRunnable() - Method in class robocode.JuniorRobot
Do not call this method!
getRobotRunnable() - Method in class robocode.Robot
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 interface 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.
getRobots() - Method in class robocode.control.BattleSpecification
Returns the specifications of the robots participating in this battle.
getRobots() - Method in interface robocode.control.snapshot.ITurnSnapshot
Returns a list of snapshots for the robots participating in the battle.
getRobotsCount() - Method in class robocode.control.events.BattleStartedEvent
Returns the number of robots participating in the battle.
getRobotsDir() - Static method in class robocode.control.RobocodeEngine
Returns the directory containing the robots.
getRobotVelocity() - Method in class robocode.ScannedRobotEvent
Deprecated.
getRound() - Method in class robocode.control.events.RoundEndedEvent
Returns the round number that has ended.
getRound() - Method in class robocode.control.events.RoundStartedEvent
Returns the round number.
getRound() - Method in interface robocode.control.snapshot.ITurnSnapshot
Returns the current round of the battle.
getRound() - Method in class robocode.RoundEndedEvent
Returns the round that ended (zero-indexed).
getRoundNum() - Method in class robocode.Robot
Returns the current round number (0 to Robot.getNumRounds() - 1) of the battle.
getRoundNum() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the number of the current round (0 to IBasicRobotPeer.getNumRounds() - 1) in the battle.
getRoundNum() - Method in class robocode.RobotStatus
Returns the current round number (0 to RobotStatus.getNumRounds() - 1) of the battle.
getScanColor() - Method in interface 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 interface 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 interface robocode.control.snapshot.IRobotSnapshot
Returns a snapshot of the current score for this robot.
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.
getSentryBorderSize() - Method in class robocode.BattleRules
Returns the sentry border size for a BorderSentry that defines the how far a BorderSentry is allowed to move from the border edges measured in units.
getSentryBorderSize() - Method in class robocode.control.BattleSpecification
Returns the sentry border size for a BorderSentry that defines the how far a BorderSentry is allowed to move from the border edges measured in units.
getSentryBorderSize() - Method in class robocode.Robot
Returns the sentry border size for a BorderSentry that defines the how far a BorderSentry is allowed to move from the border edges measured in units.
getSentryBorderSize() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the sentry border size for a BorderSentry that defines the how far a BorderSentry is allowed to move from the border edges measured in units.
getShortName() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the short name of the robot.
getSkippedTurn() - Method in class robocode.SkippedTurnEvent
Returns the turn that was skipped.
getSortedResults() - Method in class robocode.control.events.BattleCompletedEvent
Returns the battle results sorted on score.
getSortedTeamScores() - Method in interface robocode.control.snapshot.ITurnSnapshot
Returns an array of sorted scores grouped by teams, ordered by position.
getSourceEvent() - Method in class robocode.KeyEvent
Do not call this method!
getSourceEvent() - Method in class robocode.MouseEvent
Do not call this method!
getStartSnapshot() - Method in class robocode.control.events.RoundStartedEvent
Returns the start snapshot of the participating robots, initial starting positions etc.
getState() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the bullet state.
getState() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the robot state.
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 interface 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 interface 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!
getTeamId() - Method in class robocode.control.RobotSpecification
Returns id of the team in current battle.
getTeamIndex() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the index of the team that this robot is a member of, which is unique for the specific team and constant during a battle.
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 interface 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 interface robocode.control.snapshot.IRobotSnapshot
Returns the name of the team, which can be the name of a robot if the contestant is not a team, but a robot.
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 when this event occurred.
getTime() - Method in class robocode.Robot
Returns the game time of the current round, where the time is equal to the current turn in the round.
getTime() - Method in interface 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.RobotStatus
Returns the game time of the round, where the time is equal to the current turn in the round.
getTotalBulletDamageScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total bullet damage score.
getTotalBulletKillBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total bullet kill bonus.
getTotalFirsts() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total number of first places.
getTotalLastSurvivorBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total last survivor score.
getTotalRammingDamageScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total ramming damage score.
getTotalRammingKillBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total ramming kill bonus.
getTotalScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total score.
getTotalSeconds() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total number of second places.
getTotalSurvivalScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total survival score.
getTotalThirds() - Method in interface robocode.control.snapshot.IScoreSnapshot
Returns the total number of third places.
getTotalTurns() - Method in class robocode.control.events.RoundEndedEvent
Returns the total number of turns reached in the battle when this round ended.
getTotalTurns() - Method in class robocode.RoundEndedEvent
Returns the total number of turns reached in the battle when this round ended.
getTPS() - Method in interface robocode.control.snapshot.ITurnSnapshot
Returns the current TPS (turns per second) rate.
getTurn() - Method in interface robocode.control.snapshot.ITurnSnapshot
Returns the current turn in the battle round.
getTurnRate() - Method in class robocode.RateControlRobot
Gets the robot's clockwise rotation per turn, in degrees.
getTurnRate(double) - Static method in class robocode.Rules
Returns the turn rate of a robot given a specific velocity measured in degrees/turn.
getTurnRateRadians() - Method in class robocode.RateControlRobot
Gets the robot's clockwise rotation per turn, in radians.
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._AdvancedRadiansRobot
 
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.
getTurns() - Method in class robocode.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 enum robocode.control.snapshot.BulletState
Returns the state as an integer value.
getValue() - Method in interface robocode.control.snapshot.IDebugProperty
Returns the value of the property.
getValue() - Method in enum robocode.control.snapshot.RobotState
Returns the state as an integer value.
getVelocity() - Method in class robocode.Bullet
Returns the velocity of this bullet.
getVelocity() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the velocity of the robot.
getVelocity() - Method in class robocode.HitByBulletEvent
Returns the velocity of this bullet.
getVelocity() - Method in class robocode.Robot
Returns the velocity of the robot measured in pixels/turn.
getVelocity() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
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.
getVelocityRate() - Method in class robocode.RateControlRobot
Returns the speed the robot will move, in pixels per turn.
getVersion() - Method in interface robocode.control.IRobocodeEngine
Returns the installed version of Robocode controlled by this RobocodeEngine.
getVersion() - Method in class robocode.control.RobocodeEngine
Returns the installed version of Robocode controlled by this RobocodeEngine.
getVersion() - Method in class robocode.control.RobotSpecification
Returns the version of this robot or team.
getVeryShortName() - Method in interface 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.
getVictimIndex() - Method in interface robocode.control.snapshot.IBulletSnapshot
 
getWaitCount() - Method in class robocode._AdvancedRobot
Deprecated.
This method is no longer functional. Use AdvancedRobot.onSkippedTurn(SkippedTurnEvent) instead.
getWallHitDamage(double) - Static method in class robocode.Rules
Returns the amount of damage taken when robot hits a wall with a specific velocity.
getWebpage() - Method in class robocode.control.RobotSpecification
Returns the link to the web page for this robot or team.
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.control.RobotSetup
Returns the x coordinate.
getX() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the X position of the bullet.
getX() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the X position of the robot.
getX() - Method in class robocode.Robot
Returns the X position of the robot. (0,0) is at the bottom left of the battlefield.
getX() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the X position of the robot. (0,0) is at the bottom left of the battlefield.
getX() - Method in class robocode.RobotStatus
Returns the X position of the robot. (0,0) is at the bottom left of the battlefield.
getY() - Method in class robocode.Bullet
Returns the Y position of the bullet.
getY() - Method in class robocode.control.RobotSetup
Returns the y coordinate.
getY() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the Y position of the bullet.
getY() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the Y position of the robot.
getY() - Method in class robocode.Robot
Returns the Y position of the robot. (0,0) is at the bottom left of the battlefield.
getY() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the Y position of the robot. (0,0) is at the bottom left of the battlefield.
getY() - Method in class robocode.RobotStatus
Returns the Y position of the robot. (0,0) is at the bottom left of the battlefield.
gray - Static variable in class robocode.JuniorRobot
The color gray (0x808080)
green - Static variable in class robocode.JuniorRobot
The color green (0x008000)
GUN_TURN_RATE - Static variable in class robocode.Rules
The turning rate of the gun measured in degrees, which is 20 degrees/turn.
GUN_TURN_RATE_RADIANS - Static variable in class robocode.Rules
The turning rate of the gun measured in radians instead of degrees.
gunBearing - Variable in class robocode.JuniorRobot
Current gun heading angle of this robot compared to its body (in degrees).
gunHeading - Variable in class robocode.JuniorRobot
Current gun heading angle of this robot (in degrees).
gunReady - Variable in class robocode.JuniorRobot
Flag specifying if the gun is ready to fire, i.e. gun heat <= 0.
GunTurnCompleteCondition - Class in robocode
A prebuilt condition you can use that indicates your gun has finished turning.
GunTurnCompleteCondition(AdvancedRobot) - Constructor for class robocode.GunTurnCompleteCondition
Creates a new GunTurnCompleteCondition with default priority.
GunTurnCompleteCondition(AdvancedRobot, int) - Constructor for class robocode.GunTurnCompleteCondition
Creates a new GunTurnCompleteCondition with a specific priority.

H

hashCode() - Method in class robocode.BattleResults
 
hashCode() - Method in class robocode.Bullet
 
hashCode() - Method in class robocode.control.RobotResults
 
heading - Variable in class robocode.JuniorRobot
Current heading angle of this robot (in degrees).
hitByBulletAngle - Variable in class robocode.JuniorRobot
Latest angle from where this robot was hit by a bullet (in degrees).
hitByBulletBearing - Variable 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 in robocode
A HitByBulletEvent is sent to onHitByBullet() when your robot has been hit by a bullet.
HitByBulletEvent(double, Bullet) - Constructor for class robocode.HitByBulletEvent
Called by the game to create a new HitByBulletEvent.
hitRobotAngle - Variable in class robocode.JuniorRobot
Latest angle where this robot has hit another robot (in degrees).
hitRobotBearing - Variable in class robocode.JuniorRobot
Latest angle where this robot has hit another robot (in degrees) compared to the body of this robot.
HitRobotEvent - Class in robocode
A HitRobotEvent is sent to onHitRobot() when your robot collides with another robot.
HitRobotEvent(String, double, double, boolean) - Constructor for class robocode.HitRobotEvent
Called by the game to create a new HitRobotEvent.
hitWallAngle - Variable in class robocode.JuniorRobot
Latest angle where this robot has hit a wall (in degrees).
hitWallBearing - Variable in class robocode.JuniorRobot
Latest angle where this robot has hit a wall (in degrees) compared to the body of this robot.
HitWallEvent - Class in robocode
A HitWallEvent is sent to onHitWall() when you collide a wall.
HitWallEvent(double) - Constructor for class robocode.HitWallEvent
Called by the game to create a new HitWallEvent.

I

IAdvancedEvents - Interface in robocode.robotinterfaces
An event interface for receiving advanced robot events with an IAdvancedRobot.
IAdvancedRobot - Interface in robocode.robotinterfaces
A robot interface for creating a more advanced type of robot like AdvancedRobot that is able to handle advanced robot events.
IAdvancedRobotPeer - Interface in robocode.robotinterfaces.peer
The advanced robot peer for advanced robot types like AdvancedRobot and TeamRobot.
IBasicEvents - Interface in robocode.robotinterfaces
An event interface for receiving basic robot events with an IBasicRobot.
IBasicEvents2 - Interface in robocode.robotinterfaces
First extended version of the IBasicEvents interface.
IBasicEvents3 - Interface in robocode.robotinterfaces
Second extended version of the IBasicEvents interface.
IBasicRobot - Interface in robocode.robotinterfaces
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 in robocode.robotinterfaces.peer
The basic robot peer for all robot types.
IBattleListener - Interface in robocode.control.events
The listener interface for receiving "interesting" battle events from the game, e.g. when a battle, round or turn is started or ended.
IBulletSnapshot - Interface in robocode.control.snapshot
Interface of a bullet snapshot at a specific time in a battle.
IDebugProperty - Interface in robocode.control.snapshot
Interface of a debug property, which is a key-value pair.
IInteractiveEvents - Interface in robocode.robotinterfaces
An event interface for receiving interactive events with an IInteractiveRobot.
IInteractiveRobot - Interface in robocode.robotinterfaces
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 in robocode.robotinterfaces
A robot interface for creating the most primitive robot type, which is a JuniorRobot.
IJuniorRobotPeer - Interface in robocode.robotinterfaces.peer
The junior robot peer for junior robot types like JuniorRobot.
IPaintEvents - Interface in robocode.robotinterfaces
An event interface for receiving paint events with an IPaintRobot.
IPaintRobot - Interface in robocode.robotinterfaces
A robot interface that makes it possible for a robot to receive paint events.
IRobocodeEngine - Interface in robocode.control
Interface for the RobocodeEngine.
IRobotSnapshot - Interface in robocode.control.snapshot
Interface of a robot snapshot at a specific time in a battle.
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.
isActive() - Method in enum robocode.control.snapshot.BulletState
 
isAdjustGunForBodyTurn() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Checks if the gun is set to adjust for the robot turning, i.e. to turn independent from the robot's body turn.
isAdjustGunForRobotTurn() - Method in class robocode.AdvancedRobot
Checks if the gun is set to adjust for the robot turning, i.e. to turn independent from the robot's body turn.
isAdjustRadarForBodyTurn() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Checks if the radar is set to adjust for the gun turning, i.e. to turn independent from the gun's turn.
isAdjustRadarForGunTurn() - Method in class robocode.AdvancedRobot
Checks if the radar is set to adjust for the gun turning, i.e. to turn independent from the gun's turn.
isAdjustRadarForGunTurn() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Checks if the radar is set to adjust for the robot turning, i.e. to turn independent from the robot's body turn.
isAdjustRadarForRobotTurn() - Method in class robocode.AdvancedRobot
Checks if the radar is set to adjust for the robot turning, i.e. to turn independent from the robot's body turn.
isAlive() - Method in enum robocode.control.snapshot.RobotState
Checks if the robot is alive.
IScoreSnapshot - Interface in robocode.control.snapshot
Interface of a score snapshot at a specific time in a battle.
isDead() - Method in enum robocode.control.snapshot.RobotState
Checks if the robot is dead.
isDeterministic() - Method in class robocode.control.RandomFactory
 
isDeterministic() - Method in class robocode.control.RobotTestBed
Defaults to true, indicating that the battle is deterministic and robots will always start in the same position each time.
isDroid() - Method in interface robocode.control.snapshot.IRobotSnapshot
Checks if this robot is a Droid.
isDumpingErrors - Static variable in class robocode.control.RobotTestBed
True to specify that error messages should be printed out.
isDumpingMessages - Static variable in class robocode.control.RobotTestBed
True to specify that Robot messages should be printed out.
isDumpingOutput - Static variable in class robocode.control.RobotTestBed
True to specify that Robot output should be printed out.
isDumpingPositions - Static variable in class robocode.control.RobotTestBed
True to specify that the position during each turn should be printed out.
isDumpingTurns - Static variable in class robocode.control.RobotTestBed
True to specify that each turn should be printed out.
isEnableRecording() - Method in class robocode.control.RobotTestBed
 
isEnableScreenshots() - Method in class robocode.control.RobotTestBed
 
isExplosion() - Method in interface robocode.control.snapshot.IBulletSnapshot
Checks if the bullet has become an explosion, i.e. when it a robot or bullet has been hit.
isHitRobot() - Method in enum robocode.control.snapshot.RobotState
Checks if the robot has hit another robot.
isHitWall() - Method in enum robocode.control.snapshot.RobotState
Checks if the robot has hit the wall, i.e. one of the four borders.
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 interface robocode.control.snapshot.IRobotSnapshot
Checks if painting is enabled for this robot.
isPaintRobot() - Method in interface robocode.control.snapshot.IRobotSnapshot
Checks if this robot is a IPaintRobot or is invoking getGraphics()
isReplay() - Method in class robocode.control.events.BattleStartedEvent
Checks if this battle is a replay or a new battle.
isSentryRobot() - Method in interface robocode.control.snapshot.IRobotSnapshot
Checks if this robot is a BorderSentry.
isSentryRobot() - Method in class robocode.ScannedRobotEvent
Checks if the scanned robot is a sentry robot.
isSGPaintEnabled() - Method in interface robocode.control.snapshot.IRobotSnapshot
Checks if RobocodeSG painting (the point (0,0) is in the upper left corner) is enabled for this robot.
IStandardRobotPeer - Interface in robocode.robotinterfaces.peer
The standard robot peer for standard robot types like Robot, AdvancedRobot, and TeamRobot.
isTeammate(String) - Method in interface 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 in robocode.robotinterfaces
An event interface for receiving robot team events with an ITeamRobot.
ITeamRobot - Interface in robocode.robotinterfaces
A robot interface for creating a team robot like TeamRobot that is able to receive team events.
ITeamRobotPeer - Interface in robocode.robotinterfaces.peer
The team robot peer for team robots like TeamRobot.
ITurnSnapshot - Interface in robocode.control.snapshot
Interface of a battle turn snapshot at a specific time in a battle.

J

JuniorRobot - Class in robocode
This is the simplest robot type, which is simpler than the Robot and AdvancedRobot classes.
JuniorRobot() - Constructor for class robocode.JuniorRobot
 

K

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

L

lastError - Variable in class robocode.control.RobotTestBed
 
lastSurvivorBonus - Variable in class robocode.BattleResults
 

M

main(String[]) - Static method in class robocode.Robocode
 
MAX_BULLET_POWER - Static variable in class robocode.Rules
The maximum bullet power, i.e. the maximum amount of energy that can be transferred to a bullet when it is fired, which is 3 energy points.
MAX_TURN_RATE - Static variable in class robocode.Rules
The maximum turning rate of the robot, in degrees, which is 10 degress/turn.
MAX_TURN_RATE_RADIANS - Static variable in class robocode.Rules
The maximum turning rate of the robot measured in radians instead of degrees.
MAX_VELOCITY - Static variable in class robocode.Rules
The maximum velocity of a robot, which is 8 pixels/turn.
MessageEvent - Class in robocode
A MessageEvent is sent to onMessageReceived() when a teammate sends a message to your robot.
MessageEvent(String, Serializable) - Constructor for class robocode.MessageEvent
Called by the game to create a new MessageEvent.
messages - Static variable in class robocode.control.RobotTestBed
The number of messages generated during this battle so far.
MIN_BULLET_POWER - Static variable in class robocode.Rules
The minimum bullet power, i.e the amount of energy required for firing a bullet, which is 0.1 energy points.
MouseClickedEvent - Class in robocode
A MouseClickedEvent is sent to onMouseClicked() when the mouse is clicked inside the battle view.
MouseClickedEvent(MouseEvent) - Constructor for class robocode.MouseClickedEvent
Called by the game to create a new MouseClickedEvent.
MouseDraggedEvent - Class in robocode
A MouseDraggedEvent is sent to onMouseDragged() when the mouse is dragged inside the battle view.
MouseDraggedEvent(MouseEvent) - Constructor for class robocode.MouseDraggedEvent
Called by the game to create a new MouseDraggedEvent.
MouseEnteredEvent - Class in robocode
A MouseEnteredEvent is sent to onMouseEntered() when the mouse has entered the battle view.
MouseEnteredEvent(MouseEvent) - Constructor for class robocode.MouseEnteredEvent
Called by the game to create a new MouseEnteredEvent.
MouseEvent - Class in robocode
Super class of all events that originates from the mouse.
MouseEvent(MouseEvent) - Constructor for class robocode.MouseEvent
Called by the game to create a new MouseEvent.
MouseExitedEvent - Class in robocode
A MouseExitedEvent is sent to onMouseExited() when the mouse has exited the battle view.
MouseExitedEvent(MouseEvent) - Constructor for class robocode.MouseExitedEvent
Called by the game to create a new MouseExitedEvent.
MouseMovedEvent - Class in robocode
A MouseMovedEvent is sent to onMouseMoved() when the mouse has moved inside the battle view.
MouseMovedEvent(MouseEvent) - Constructor for class robocode.MouseMovedEvent
Called by the game to create a new MouseMovedEvent.
MousePressedEvent - Class in robocode
A MousePressedEvent is sent to onMousePressed() when the mouse is pressed inside the battle view.
MousePressedEvent(MouseEvent) - Constructor for class robocode.MousePressedEvent
Called by the game to create a new MousePressedEvent.
MouseReleasedEvent - Class in robocode
A MouseReleasedEvent is sent to onMouseReleased() when the mouse is released inside the battle view.
MouseReleasedEvent(MouseEvent) - Constructor for class robocode.MouseReleasedEvent
Called by the game to create a new MouseReleasedEvent.
MouseWheelMovedEvent - Class in robocode
A MouseWheelMovedEvent is sent to onMouseWheelMoved() when the mouse wheel is rotated inside the battle view.
MouseWheelMovedEvent(MouseEvent) - Constructor for class robocode.MouseWheelMovedEvent
Called by the game to create a new MouseWheelMovedEvent.
move(double) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately moves your robot forward or backward by distance measured in pixels.
MoveCompleteCondition - Class in robocode
A prebuilt condition you can use that indicates your robot has finished moving.
MoveCompleteCondition(AdvancedRobot) - Constructor for class robocode.MoveCompleteCondition
Creates a new MoveCompleteCondition with default priority.
MoveCompleteCondition(AdvancedRobot, int) - Constructor for class robocode.MoveCompleteCondition
Creates a new MoveCompleteCondition with the specified priority.

N

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

P

PaintEvent - Class in robocode
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
Prints out all running threads to standard system out.
priority - Variable in class robocode.Condition
The priority of this condition.
purple - Static variable in class robocode.JuniorRobot
The color purple (0x800080)

R

RADAR_SCAN_RADIUS - Static variable in class robocode.Rules
The radar scan radius, which is 1200 pixels.
RADAR_TURN_RATE - Static variable in class robocode.Rules
The turning rate of the radar measured in degrees, which is 45 degrees/turn.
RADAR_TURN_RATE_RADIANS - Static variable in class robocode.Rules
The turning rate of the radar measured in radians instead of degrees.
RadarTurnCompleteCondition - Class in robocode
A prebuilt condition you can use that indicates your radar has finished turning.
RadarTurnCompleteCondition(AdvancedRobot) - Constructor for class robocode.RadarTurnCompleteCondition
Creates a new RadarTurnCompleteCondition with default priority.
RadarTurnCompleteCondition(AdvancedRobot, int) - Constructor for class robocode.RadarTurnCompleteCondition
Creates a new RadarTurnCompleteCondition with the specified priority.
ramDamage - Variable in class robocode.BattleResults
 
ramDamageBonus - Variable in class robocode.BattleResults
 
RandomFactory - Class in robocode.control
The RandomFactory is used for controlling the generation of random numbers, and supports generating random numbers that are deterministic, which is useful for testing purposes.
RandomFactory() - Constructor for class robocode.control.RandomFactory
 
rank - Variable in class robocode.BattleResults
 
RateControlRobot - Class in robocode
This advanced robot type allows you to set a rate for each of the robot's movements.
RateControlRobot() - Constructor for class robocode.RateControlRobot
 
red - Static variable in class robocode.JuniorRobot
The color red (0xFF0000)
removeBattleListener(IBattleListener) - Method in interface robocode.control.IRobocodeEngine
Removes a battle listener that has previously been added to this object.
removeBattleListener(IBattleListener) - Method in class robocode.control.RobocodeEngine
Removes a battle listener that has previously been added to this object.
removeCustomEvent(Condition) - Method in class robocode.AdvancedRobot
Removes a custom event that was previously added by calling AdvancedRobot.addCustomEvent(Condition).
removeCustomEvent(Condition) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Removes a custom event that was previously added by calling IAdvancedRobotPeer.addCustomEvent(Condition).
rescan() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Rescan for other robots.
resetDeterministic(long) - Static method in class robocode.control.RandomFactory
Resets the random number generator instance to be deterministic when generating random numbers.
resume() - Method in class robocode.Robot
Immediately resumes the movement you stopped by Robot.stop(), if any.
resume() - Method in interface robocode.robotinterfaces.peer.IStandardRobotPeer
Immediately resumes the movement you stopped by IStandardRobotPeer.stop(boolean), if any.
robocode - package robocode
Robot API used for writing robots for Robocode.
Robocode - Class in robocode
Robocode - A programming game involving battling AI tanks.
Robocode() - Constructor for class robocode.Robocode
 
robocode.annotation - package robocode.annotation
Contains annotations that can be used with Robocode.
robocode.control - package robocode.control
The Robocode Control API is used for controlling the Robocode application from another external application.
robocode.control.events - package robocode.control.events
Battle events that occurs during a game, and which are used for the robocode.control.IBattleListener class.
robocode.control.snapshot - package robocode.control.snapshot
Snapshots of the battle turns, robots, bullets, scores etc.
robocode.robotinterfaces - package robocode.robotinterfaces
Robot Interfaces used for creating new robot types, e.g. with other programming languages.
robocode.robotinterfaces.peer - package robocode.robotinterfaces.peer
Robot peers available for implementing new robot types based on the Robot Interfaces.
robocode.util - package robocode.util
Utility classes that can be used when writing robots.
RobocodeEngine - Class in robocode.control
The RobocodeEngine is the 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.
RobocodeEngine(File, RobocodeListener) - Constructor for class robocode.control.RobocodeEngine
Deprecated.
Since 1.6.2. Use RobocodeEngine(File) and addBattleListener() instead.

Creates a new RobocodeEngine for controlling Robocode.

RobocodeEngine(RobocodeListener) - Constructor for class robocode.control.RobocodeEngine
Deprecated.
Since 1.6.2. Use RobocodeEngine() and addBattleListener() instead.

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

RobocodeEngine(IBattleListener) - Constructor for class robocode.control.RobocodeEngine
 
RobocodeFileOutputStream - Class in robocode
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
Deprecated.
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 in robocode
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 in robocode.control
Deprecated.
Since 1.6.2. Use the IBattleListener instead.

A listener interface for receiving callbacks from the RobocodeEngine.

Robot - Class in robocode
The basic robot class that you will extend to create your own robots.
Robot() - Constructor for class robocode.Robot
Constructs a new robot.
ROBOT_HIT_BONUS - Static variable in class robocode.Rules
The amount of bonus damage dealt by a robot ramming an opponent by moving forward into it, which is 2 x Rules.ROBOT_HIT_DAMAGE = 1.2 energy points.
ROBOT_HIT_DAMAGE - Static variable in class robocode.Rules
The amount of damage taken when a robot hits or is hit by another robot, which is 0.6 energy points.
RobotDeathEvent - Class in robocode
This event is sent to onRobotDeath() when another robot (not your robot) dies.
RobotDeathEvent(String) - Constructor for class robocode.RobotDeathEvent
Called by the game to create a new RobotDeathEvent.
robotObject - Variable in class robocode.control.RobotTestBed
Instance of tested robot
RobotResults - Class in robocode.control
Contains the battle results for an individual robot
RobotResults(RobotSpecification, String, int, double, double, double, double, double, double, double, int, int, int) - Constructor for class robocode.control.RobotResults
Constructs a new RobotResults.
RobotResults(RobotSpecification, BattleResults) - Constructor for class robocode.control.RobotResults
Constructs new RobotResults based on a RobotSpecification and BattleResults.
RobotSetup - Class in robocode.control
Contains the initial position and heading for a robot.
RobotSetup(Double, Double, Double) - Constructor for class robocode.control.RobotSetup
Constructs a new RobotSetup.
robotsPath - Static variable in class robocode.control.RobotTestBed
 
RobotSpecification - Class in robocode.control
Defines the properties of a robot, which is returned from RobocodeEngine.getLocalRepository().
RobotState - Enum in robocode.control.snapshot
Defines a robot state, which can be: active on the battlefield, hitting a wall or robot this turn, or dead.
RobotStatus - Class in robocode
Contains the status of a robot for a specific time/turn returned by StatusEvent.getStatus().
RobotTestBed<R extends IBasicRobot> - Class in robocode.control
RobotTestBed provides a superclass that can be extended in order to implement JUnit tests for Robocode robots.
RobotTestBed() - Constructor for class robocode.control.RobotTestBed
 
robotX - Variable in class robocode.JuniorRobot
Current horizontal location of this robot (in pixels).
robotY - Variable in class robocode.JuniorRobot
Current vertical location of this robot (in pixels).
RoundEndedEvent - Class in robocode.control.events
A RoundEndedEvent is sent to onRoundEnded() when the current round of a battle has ended.
RoundEndedEvent(int, int, int) - Constructor for class robocode.control.events.RoundEndedEvent
Called by the game to create a new RoundEndedEvent.
RoundEndedEvent - Class in robocode
A RoundEndedEvent is sent to onRoundEnded() when a round has ended.
RoundEndedEvent(int, int, int) - Constructor for class robocode.RoundEndedEvent
Called by the game to create a new RoundEndedEvent.
RoundStartedEvent - Class in robocode.control.events
A RoundStartedEvent is sent to onRoundStarted() when a new round in a battle is started.
RoundStartedEvent(ITurnSnapshot, int, List<IBasicRobot>) - Constructor for class robocode.control.events.RoundStartedEvent
Called by the game to create a new RoundStartedEvent.
Rules - Class in robocode
Constants and methods that defines the rules of Robocode.
run(String, String) - Method in class robocode.control.RobotTestBed
 
run(String) - Method in class robocode.control.RobotTestBed
 
run() - Method in class robocode.control.RobotTestBed
 
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(BattleSpecification) - Method in interface robocode.control.IRobocodeEngine
Runs the specified battle.
runBattle(BattleSpecification, boolean) - Method in interface robocode.control.IRobocodeEngine
Runs the specified battle.
runBattle(BattleSpecification, String, boolean) - Method in interface robocode.control.IRobocodeEngine
Runs the specified battle.
runBattle(BattleSpecification, String, boolean, boolean) - Method in interface robocode.control.IRobocodeEngine
 
runBattle(BattleSpecification) - Method in class robocode.control.RobocodeEngine
Runs the specified battle.
runBattle(BattleSpecification, boolean) - Method in class robocode.control.RobocodeEngine
Runs the specified battle.
runBattle(BattleSpecification, String, boolean) - Method in class robocode.control.RobocodeEngine
Runs the specified battle.
runBattle(BattleSpecification, String, boolean, boolean) - Method in class robocode.control.RobocodeEngine
runBattle(String, int, String) - Method in class robocode.control.RobotTestBed
 
runSetup() - Method in class robocode.control.RobotTestBed
 
runTeardown() - Method in class robocode.control.RobotTestBed
 

S

SafeStatic - Annotation Type in robocode.annotation
Annotation used for marking a static field as being safe so that Robocode should not print out warnings at runtime when this annotation is being used.
scan() - Method in class robocode.Robot
Scans for other robots.
scannedAngle - Variable in class robocode.JuniorRobot
Current angle to the scanned nearest other robot (in degrees).
scannedBearing - Variable in class robocode.JuniorRobot
Current angle to the scanned nearest other robot (in degrees) compared to the body of this robot.
scannedDistance - Variable in class robocode.JuniorRobot
Current distance to the scanned nearest other robot (in pixels).
scannedEnergy - Variable in class robocode.JuniorRobot
Current energy of scanned nearest other robot.
scannedHeading - Variable in class robocode.JuniorRobot
Current heading of the scanned nearest other robot (in degrees).
ScannedRobotEvent - Class in robocode
A ScannedRobotEvent is sent to onScannedRobot() when you scan a robot.
ScannedRobotEvent() - Constructor for class robocode.ScannedRobotEvent
ScannedRobotEvent(String, double, double, double, double, double) - Constructor for class robocode.ScannedRobotEvent
ScannedRobotEvent(String, double, double, double, double, double, boolean) - Constructor for class robocode.ScannedRobotEvent
Called by the game to create a new ScannedRobotEvent.
scannedVelocity - Variable in class robocode.JuniorRobot
Current velocity of the scanned nearest other robot.
score - Variable in class robocode.BattleResults
 
seconds - Variable in class robocode.BattleResults
 
sendMessage(String, Serializable) - Method in interface 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 variable in class robocode.BattleResults
 
setAdjustGunForBodyTurn(boolean) - Method in interface robocode.robotinterfaces.peer.IStandardRobotPeer
Sets the gun to adjust for the bot's turn, so the gun behaves like it is turning independent of the bot's turn.
setAdjustGunForRobotTurn(boolean) - Method in class robocode.Robot
Sets the gun to turn independent from the robot's turn.
setAdjustRadarForBodyTurn(boolean) - Method in interface robocode.robotinterfaces.peer.IStandardRobotPeer
Sets the radar to turn independent from the robot's turn.
setAdjustRadarForGunTurn(boolean) - Method in class robocode.Robot
Sets the radar to turn independent from the gun's turn.
setAdjustRadarForGunTurn(boolean) - Method in interface robocode.robotinterfaces.peer.IStandardRobotPeer
Sets the radar to adjust for the gun's turn, so the radar behaves like it is turning independent of the gun's turn.
setAdjustRadarForRobotTurn(boolean) - Method in class robocode.Robot
Sets the radar to turn independent from the robot's turn.
setAhead(double) - Method in class robocode.AdvancedRobot
Sets the robot to move ahead (forward) by distance measured in pixels when the next execution takes place.
setAllColors(Color) - Method in class robocode.Robot
Sets all the robot's color to the same color in the same time, i.e. the color of the body, gun, radar, bullet, and scan arc.
setBack(double) - Method in class robocode.AdvancedRobot
Sets the robot to move back by distance measured in pixels when the next execution takes place.
setBodyColor(Color) - Method in class robocode.Robot
Sets the color of the robot's body.
setBodyColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's body.
setBulletColor(Color) - Method in class robocode.Robot
Sets the color of the robot's bullets.
setBulletColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's bullets.
setCall() - Method in interface 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(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.
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.
setDebugProperty(String, String) - Method in class robocode.Robot
Sets the debug property with the specified key to the specified value.
setDebugProperty(String, String) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
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 interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Sets the priority of a class of events.
setFire(double) - Method in class robocode.AdvancedRobot
Sets the gun to fire a bullet when the next execution takes place.
setFire(double) - Method in interface 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.Robot
Sets the color of the robot's gun.
setGunColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's gun.
setGunImageName(String) - Method in class robocode._Robot
Deprecated.
This call is not used.
setGunRotationRate(double) - Method in class robocode.RateControlRobot
Sets the gun's clockwise (right) rotation per turn, in degrees.
setGunRotationRateRadians(double) - Method in class robocode.RateControlRobot
Sets the gun's clockwise (right) rotation per turn, in radians.
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.AdvancedRobot
Call this during an event handler to allow new events of the same priority to restart the event handler.
setInterruptible(boolean) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Call this during an event handler to allow new events of the same priority to restart the event handler.
setLogErrorsEnabled(boolean) - Static method in class robocode.control.RobocodeEngine
Enables or disables errors logged to System.err.
setLogMessagesEnabled(boolean) - Static method in class robocode.control.RobocodeEngine
Enables or disables messages and warnings logged to System.out.
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 interface 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 interface 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 interface 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(PrintStream) - Method in class robocode._RobotBase
Do not call this method!
setOut(PrintStream) - Method in interface robocode.robotinterfaces.IBasicRobot
Do not call this method!
setPeer(IBasicRobotPeer) - Method in class robocode._RobotBase
Do not call this method!
setPeer(IBasicRobotPeer) - Method in interface robocode.robotinterfaces.IBasicRobot
Do not call this method!
setPriority(int) - Method in class robocode.Condition
Sets the priority of this condition.
setPriority(int) - Method in class robocode.Event
Changes the priority of this event.
setRadarColor(Color) - Method in class robocode.Robot
Sets the color of the robot's radar.
setRadarColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's radar.
setRadarImageName(String) - Method in class robocode._Robot
Deprecated.
This call is not used.
setRadarRotationRate(double) - Method in class robocode.RateControlRobot
Sets the radar's clockwise (right) rotation per turn, in degrees.
setRadarRotationRateRadians(double) - Method in class robocode.RateControlRobot
Sets the radar's clockwise (right) rotation per turn, in radians.
setRandom(Random) - Static method in class robocode.control.RandomFactory
Sets the random number generator instance used for generating a stream of random numbers.
setResume() - Method in class robocode.AdvancedRobot
Sets the robot to resume the movement stopped by stop() or AdvancedRobot.setStop(), if any.
setResume() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Sets the robot to resume the movement stopped by stop(boolean) or IAdvancedRobotPeer.setStop(boolean), if any.
setRobotImageName(String) - Method in class robocode._Robot
Deprecated.
This call is not used.
setScanColor(Color) - Method in class robocode.Robot
Sets the color of the robot's scan arc.
setScanColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
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 AdvancedRobot.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 AdvancedRobot.execute() or take an action that executes.
setStop(boolean) - Method in interface 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.
setTime(long) - Method in class robocode.Event
Changes the time when this event occurred.
setTurnBody(double) - Method in interface 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 interface 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.
setTurnGunLeftDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use setTurnGunLeft instead.
setTurnGunLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
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.
setTurnGunRightDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use setTurnGunRight instead.
setTurnGunRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
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.
setTurnLeftDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use setTurnLeft(double) instead.
setTurnLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
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 interface 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.
setTurnRadarLeftDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
setTurnRadarLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
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.
setTurnRadarRightDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use setTurnRadarRight instead.
setTurnRadarRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
setTurnRadarRightRadians(double) - Method in class robocode.AdvancedRobot
Sets the robot's radar to turn right by radians when the next execution takes place.
setTurnRate(double) - Method in class robocode.RateControlRobot
Sets the robot's clockwise (right) rotation per turn, in degrees.
setTurnRateRadians(double) - Method in class robocode.RateControlRobot
Sets the robot's clockwise (right) rotation per turn, in radians.
setTurnRight(double) - Method in class robocode.AdvancedRobot
Sets the robot's body to turn right by degrees when the next execution takes place.
setTurnRightDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
setTurnRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
setTurnRightRadians(double) - Method in class robocode.AdvancedRobot
Sets the robot's body to turn right by radians when the next execution takes place.
setVelocityRate(double) - Method in class robocode.RateControlRobot
Sets the speed the robot will move (forward), in pixels per turn.
setVisible(boolean) - Method in interface robocode.control.IRobocodeEngine
Shows or hides the Robocode window.
setVisible(boolean) - Method in class robocode.control.RobocodeEngine
Shows or hides the Robocode window.
SkippedTurnEvent - Class in robocode
A SkippedTurnEvent is sent to onSkippedTurn() when your robot is forced to skipping a turn.
SkippedTurnEvent(long) - Constructor for class robocode.SkippedTurnEvent
Called by the game to create a new SkippedTurnEvent.
StatusEvent - Class in robocode
This event is sent to onStatus() every turn in a battle to provide the status of the robot.
StatusEvent(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 Robot.resume().
stop(boolean) - Method in class robocode.Robot
Immediately stops all movement, and saves it for a call to Robot.resume().
stop(boolean) - Method in interface robocode.robotinterfaces.peer.IStandardRobotPeer
Immediately stops all movement, and saves it for a call to IStandardRobotPeer.resume().
survival - Variable in class robocode.BattleResults
 

T

takeScreenshot() - Method in interface robocode.control.IRobocodeEngine
Saves screenshot to disk, if the UI is initialized
takeScreenshot() - Method in class robocode.control.RobocodeEngine
Saves screenshot to disk, if the UI is initialized
teamLeaderName - Variable in class robocode.BattleResults
 
TeamRobot - Class in robocode
A TeamRobot is a robot that is made for battles between teams of robots.
TeamRobot() - Constructor for class robocode.TeamRobot
 
test() - Method in class robocode.Condition
Overriding the test() method is the point of a Condition.
test() - Method in class robocode.GunTurnCompleteCondition
Tests if the gun has stopped turning.
test() - Method in class robocode.MoveCompleteCondition
Tests if the robot has stopped moving.
test() - Method in class robocode.RadarTurnCompleteCondition
Tests if the radar has stopped turning.
test() - Method in class robocode.TurnCompleteCondition
Tests if the robot has finished turning.
testErrorListener - Variable in class robocode.control.RobotTestBed
 
thirds - Variable in class robocode.BattleResults
 
toState(int) - Static method in enum robocode.control.snapshot.BulletState
Returns a BulletState based on an integer value that represents a BulletState.
toState(int) - Static method in enum robocode.control.snapshot.RobotState
Returns a RobotState based on an integer value that represents a RobotState.
toString() - Method in class robocode._RobotBase
toString() - Method in class robocode.Bullet
 
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 interface 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 interface robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately turns the robot's body to the right or left by radians.
TurnCompleteCondition - Class in robocode
A prebuilt condition you can use that indicates your robot has finished turning.
TurnCompleteCondition(AdvancedRobot) - Constructor for class robocode.TurnCompleteCondition
Creates a new TurnCompleteCondition with default priority.
TurnCompleteCondition(AdvancedRobot, int) - Constructor for class robocode.TurnCompleteCondition
Creates a new TurnCompleteCondition with the specified priority.
TurnEndedEvent - Class in robocode.control.events
A TurnEndedEvent is sent to onTurnEnded() when the current turn in a battle round is ended.
TurnEndedEvent(ITurnSnapshot) - Constructor for class robocode.control.events.TurnEndedEvent
Called by the game to create a new TurnEndedEvent.
turnGun(double) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately turns the robot's gun to the right or left by radians.
turnGunLeft(int) - Method in class robocode.JuniorRobot
Turns the gun left by degrees.
turnGunLeft(double) - Method in class robocode.Robot
Immediately turns the robot's gun to the left by degrees.
turnGunLeftDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use turnGunLeft instead.
turnGunLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
turnGunLeftRadians(double) - Method in class robocode.AdvancedRobot
Immediately turns the robot's gun to the left by radians.
turnGunRight(int) - Method in class robocode.JuniorRobot
Turns the gun right by degrees.
turnGunRight(double) - Method in class robocode.Robot
Immediately turns the robot's gun to the right by degrees.
turnGunRightDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use turnGunRight instead.
turnGunRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
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(int) - Method in class robocode.JuniorRobot
Turns this robot left by degrees.
turnLeft(double) - Method in class robocode.Robot
Immediately turns the robot's body to the left by degrees.
turnLeftDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use turnLeft(double) instead.
turnLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
turnLeftRadians(double) - Method in class robocode.AdvancedRobot
Immediately turns the robot's body to the left by radians.
turnRadar(double) - Method in interface 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.
turnRadarLeftDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use turnRadarLeft instead.
turnRadarLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
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.
turnRadarRightDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use turnRadarRight instead.
turnRadarRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
turnRadarRightRadians(double) - Method in class robocode.AdvancedRobot
Immediately turns the robot's radar to the right by radians.
turnRight(int) - Method in class robocode.JuniorRobot
Turns this robot right by degrees.
turnRight(double) - Method in class robocode.Robot
Immediately turns the robot's body to the right by degrees.
turnRightDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated.
Use turnRight(double) instead.
turnRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
 
turnRightRadians(double) - Method in class robocode.AdvancedRobot
Immediately turns the robot's body to the right by radians.
TurnStartedEvent - Class in robocode.control.events
A TurnStartedEvent is sent to onTurnStarted() when a new turn in a battle round is started.
TurnStartedEvent() - Constructor for class robocode.control.events.TurnStartedEvent
Called by the game to create a new TurnStartedEvent.
turnTo(int) - Method in class robocode.JuniorRobot
Turns this robot to the specified angle (in degrees).

U

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

V

valueOf(String) - Static method in enum robocode.control.snapshot.BulletState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum robocode.control.snapshot.RobotState
Returns the enum constant of this type with the specified name.
values() - Static method in enum robocode.control.snapshot.BulletState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum robocode.control.snapshot.RobotState
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitFor(Condition) - Method in class robocode.AdvancedRobot
Does not return until a condition is met, i.e. when a Condition.test() returns true.
waitFor(Condition) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Does not return until a condition is met, i.e. when a Condition.test() returns true.
waitTillBattleOver() - Method in interface robocode.control.IRobocodeEngine
Will block caller until current battle is over.
waitTillBattleOver() - Method in class robocode.control.RobocodeEngine
Will block caller until current battle is over.
white - Static variable in class robocode.JuniorRobot
The color white (0xFFFFFF)
WinEvent - Class in robocode
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.
write(byte[]) - Method in class robocode.RobocodeFileOutputStream
Writes a byte array to this output stream.
write(byte[], int, int) - Method in class robocode.RobocodeFileOutputStream
Writes a byte array to this output stream.
write(int) - Method in class robocode.RobocodeFileOutputStream
Writes a single byte to this output stream.

Y

yellow - Static variable in class robocode.JuniorRobot
The color yellow (0xFFFF00)

_

_AdvancedRadiansRobot - Class in robocode
This class is used by the system as a placeholder for all *Radians calls in AdvancedRobot.
_AdvancedRobot - Class in robocode
This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls for AdvancedRobot.
_Robot - Class in robocode
This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls for Robot.
_RobotBase - Class in robocode
This is the base class of all robots used by the system.
A B C D E F G H I J K L M N O P R S T U V W Y _ 
Skip navigation links

Copyright © 2021 Robocode. All Rights Reserved.