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

A

addCustomEvent(Condition) - Method in class robocode.AdvancedRobot
Registers a custom event to be called when a condition is met.
AdvancedRobot - class robocode.AdvancedRobot.
A more advanced type of robot that allows non-blocking calls, custom events, and writes to the filesystem.
AdvancedRobot() - Constructor for class robocode.AdvancedRobot
 
ahead(double) - Method in class robocode.Robot
Moves your robot forward.

B

back(double) - Method in class robocode.Robot
Moves your robot backward.
broadcastMessage(Serializable) - Method in class robocode.TeamRobot
Broadcasts a message to all teammates
Bullet - class robocode.Bullet.
Represents a bullet.
Bullet(BulletPeer) - Constructor for class robocode.Bullet
Called by the game to create a Bullet object
BulletHitBulletEvent - class robocode.BulletHitBulletEvent.
This event is sent to onBulletHitBullet when one of your bullets hits another bullet.
BulletHitBulletEvent(Bullet, Bullet) - Constructor for class robocode.BulletHitBulletEvent
Called by the game to create a new BulletHitEvent.
BulletHitEvent - class robocode.BulletHitEvent.
This event is sent to onBulletHit when one of your bullets hits another robot.
BulletHitEvent(String, double, Bullet) - Constructor for class robocode.BulletHitEvent
Called by the game to create a new BulletHitEvent.
BulletMissedEvent - class robocode.BulletMissedEvent.
This event is sent to onBulletMissed when one of your bullets has misses.
BulletMissedEvent(Bullet) - Constructor for class robocode.BulletMissedEvent
Called by the game to create a new BulletMissedEvent.

C

clearAllEvents() - Method in class robocode.AdvancedRobot
Clears out any pending events immediately.
close() - Method in class robocode.RobocodeFileOutputStream
See java.io.FileOutputStream
compareTo(Object) - Method in class robocode.Event
Used for sorting events based on priority and time.
Condition - class robocode.Condition.
Condition is used to define custom waitFor and custom events for a AdvancedRobot.
Condition() - Constructor for class robocode.Condition
Creates a new, unnamed Condition with the default priority.
Condition(String) - Constructor for class robocode.Condition
Creates a new Condition with the specified name, and default priority.
Condition(String, int) - Constructor for class robocode.Condition
Creates a new Condition with the specified name and priority.
CustomEvent - class robocode.CustomEvent.
This event is sent to onCustomEvent 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 robocode.DeathEvent.
This event is sent to onDeath when your robot dies.
DeathEvent() - Constructor for class robocode.DeathEvent
Called by the game to create a new DeathEvent.
doNothing() - Method in class robocode.Robot
Do nothing this turn.
Droid - interface robocode.Droid.
Robots that implement Droid have no scanner, but an extra 20 life.

E

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

F

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

G

getAllEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all events currently in the robot's queue.
getBattleFieldHeight() - Method in class robocode.Robot
Get height of the current battlefield.
getBattleFieldWidth() - Method in class robocode.Robot
Get width of the current battlefield.
getBattleNum() - Method in class robocode._Robot
Deprecated. use getRoundNum instead.
getBearing() - Method in class robocode.ScannedRobotEvent
Returns the angle to the robot, relative to your robot's heading, in degrees.
getBearing() - Method in class robocode.HitWallEvent
Returns the angle to the wall you hit, relative to your robot's heading.
getBearing() - Method in class robocode.HitRobotEvent
Returns the angle to the robot you hit, relative to your robot's heading.
getBearing() - Method in class robocode.HitByBulletEvent
Returns the bearing to the bullet.
getBearingDegrees() - Method in class robocode.HitWallEvent
Deprecated. use getBearing
getBearingDegrees() - Method in class robocode.HitRobotEvent
Deprecated. use getBearing
getBearingRadians() - Method in class robocode.ScannedRobotEvent
Returns the angle to the robot, relative to your robot's heading, in radians.
getBearingRadians() - Method in class robocode.HitWallEvent
Returns the angle to the wall you hit in radians, relative to your robot's heading.
getBearingRadians() - Method in class robocode.HitRobotEvent
Returns the angle to the robot you hit in radians, relative to your robot's heading.
getBearingRadians() - Method in class robocode.HitByBulletEvent
Returns the bearing to the bullet.
getBullet() - Method in class robocode.HitByBulletEvent
Returns the Bullet that hit you.
getBullet() - Method in class robocode.BulletMissedEvent
Returns the Bullet that missed.
getBullet() - Method in class robocode.BulletHitEvent
Returns the Bullet that hit.
getBullet() - Method in class robocode.BulletHitBulletEvent
Returns the Bullet.
getBulletHitBulletEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all BulletHitBulletEvents currently in the robot's queue.
getBulletHitEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all BulletHitEvents currently in the robot's queue.
getBulletMissedEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all BulletMissedEvents currently in the robot's queue.
getCondition() - Method in class robocode.CustomEvent
Returns the condition that fired, causing this event to be generated.
getDataDirectory() - Method in class robocode.AdvancedRobot
Returns a file representing a directory you can write to using RobocodeOutputStream.
getDataFile(String) - Method in class robocode.AdvancedRobot
Returns a file in your data directory that you can write to RobocodeOutputStream.
getDataQuotaAvailable() - Method in class robocode.AdvancedRobot
Returns the quota available in your data directory, in bytes.
getDistance() - Method in class robocode.ScannedRobotEvent
Returns the distance to the robot you scanned (your center to his center).
getDistanceRemaining() - Method in class robocode.AdvancedRobot
Gets distance left in the robot's current move.
getEnergy() - Method in class robocode.ScannedRobotEvent
Returns the energy of the robot
getEnergy() - Method in class robocode.Robot
Returns the robot's current energy
getEnergy() - Method in class robocode.HitRobotEvent
Returns the energy of the robot you hit
getEnergy() - Method in class robocode.BulletHitEvent
Returns the remaining energy of the robot you hit (after the damage done by your bullet).
getEventPriority(String) - Method in class robocode.AdvancedRobot
Returns the current priority of a class of events.
getGunCharge() - Method in class robocode._Robot
Deprecated. use getGunHeat()
getGunCoolingRate() - Method in class robocode.Robot
Returns the rate at which the gun will cool down.
getGunHeading() - Method in class robocode.Robot
Returns gun heading in degrees.
getGunHeadingDegrees() - Method in class robocode._AdvancedRobot
Deprecated. use getGunHeading
getGunHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
Returns gun heading in radians.
getGunHeat() - Method in class robocode.Robot
Returns the current heat of the gun.
getGunImageName() - Method in class robocode._Robot
Deprecated. This call is not used.
getGunTurnRemaining() - Method in class robocode.AdvancedRobot
Gets angle remaining in the gun's turn, in degrees
getGunTurnRemainingRadians() - Method in class robocode._AdvancedRadiansRobot
Gets angle remaining in the gun's turn, in radians
getHeading() - Method in class robocode.ScannedRobotEvent
Returns the direction the robot is facing, in degrees.
getHeading() - Method in class robocode.Robot
Returns the direction the robot is facing, in degrees.
getHeading() - Method in class robocode.HitByBulletEvent
Returns the direction the bullet was heading when it hit you, in degrees (0 <= getHeading() < 360) This is not relative to the direction you are facing.
getHeading() - Method in class robocode.Bullet
Returns the direction the bullet is/was heading, in degrees (0 <= getHeading() < 360) This is not relative to the direction you are facing.
getHeadingDegrees() - Method in class robocode._AdvancedRobot
Deprecated. use getHeading
getHeadingDegrees() - Method in class robocode.HitByBulletEvent
Deprecated. use getHeading
getHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
Returns the direction the robot is facing, in radians.
getHeadingRadians() - Method in class robocode.ScannedRobotEvent
Returns the direction the robot is facing, in radians.
getHeadingRadians() - Method in class robocode.HitByBulletEvent
Returns the direction the bullet was heading when it hit you, in radians (0 <= getHeading() < 2 * PI) This is not relative to the direction you are facing.
getHeadingRadians() - Method in class robocode.Bullet
Returns the direction the bullet is/was heading, in radians (0 <= getHeadingRadians() < 2 * Math.PI) This is not relative to the direction you are facing.
getHeight() - Method in class robocode.Robot
Returns the height of the robot
getHitBullet() - Method in class robocode.BulletHitBulletEvent
Returns the Bullet that was hit.
getHitByBulletEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all HitByBulletEvents currently in the robot's queue.
getHitRobotEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all HitRobotEvents currently in the robot's queue.
getHitWallEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all HitWallEvents currently in the robot's queue.
getLife() - Method in class robocode._Robot
Deprecated. Use getEnergy()
getLife() - Method in class robocode.ScannedRobotEvent
Deprecated. use getEnergy()
getLife() - Method in class robocode.BulletHitEvent
Deprecated. use getEnergy()
getMaxWaitCount() - Method in class robocode._AdvancedRobot
Deprecated. This method is no longer functional.
getMessage() - Method in class robocode.MessageEvent
Returns the message itself.
getName() - Method in class robocode.ScannedRobotEvent
Returns the name of the robot
getName() - Method in class robocode.RobotDeathEvent
Returns the name of the robot that died.
getName() - Method in class robocode.Robot
Returns the robot's name
getName() - Method in class robocode.RobocodeFileOutputStream
Returns the filename
getName() - Method in class robocode.HitRobotEvent
Returns the name of the robot you hit
getName() - Method in class robocode.HitByBulletEvent
Returns the name of the robot that fired this bullet
getName() - Method in class robocode.Condition
 
getName() - Method in class robocode.BulletHitEvent
Returns the name of the robot you hit.
getName() - Method in class robocode.Bullet
Returns the name of the robot that fired this bullet
getNumBattles() - Method in class robocode._Robot
Deprecated. use getNumRounds() instead
getNumRounds() - Method in class robocode.Robot
Returns the number of rounds in the current battle
getOthers() - Method in class robocode.Robot
Returns how many opponents are left
getPower() - Method in class robocode.HitByBulletEvent
Returns the power of this bullet.
getPower() - Method in class robocode.Bullet
Returns the power of this bullet.
getPriority() - Method in class robocode.Event
Returns the priority of the event.
getPriority() - Method in class robocode.Condition
 
getRadarHeading() - Method in class robocode.Robot
Returns radar heading in degrees.
getRadarHeadingDegrees() - Method in class robocode._AdvancedRobot
Deprecated. use getRadarHeading
getRadarHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
Returns radar heading in radians.
getRadarImageName() - Method in class robocode._Robot
Deprecated. This call is not used.
getRadarTurnRemaining() - Method in class robocode.AdvancedRobot
Gets angle remaining in the radar's turn, in degrees.
getRadarTurnRemainingRadians() - Method in class robocode._AdvancedRadiansRobot
Gets angle remaining in the radar's turn, in radians
getRobotBearing() - Method in class robocode.ScannedRobotEvent
Deprecated. use getBearing()
getRobotBearingDegrees() - Method in class robocode.ScannedRobotEvent
Deprecated. use getBearing()
getRobotBearingRadians() - Method in class robocode.ScannedRobotEvent
Deprecated. use getBearingRadians()
getRobotDeathEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all RobotDeathEvents currently in the robot's queue.
getRobotDistance() - Method in class robocode.ScannedRobotEvent
Deprecated. use getDistance()
getRobotHeading() - Method in class robocode.ScannedRobotEvent
Deprecated. use getHeading()
getRobotHeadingDegrees() - Method in class robocode.ScannedRobotEvent
Deprecated. use getHeading()
getRobotHeadingRadians() - Method in class robocode.ScannedRobotEvent
Deprecated. use getHeadingRadians()
getRobotImageName() - Method in class robocode._Robot
Deprecated. This call is not used.
getRobotLife() - Method in class robocode.ScannedRobotEvent
Deprecated. use getEnergy()
getRobotLife() - Method in class robocode.BulletHitEvent
Deprecated. use getEnergy()
getRobotName() - Method in class robocode.ScannedRobotEvent
Deprecated. use getName()
getRobotName() - Method in class robocode.RobotDeathEvent
Deprecated. use getName
getRobotName() - Method in class robocode.HitRobotEvent
Deprecated. use getName
getRobotName() - Method in class robocode.BulletHitEvent
Deprecated. use getName()
getRobotVelocity() - Method in class robocode.ScannedRobotEvent
Deprecated. use getVelocity()
getRoundNum() - Method in class robocode.Robot
Returns the number of the current round (1 to getNumRounds()) in the battle
getScannedRobotEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all ScannedRobotEvents currently in the robot's queue.
getSender() - Method in class robocode.MessageEvent
Returns the name of the sending robot
getTeammates() - Method in class robocode.TeamRobot
Returns an array of your teammates names
getTime() - Method in class robocode.Robot
Returns the current game time Note: 1 battle consists of multiple rounds Time is reset to 0 at the beginning of every round.
getTime() - Method in class robocode.Event
Returns the time the event occurred.
getTurnRemaining() - Method in class robocode.AdvancedRobot
Gets angle remaining in the robot's turn, in degrees.
getTurnRemainingRadians() - Method in class robocode._AdvancedRadiansRobot
Gets angle remaining in the robot's turn, in radians.
getVelocity() - Method in class robocode.ScannedRobotEvent
Returns the velocity of the robot
getVelocity() - Method in class robocode.Robot
Returns the velocity of the robot.
getVelocity() - Method in class robocode.HitByBulletEvent
Returns the velocity of this bullet.
getVelocity() - Method in class robocode.Bullet
Returns the velocity of this bullet.
getVictim() - Method in class robocode.Bullet
Returns the name of the robot that this bullet hit, or null.
getWaitCount() - Method in class robocode._AdvancedRobot
Deprecated. Override onSkippedTurn instead.
getWidth() - Method in class robocode.Robot
Returns the width of the robot
getX() - Method in class robocode.Robot
Returns the X position of the robot.
getX() - Method in class robocode.Bullet
Returns the x position of the bullet.
getY() - Method in class robocode.Robot
Returns the Y position of the robot.
getY() - Method in class robocode.Bullet
Returns the y position of the bullet.
GunTurnCompleteCondition - class robocode.GunTurnCompleteCondition.
A prebuilt condition you can use that indicates your gun has finished rotating.
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 the specified priority.

H

HitByBulletEvent - class robocode.HitByBulletEvent.
A HitByBulletEvent is sent to Robot.onHitByBullet(robocode.HitByBulletEvent) when you are hit by a bullet.
HitByBulletEvent(double, Bullet) - Constructor for class robocode.HitByBulletEvent
Called by the game to create a new HitByBulletEvent.
HitRobotEvent - class robocode.HitRobotEvent.
A HitRobotEvent is sent to Robot.onHitRobot(robocode.HitRobotEvent) when you collide with another robot You can use the information contained in this event to determine what to do.
HitRobotEvent(String, double, double, boolean) - Constructor for class robocode.HitRobotEvent
Called by the game to create a new HitRobotEvent.
HitWallEvent - class robocode.HitWallEvent.
A HitWallEvent is sent to Robot.onHitWall(robocode.HitWallEvent) when you collide a wall.
HitWallEvent(double) - Constructor for class robocode.HitWallEvent
Called by the game to create a new HitWallEvent.

I

isActive() - Method in class robocode.Bullet
Returns true if the bullet is still on the battlefield, false otherwise.
isAdjustGunForRobotTurn() - Method in class robocode.AdvancedRobot
Checks if the gun is set to adjust for the robot turning.
isAdjustRadarForGunTurn() - Method in class robocode.AdvancedRobot
Checks if the radar is set to adjust for the gun turning.
isAdjustRadarForRobotTurn() - Method in class robocode.AdvancedRobot
Checks if the radar is set to adjust for the robot turning.
isMyFault() - Method in class robocode.HitRobotEvent
If you were moving toward the robot you hit, isMyFault() will return true.
isTeammate(String) - Method in class robocode.TeamRobot
Checks if a given robot name is one of your teammates.

M

main(String[]) - Static method in class robocode.Robocode
Use the command-line to start Robocode.
MessageEvent - class robocode.MessageEvent.
A MessageEvent is sent to TeamRobot.onMessageReceived(robocode.MessageEvent) when a teammate sends you a message.
MessageEvent(String, Serializable) - Constructor for class robocode.MessageEvent
Called by the game to create a new MessageEvent.
MoveCompleteCondition - class robocode.MoveCompleteCondition.
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

O

onBulletHit(BulletHitEvent) - Method in class robocode.Robot
This method will be called when one of your bullets hits another robot.
onBulletHitBullet(BulletHitBulletEvent) - Method in class robocode.Robot
This method will be called when one of your bullets hits another bullet.
onBulletMissed(BulletMissedEvent) - Method in class robocode.Robot
This method will be called when one of your bullets misses (hits a wall).
onCustomEvent(CustomEvent) - Method in class robocode.AdvancedRobot
This method will be called when a custom condition is met See the sample robots for examples of use.
onDeath(DeathEvent) - Method in class robocode.Robot
This method will be called if your robot dies You should override it in your robot if you want to be informed of this event.
onDeath(DeathEvent) - Method in class robocode.AdvancedRobot
This method will be called if your robot dies You should override it in your robot if you want to be informed of this event.
onHitByBullet(HitByBulletEvent) - Method in class robocode.Robot
This method will be called when your robot is hit by a bullet.
onHitRobot(HitRobotEvent) - Method in class robocode.Robot
This method will be called when your robot collides with another robot.
onHitWall(HitWallEvent) - Method in class robocode.Robot
This method will be called when your robot collides with a wall.
onMessageReceived(MessageEvent) - Method in class robocode.TeamRobot
This method will be called when your robot receives a message from a teammate.
onRobotDeath(RobotDeathEvent) - Method in class robocode.Robot
This method will be called if another robot dies You should override it in your robot if you want to be informed of this event.
onScannedRobot(ScannedRobotEvent) - Method in class robocode.Robot
This method will be called when your robot sees another robot.
onSkippedTurn(SkippedTurnEvent) - Method in class robocode.AdvancedRobot
This method will be called if you are taking an extremely long time between actions.
onWin(WinEvent) - Method in class robocode.Robot
This method will be called if your robot wins a battle.
out - Variable in class robocode.Robot
The output stream your robot should use to print.

P

priority - Variable in class robocode.Condition
The priority of this condition.

R

RadarTurnCompleteCondition - class robocode.RadarTurnCompleteCondition.
A prebuilt condition you can use that indicates your radar has finished rotating.
RadarTurnCompleteCondition(AdvancedRobot) - Constructor for class robocode.RadarTurnCompleteCondition
Creates a new RadarTurnCompleteCondition with default priority.
RadarTurnCompleteCondition(AdvancedRobot, int) - Constructor for class robocode.RadarTurnCompleteCondition
Creates a new RadarTurnCompleteCondition with the specified priority.
removeCustomEvent(Condition) - Method in class robocode.AdvancedRobot
Removes a custom event (specified by condition).
resume() - Method in class robocode.Robot
Resume the movement you stopped in stop(), if any.
robocode - package robocode
 
Robocode - class robocode.Robocode.
Robocode - A programming game involving battling AI tanks.
Copyright 2001 IBM
RobocodeFileOutputStream - class robocode.RobocodeFileOutputStream.
RobocodeFileOutputStream
RobocodeFileOutputStream(File) - Constructor for class robocode.RobocodeFileOutputStream
RobocodeFileOutputStream constructor -- see FileOutputStream for docs!
RobocodeFileOutputStream(FileDescriptor) - Constructor for class robocode.RobocodeFileOutputStream
RobocodeFileOutputStream constructor -- see FileOutputStream for docs!
RobocodeFileOutputStream(String) - Constructor for class robocode.RobocodeFileOutputStream
RobocodeFileOutputStream constructor -- see FileOutputStream for docs!
RobocodeFileOutputStream(String, boolean) - Constructor for class robocode.RobocodeFileOutputStream
RobocodeFileOutputStream constructor -- see FileOutputStream for docs!
RobocodeFileWriter - class robocode.RobocodeFileWriter.
See java.io.FileWriter
RobocodeFileWriter(File) - Constructor for class robocode.RobocodeFileWriter
RobocodeFileWriter constructor -- see java.io.FileWriter for docs!
RobocodeFileWriter(FileDescriptor) - Constructor for class robocode.RobocodeFileWriter
RobocodeFileWriter constructor -- see java.io.FileWriter for docs!
RobocodeFileWriter(String) - Constructor for class robocode.RobocodeFileWriter
RobocodeFileWriter constructor -- see java.io.FileWriter for docs!
RobocodeFileWriter(String, boolean) - Constructor for class robocode.RobocodeFileWriter
RobocodeFileWriter constructor -- see java.io.FileWriter for docs!
Robot - class robocode.Robot.
The basic robot class that you will extend to create your own robots.
Robot() - Constructor for class robocode.Robot
 
RobotDeathEvent - class robocode.RobotDeathEvent.
This event is sent to onRobotDeath when another robot (not you) dies.
RobotDeathEvent(String) - Constructor for class robocode.RobotDeathEvent
Called by the game to create a new RobotDeathEvent.
run() - Method in class robocode.Robot
The main method in every robot.

S

scan() - Method in class robocode.Robot
Look for other robots.
ScannedRobotEvent - class robocode.ScannedRobotEvent.
A ScannedRobotEvent is sent to Robot.onScannedRobot(robocode.ScannedRobotEvent) when you scan a robot.
ScannedRobotEvent(String, double, double, double, double, double) - Constructor for class robocode.ScannedRobotEvent
Called by the game to create a new ScannedRobotEvent.
sendMessage(String, Serializable) - Method in class robocode.TeamRobot
Sends a message to one (or more) teammates
setAdjustGunForRobotTurn(boolean) - Method in class robocode.Robot
Sets the gun to automatically turn the opposite way when the robot turns.
setAdjustRadarForGunTurn(boolean) - Method in class robocode.Robot
Sets the radar to automatically turn the opposite way when the gun turns.
setAdjustRadarForRobotTurn(boolean) - Method in class robocode.Robot
Sets the radar to automatically turn the opposite way when the robot turns.
setAhead(double) - Method in class robocode.AdvancedRobot
Sets the robot to move ahead by distance This call returns immediately, and will not execute until you call execute() or take an action that executes.
setBack(double) - Method in class robocode.AdvancedRobot
Sets the robot to move back by distance.
setColors(Color, Color, Color) - Method in class robocode.Robot
Call this method to set your robot's colors.
setEventPriority(String, int) - Method in class robocode.AdvancedRobot
Set the priority of a class of events.
setFileOutputStream(FileOutputStream) - Method in class robocode.RobocodeFileOutputStream
The system calls this method, you should not call it.
setFire(double) - Method in class robocode.AdvancedRobot
Sets the gun to fire a bullet.
setFireBullet(double) - Method in class robocode.AdvancedRobot
Fires a bullet.
setGunImageName(String) - Method in class robocode._Robot
Deprecated. This call is not used.
setInterruptible(boolean) - Method in class robocode._Robot
Deprecated. This call has moved to AdvancedRobot, and will no longer function in the Robot class.
setInterruptible(boolean) - Method in class robocode.AdvancedRobot
Call this during an event handler to allow new events of the same priority, generated following this call, to restart the event handler.
setMaxTurnRate(double) - Method in class robocode.AdvancedRobot
If you would like to turn slower than 10 degrees / tick, call this method to set it.
setMaxVelocity(double) - Method in class robocode.AdvancedRobot
If you would like to limit your robot's speed to less than 8, call this method.
setName(String) - Method in class robocode.Condition
Sets the name of this condition
setPeer(RobotPeer) - Method in class robocode._Robot
This method is called by the game.
setPriority(int) - Method in class robocode.Event
Called by the game to set the priority of an event to the priority your robot specified for this type of event (or the default priority)
setPriority(int) - Method in class robocode.Condition
Sets the priority of this condition
setRadarImageName(String) - Method in class robocode._Robot
Deprecated. This call is not used.
setResume() - Method in class robocode.AdvancedRobot
Sets the robot to resume the movement you stopped in stop() or setStop(), if any.
setRobotImageName(String) - Method in class robocode._Robot
Deprecated. This call is not used.
setStop() - Method in class robocode.AdvancedRobot
This call is identical to stop(), but returns immediately, and will not execute until you call execute() or take an action that executes.
setStop(boolean) - Method in class robocode.AdvancedRobot
This call is identical to stop(boolean), but returns immediately, and will not execute until you call execute() or take an action that executes.
setThreadManager(ThreadManager) - Static method in class robocode.RobocodeFileOutputStream
The system calls this method, you should not call it.
setTime(long) - Method in class robocode.Event
Called by the game to set the time an event occurred.
setTurnGunLeft(double) - Method in class robocode.AdvancedRobot
Sets the gun to turn left by degrees This call returns immediately, and will not execute until you call execute() or take an action that executes.
setTurnGunLeftDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated. use #setTurnGunLeft
setTurnGunLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
Sets the gun to turn left by radians.
setTurnGunRight(double) - Method in class robocode.AdvancedRobot
Sets the gun to turn right by degrees.
setTurnGunRightDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated. use #setTurnGunRight
setTurnGunRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
Sets the gun to turn right by radians.
setTurnLeft(double) - Method in class robocode.AdvancedRobot
Sets the robot to turn left by degrees.
setTurnLeftDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated. use #setTurnLeft
setTurnLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
Sets the robot to turn left by radians.
setTurnRadarLeft(double) - Method in class robocode.AdvancedRobot
Sets the radar to turn left by degrees.
setTurnRadarLeftDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated. use #setTurnRadarLeft
setTurnRadarLeftRadians(double) - Method in class robocode._AdvancedRadiansRobot
Sets the radar to turn left by radians.
setTurnRadarRight(double) - Method in class robocode.AdvancedRobot
Sets the radar to turn right by degrees.
setTurnRadarRightDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated. use #setTurnRadarRight
setTurnRadarRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
Sets the radar to turn right by radians.
setTurnRight(double) - Method in class robocode.AdvancedRobot
Sets the robot to turn right by degrees.
setTurnRightDegrees(double) - Method in class robocode._AdvancedRobot
Deprecated. use #setTurnRight
setTurnRightRadians(double) - Method in class robocode._AdvancedRadiansRobot
Sets the robot to turn right by radians.
SkippedTurnEvent - class robocode.SkippedTurnEvent.
A SkippedTurnEvent is sent to AdvancedRobot.onSkippedTurn(robocode.SkippedTurnEvent) when skipping a turn.
SkippedTurnEvent() - Constructor for class robocode.SkippedTurnEvent
Called by the game to create a new SkippedTurnEvent.
stop() - Method in class robocode.Robot
Stops all movement, and saves it for a call to resume().
stop(boolean) - Method in class robocode.Robot
Stops all movement, and saves it for a call to resume().

T

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

W

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

_

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

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