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.
abortCurrentBattle() - Method in class robocode.control.RobocodeEngine
Aborts the current battle if it is running.
ACCELERATION - Static variable in class robocode.naval.NavalRules
The acceleration of a Ship, i.e. the increase of velocity when the Ship moves forward, which is 1 pixel/turn.
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.
addComponent(IComponent) - Method in class robocode.naval.ComponentManager
Add a component.
addComponent(int, IComponent) - Method in class robocode.naval.ComponentManager
Add a component on the specified index.
addComponent(IComponent) - Method in interface robocode.naval.interfaces.IComponents
Add a component.
addComponent(int, IComponent) - Method in interface robocode.naval.interfaces.IComponents
Add a component on the specified index.
addComponent(IComponent) - Method in interface robocode.robotinterfaces.IComponents
Add a component.
addComponent(int, IComponent) - Method in interface robocode.robotinterfaces.IComponents
Add a component on the specified index.
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.
addCustomEvent(Condition) - Method in class robocode.Ship
Registers a custom event to be called when a condition is met.
AdvancedRobot - Class in robocode
A more advanced type of robot than Robot that allows non-blocking calls, custom events, and writes to the filesystem.
AdvancedRobot() - Constructor for class robocode.AdvancedRobot
 
ahead(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.
angle - Variable in class robocode.naval.ComponentBase
The angle, in radians, of the component.

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.
BACK_WEAPON_OFFSET - Static variable in class robocode.naval.NavalRules
The offsets from the Pivot point(PROW_OFFSET), for the different components.
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) - 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.
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) - 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.
black - Static variable in class robocode.JuniorRobot
The color black (0x000000)
BLIND_SPOT_ANGLE - Static variable in class robocode.naval.WeaponComponent
The half and full blind arc angle for any weapon.
BlindSpot - Class in robocode.naval
A blind spot is used to prevent something from moving to a specified angle.
BlindSpot(double, double) - Constructor for class robocode.naval.BlindSpot
Create a new blind spot.
BlindSpot(BlindSpot) - Constructor for class robocode.naval.BlindSpot
Copy constructor for BlindSpot.
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

CENTRAL_RADAR_OFFSET - Static variable in class robocode.naval.NavalRules
The offsets from the Pivot point(PROW_OFFSET), for the different components.
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.NavalTurnCompleteCondition
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.
clearAllEvents() - Method in class robocode.Ship
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.
collide(ITransformable, ITransformable) - Static method in class robocode.util.Collision
Determines whether two robots collided.
collide(ITransformable, Line2D.Double) - Static method in class robocode.util.Collision
Determines whether the robot collides with a Line2D.Double.
collide(Line2D.Double, Line2D.Double) - Static method in class robocode.util.Collision
Determines whether the Line2D.Double intersect with each other.
collide(ITransformable, Rectangle2D) - Static method in class robocode.util.Collision
THOMA: STILL NEEDS A FEW JUNIT TESTS Collision method that is mainly used for mines.
Collision - Class in robocode.util
This class contains more advanced collision detection methods then the original Robocode has.
Collision() - Constructor for class robocode.util.Collision
 
collisionPointsPolygon(Polygon, Polygon) - Static method in class robocode.util.Collision
Returns a HashMap with a list of Integers in it.
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.ScannedProjectileEvent
Deprecated. Compares this event to another event regarding precedence.
compareTo(Event) - Method in class robocode.ScannedRobotEvent
Compares this event to another event regarding precedence.
compareTo(Event) - Method in class robocode.ScannedShipEvent
Compares this event to another event regarding precedence.
ComponentBase - Class in robocode.naval
The abstract class for the basic ship components.
ComponentBase(Point2D, ComponentType) - Constructor for class robocode.naval.ComponentBase
Creates a new robot component at the specified point.
ComponentBase(double, double, ComponentType, double) - Constructor for class robocode.naval.ComponentBase
Creates a new robot component at the specified point.
ComponentBase(Point2D, ComponentType, double) - Constructor for class robocode.naval.ComponentBase
Creates a new robot component at the specified point.
ComponentBase.HiddenComponentHelper - Class in robocode.naval
Only visible towards subclasses.
ComponentBase.HiddenComponentHelper() - Constructor for class robocode.naval.ComponentBase.HiddenComponentHelper
 
ComponentManager - Class in robocode.naval
Manages the different components that can be assigned to a ship.
ComponentManager() - Constructor for class robocode.naval.ComponentManager
 
ComponentType - Enum in robocode.naval
Describes what the component represents.
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.
convertResults(NavalBattleResults[]) - Static method in class robocode.control.ShipResults
Converts an array of NavalBattleResults into an array of ShipResults.
coolDown(double) - Method in class robocode.naval.WeaponComponent
Cool down the weapon.
Coordinates - Class in robocode.util
This class is responsible for transforming points into exact coordinates using the AffineTransform class.
Coordinates() - Constructor for class robocode.util.Coordinates
 
copy(ComponentManager) - Static method in class robocode.naval.ComponentManager
Get a copy of the given ComponentManager.
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.naval.NavalRules
The deceleration of a Ship, i.e. the decrease of velocity when the Ship moves backwards (or brakes), which is 2 pixels/turn.
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.
deserialize(RbSerializer, ByteBuffer) - Method in class robocode.naval.ComponentBase.HiddenComponentHelper
De-serialize the base component and request the sub-class to de-serialize itself too.
deserializeSub(RbSerializer, ByteBuffer, Object) - Method in class robocode.naval.ComponentBase.HiddenComponentHelper
De-serialize the subclass of this super class.
distance - Variable in class robocode.ScannedShipEvent
 
distinct(ITransformable) - Static method in class robocode.util.Collision
Generates a list of distinct points from the bounding box of a robot.
distinct(Polygon) - Static method in class robocode.util.Collision
Generates a list of distinct points from a polygon.
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
Robots that implement Droid have no scanner, but an extra 20 life/energy.

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).
energy - Variable in class robocode.ScannedShipEvent
 
equals(Object) - Method in class robocode.BattleResults
 
equals(Object) - Method in class robocode.Bullet
 
equals(Object) - Method in interface robocode.control.IResults
 
equals(Object) - Method in class robocode.control.RobotResults
 
equals(Object) - Method in class robocode.control.ShipResults
 
equals(Object) - Method in class robocode.Mine
 
equals(Object) - Method in class robocode.naval.ComponentBase
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 interface robocode.naval.interfaces.IShip
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.IShip
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.
execute() - Method in class robocode.Ship
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(ITransformable) - Method in class robocode.naval.WeaponComponent
Deprecated. 
fire(double) - Method in class robocode.Robot
Immediately fires a bullet.
fire(double) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Immediately fires a bullet.
fireBackCannon(double) - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Fires the a bullet/missile from the back cannon with the given power
fireBackCannon(double) - Method in class robocode.Ship
Fires the a bullet/missile from the back cannon with the given power
fireBullet(double) - Method in class robocode.Robot
Immediately fires a bullet.
fireComponent(int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
WeaponComponent.fire()
fireFrontCannon(double) - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Fires the a bullet/missile from the front cannon with the given power
fireFrontCannon(double) - Method in class robocode.Ship
Fires the a bullet/missile from the front cannon with the given power
firsts - Variable in class robocode.BattleResults
 
flush() - Method in class robocode.RobocodeFileOutputStream
Flushes this output stream.
fromSeries(ComponentType) - Method in enum robocode.naval.ComponentType
Determines if the type matches a certain bitmask series.
FRONT_WEAPON_OFFSET - Static variable in class robocode.naval.NavalRules
The offsets from the Pivot point(PROW_OFFSET), for the different components.

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.
getAdvancedEventListener() - Method in class robocode.Ship
Do not call this method!
getAffineTransform(double, double, double) - Static method in class robocode.util.Coordinates
Get the AffineTransform from the given values.
getAffineTransformShip(ITransformablePeer) - Static method in class robocode.util.Coordinates
Get the AffineTransform for the ShipPeer.
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.
getAllEvents() - Method in class robocode.Ship
Returns a vector containing all events currently in the robot's queue.
getAngle() - Method in interface robocode.control.snapshot.IComponentSnapshot
Get the angle of the component; in radians.
getAngle() - Method in class robocode.naval.ComponentBase
Get the angle of the component; in radians.
getAngle() - Method in interface robocode.naval.interfaces.IComponent
Get the angle of the component; in radians.
getAngleComponentRadians(int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Returns the angle of the specified component in Radians
getAngleDegrees() - Method in class robocode.naval.ComponentBase
Get the angle of the component; in degrees.
getAngleDegrees() - Method in interface robocode.naval.interfaces.IComponent
Get the angle of the component; in degrees.
getAngleRemainingComponent(int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Returns the angleRemaining of the given index in radians
getAtBlindSpot() - Method in class robocode.naval.WeaponComponent
 
getAtBlindSpot(int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Decides whether the specified WeaponComponent is at the edge of its BlindSpot
getAuthorName() - Method in class robocode.control.RobotSpecification
Returns the name of the author of this robot or team.
getBackCannonAtBlindSpot() - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Returns true when the blindSpot has been reached for the backCannon
getBackCannonAtBlindSpot() - Method in class robocode.Ship
Returns true when the blindSpot has been reached for the backCannon
getBackCannonHeadingDegrees() - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Retrieve the angle the back cannon is heading in degrees.
getBackCannonHeadingDegrees() - Method in class robocode.Ship
Retrieve the angle the back cannon is heading in degrees.
getBackCannonHeadingRadians() - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Retrieve the angle the back cannon is heading in radians.
getBackCannonHeadingRadians() - Method in class robocode.Ship
Retrieve the angle the back cannon is heading in radians.
getBackCannonTurnRemainingDegrees() - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Returns the amount the Back Cannon still has to turn in degrees.
getBackCannonTurnRemainingDegrees() - Method in class robocode.Ship
Returns the amount the Back Cannon still has to turn in degrees.
getBackCannonTurnRemainingRadians() - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Returns the amount the Back Cannon still has to turn in radians.
getBackCannonTurnRemainingRadians() - Method in class robocode.Ship
Returns the amount the Back Cannon still has to turn in radians.
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.
getBasicEventListener() - Method in class robocode.Ship
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 interface robocode.naval.interfaces.IShip
Returns the height of the current battlefield measured in pixels.
getBattleFieldHeight() - Method in class robocode.Robot
Returns the height of the current battlefield measured in pixels.
getBattleFieldHeight() - Method in interface robocode.robotinterfaces.IShip
Returns the height of the current battlefield measured in pixels.
getBattleFieldHeight() - Method in interface robocode.robotinterfaces.ITransformablePeer
Get the height of the battlefield.
getBattleFieldHeight() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the height of the current battlefield measured in pixels.
getBattleFieldHeight() - Method in class robocode.Ship
Returns the height of the current battlefield measured in pixels.
getBattlefieldWidth() - Method in class robocode.BattleRules
Returns the battlefield width.
getBattleFieldWidth() - Method in interface robocode.naval.interfaces.IShip
Returns the width of the current battlefield measured in pixels.
getBattleFieldWidth() - Method in class robocode.Robot
Returns the width of the current battlefield measured in pixels.
getBattleFieldWidth() - Method in interface robocode.robotinterfaces.IShip
Returns the width of the current battlefield measured in pixels.
getBattleFieldWidth() - Method in interface robocode.robotinterfaces.ITransformablePeer
Get the width of the battlefield.
getBattleFieldWidth() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the width of the current battlefield measured in pixels.
getBattleFieldWidth() - Method in class robocode.Ship
Returns the width of the current battlefield measured in pixels.
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)
getBearingBack() - Method in class robocode.ScannedShipEvent
Returns the bearing to the robot you scanned, measured from the back weapon; relative to your robot's back weapon zero (absolute south!)
getBearingBackCanon() - Method in class robocode.ScannedProjectileEvent
Deprecated. Get the bearing from the back canon to the projectile.
getBearingBackRadians() - Method in class robocode.ScannedShipEvent
Returns the bearing to the robot you scanned, measured from the back weapon; relative to your robot's back weapon zero (absolute south!)
getBearingDegrees() - Method in class robocode.HitRobotEvent
Deprecated. Use HitRobotEvent.getBearing() instead.
getBearingDegrees() - Method in class robocode.HitWallEvent
Deprecated. Use HitWallEvent.getBearing() instead.
getBearingDegrees() - Method in class robocode.ScannedShipEvent
 
getBearingFront() - Method in class robocode.ScannedShipEvent
Returns the bearing to the ship you scanned, measured from the front weapon; relative to your ship's front weapon zero (absolute north!)
getBearingFrontCanon() - Method in class robocode.ScannedProjectileEvent
Deprecated. Get the bearing from the front canon to the projectile.
getBearingFrontRadians() - Method in class robocode.ScannedShipEvent
Returns the bearing to the robot you scanned, measured from the front weapon; relative to your robot's front weapon zero (absolute north!)
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)
getBearingRadians() - Method in class robocode.ScannedShipEvent
 
getBestAngle(double) - Method in class robocode.naval.BlindSpot
Deprecated. 
getBlastRadius(double) - Static method in class robocode.naval.NavalRules
Experimental: Blastradius Mine blast radius = mine_Radius + blastRadius
getBlindSpotWeapon(int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Returns the BlindSpot of the specified WeaponComponent
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.ITransformablePeer
Returns the direction that the robot's body is facing, in radians.
getBodyHeading() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the direction that the robot's body is facing, in radians.
getBodyHeadingDegrees() - Method in interface robocode.naval.interfaces.IShip
Returns the heading of the Ship in Degrees.
getBodyHeadingDegrees() - Method in interface robocode.robotinterfaces.IShip
Returns the heading of the Ship in Degrees.
getBodyHeadingDegrees() - Method in class robocode.Ship
Returns the heading of the Ship in Degrees.
getBodyHeadingRadians() - Method in interface robocode.naval.interfaces.IShip
Returns the heading of the Ship in Radians.
getBodyHeadingRadians() - Method in interface robocode.robotinterfaces.IShip
Returns the heading of the Ship in Radians.
getBodyHeadingRadians() - Method in class robocode.Ship
Returns the heading of the Ship in Radians.
getBodyTurnRemaining() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Returns the angle remaining in the robot's turn, in radians.
getBodyTurnRemainingDegrees() - Method in interface robocode.naval.interfaces.IShip
Deprecated to avoid confusion Returns the angle remaining in the robots's turn, in degrees.
getBodyTurnRemainingDegrees() - Method in interface robocode.robotinterfaces.IShip
Deprecated to avoid confusion Returns the angle remaining in the robots's turn, in degrees.
getBodyTurnRemainingDegrees() - Method in class robocode.Ship
Deprecated to avoid confusion Returns the angle remaining in the robots's turn, in degrees.
getBodyTurnRemainingRadians() - Method in interface robocode.naval.interfaces.IShip
Returns the angle remaining in the robot's turn, in radians.
getBodyTurnRemainingRadians() - Method in interface robocode.robotinterfaces.IShip
Returns the angle remaining in the robot's turn, in radians.
getBodyTurnRemainingRadians() - Method in class robocode.Ship
Returns the angle remaining in the robot's turn, in radians.
getBoundingBox() - Method in interface robocode.robotinterfaces.ITransformable
Get the bounding box of the robot.
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.
getBulletColor() - Method in class robocode.naval.WeaponComponent
 
getBulletDamage() - Method in class robocode.BattleResults
Returns the bullet damage score of this robot in the battle.
getBulletDamage(double) - Static method in class robocode.naval.NavalRules
This value is reduced, since Ships are easier to hit (I mean, bigger hitbox + 2 weapons) Returns the amount of damage of a bullet given a specific bullet power.
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.naval.NavalRules
Returns the amount of bonus given when a Ship's bullet hits an opponent Ship given a specific bullet power.
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.
getBulletHitBulletEvents() - Method in class robocode.Ship
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.
getBulletHitEvents() - Method in class robocode.Ship
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.
getBulletMissedEvents() - Method in class robocode.Ship
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.naval.NavalRules
Returns the speed of a bullet given a specific bullet power measured in pixels/turn.
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.
getCollisionPoints(ITransformable, ITransformable) - Static method in class robocode.util.Collision
Returns a List with all the points of collision.
getColor() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the color of the bullet.
getColor() - Method in interface robocode.control.snapshot.IComponentSnapshot
Get the color of the component.
getColor() - Method in interface robocode.control.snapshot.IMineSnapshot
Returns the color of the mine.
getColor() - Method in class robocode.naval.ComponentBase
Get the color of the component.
getColor(int) - Method in class robocode.naval.ComponentManager
Get the color of the component at the specified index.
getColor() - Method in interface robocode.naval.interfaces.IComponent
Get the color of the component.
getColoredGunRenderImage(Integer) - Method in interface robocode.naval.interfaces.IRenderImages
Get the image of the gun when the given color has been applied.
getColoredGunRenderNavalImage(Integer) - Method in interface robocode.naval.interfaces.IRenderImages
 
getColoredMineComponentRenderNavalImage(Integer) - Method in interface robocode.naval.interfaces.IRenderImages
Get the image of the mineComponent when the given color has been applied.
getColoredMineRenderNavalImage(Integer) - Method in interface robocode.naval.interfaces.IRenderImages
 
getColoredRadarRenderImage(Integer) - Method in interface robocode.naval.interfaces.IRenderImages
Get the image of the radar when the given color has been applied.
getColoredRadarRenderNavalImage(Integer) - Method in interface robocode.naval.interfaces.IRenderImages
 
getComponent(int) - Method in class robocode.naval.ComponentManager
Get the component at the specified index.
getComponent(Class<T>) - Method in class robocode.naval.ComponentManager
Get the first component that matches the given class.
getComponent(int) - Method in interface robocode.naval.interfaces.IComponents
Get the component at the specified index.
getComponent(Class<T>) - Method in interface robocode.naval.interfaces.IComponents
Get the first component that matches the given class.
getComponent(int) - Method in interface robocode.robotinterfaces.IComponents
Get the component at the specified index.
getComponent(Class<T>) - Method in interface robocode.robotinterfaces.IComponents
Get the first component that matches the given class.
getComponentArrayList() - Method in class robocode.naval.ComponentManager
 
getComponentHeadingDegrees(int) - Method in interface robocode.naval.interfaces.IShip
Returns the absolute heading of the component in degrees.
getComponentHeadingDegrees(int) - Method in interface robocode.robotinterfaces.IShip
Returns the absolute heading of the component in degrees.
getComponentHeadingDegrees(int) - Method in class robocode.Ship
Returns the absolute heading of the component in degrees.
getComponentHeadingRadians(int) - Method in interface robocode.naval.interfaces.IShip
Returns the absolute heading of the component in radians.
getComponentHeadingRadians(int) - Method in interface robocode.robotinterfaces.IShip
Returns the absolute heading of the component in radians.
getComponentHeadingRadians(int) - Method in class robocode.Ship
Returns the absolute heading of the component in radians.
getComponents() - Method in interface robocode.control.snapshot.IShipSnapshot
 
getComponents(Class<T>) - Method in class robocode.naval.ComponentManager
Get an array of components that match the given class.
getComponents(Class<T>) - Method in interface robocode.naval.interfaces.IComponents
Get an array of components that match the given class.
getComponents() - Method in interface robocode.naval.interfaces.IManageableComponents
Get the component manager of the robot.
getComponents(Class<T>) - Method in interface robocode.robotinterfaces.IComponents
Get an array of components that match the given class.
getComponents() - Method in class robocode.ShipStatus
Returns the Components of the Ship.
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.
getCopyOfBlindSpot() - Method in class robocode.naval.WeaponComponent
 
getCopyOfBlindSpotBackCannon() - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Returns a copy of the BlindSpot that the back cannon has.
getCopyOfBlindSpotBackCannon() - Method in class robocode.Ship
Returns a copy of the BlindSpot that the back cannon has.
getCopyOfBlindSpotFrontCannon() - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Returns a copy of the BlindSpot that the back cannon has.
getCopyOfBlindSpotFrontCannon() - Method in class robocode.Ship
Returns a copy of the BlindSpot that the back cannon has.
getCrossZero() - Method in class robocode.naval.BlindSpot
This function is mostly used internally to draw the BlindSpots.
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.
getDataDirectory() - Method in class robocode.Ship
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.
getDataFile(String) - Method in class robocode.Ship
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.
getDataQuotaAvailable() - Method in class robocode.Ship
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.ScannedProjectileEvent
Deprecated. Get the distance between the projectile and the vehicle.
getDistance() - Method in class robocode.ScannedRobotEvent
Returns the distance to the robot (your center to his center).
getDistance() - Method in class robocode.ScannedShipEvent
Returns the distance to the other ship's origin.
getDistanceRemaining() - Method in class robocode.AdvancedRobot
Returns the distance remaining in the robot's current move measured in pixels.
getDistanceRemaining() - Method in interface robocode.naval.interfaces.IShip
Returns the distance remaining in the robot's current move measured in pixels.
getDistanceRemaining() - Method in interface robocode.robotinterfaces.IShip
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.
getDistanceRemaining() - Method in class robocode.Ship
Returns the distance remaining in the robot's current move measured in pixels.
getEnd() - Method in class robocode.naval.BlindSpot
Returns the end of the BlindSpot in RADIANS
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.MineHitEvent
Returns the remaining energy of the ship your mine has hit (after the damage done by your mine).
getEnergy() - Method in interface robocode.naval.interfaces.IShip
Returns the robot's current energy.
getEnergy() - Method in class robocode.Robot
Returns the robot's current energy.
getEnergy() - Method in interface robocode.robotinterfaces.IShip
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.ScannedProjectileEvent
Deprecated. Get the amount of energy the projectile has been fired with.
getEnergy() - Method in class robocode.ScannedRobotEvent
Returns the energy of the robot.
getEnergy() - Method in class robocode.ScannedShipEvent
Returns the energy of the ship.
getEnergy() - Method in class robocode.Ship
Returns the robot's current energy.
getError() - Method in class robocode.control.events.BattleErrorEvent
Returns the error message.
getEventPriority(String) - Method in class robocode.AdvancedRobot
Returns the current priority of a class of events.
getEventPriority(String) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns the current priority of a class of events.
getEventPriority(String) - Method in class robocode.Ship
Returns the current priority of a class of events.
getExplosionImageIndex() - Method in interface robocode.control.snapshot.IBulletSnapshot
Returns the explosion image index, which is different depending on the type of explosion.
getExplosionImageIndex() - Method in interface robocode.control.snapshot.IMineSnapshot
Returns the explosion image index, which is different depending on the type of explosion.
getExtent(double, double) - Method in class robocode.naval.BlindSpot
Get the extent between two different angles.
getFarLeft() - Method in class robocode.naval.BlindSpot
Returns the far Left point of the BlindSpot.
getFarRight() - Method in class robocode.naval.BlindSpot
Returns the far Right point of the BlindSpot.
getFireAngle(ITransformable) - Method in class robocode.naval.WeaponComponent
Get the angle towards which the bullet gets fired.
getFirePower() - Method in class robocode.naval.WeaponComponent
Get the fire power of the weapon.
getFirePower(int) - Method in class robocode.Ship
Returns the FirePower of the specified component.
getFirePowerComponent(int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Returns the firepower for the specified component Only works for WeaponComponents
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.
getFrame() - Method in interface robocode.control.snapshot.IMineSnapshot
Returns the current frame number to display, i.e. when the mine explodes.
getFrontCannonAtBlindSpot() - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Returns true when the blindSpot has been reached for the backCannon
getFrontCannonAtBlindSpot() - Method in class robocode.Ship
Returns true when the blindSpot has been reached for the backCannon
getFrontCannonHeadingDegrees() - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Retrieve the angle the front cannon is heading in degrees.
getFrontCannonHeadingDegrees() - Method in class robocode.Ship
Retrieve the angle the front cannon is heading in degrees.
getFrontCannonHeadingRadians() - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Retrieve the angle the front cannon is heading in radians.
getFrontCannonHeadingRadians() - Method in class robocode.Ship
Retrieve the angle the front cannon is heading in radians.
getFrontCannonTurnRemainingDegrees() - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Returns the amount the Front Cannon still has to turn in degrees.
getFrontCannonTurnRemainingDegrees() - Method in class robocode.Ship
Returns the amount the Front Cannon still has to turn in degrees.
getFrontCannonTurnRemainingRadians() - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Returns the amount the Front Cannon still has to turn in radians.
getFrontCannonTurnRemainingRadians() - Method in class robocode.Ship
Returns the amount the Front Cannon still has to turn in radians.
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.IComponentSnapshot
 
getGunHeat() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the gun heat of the robot.
getGunHeat() - Method in class robocode.naval.ComponentBase
 
getGunHeat() - Method in interface robocode.naval.interfaces.IComponent
 
getGunHeat(double) - Static method in class robocode.naval.NavalRules
Returns the heat produced by firing the gun given a specific bullet power.
getGunHeat() - Method in class robocode.naval.WeaponComponent
Get the gun heat.
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.
getGunHeatComponent(int) - Method in interface robocode.naval.interfaces.IShip
Returns the gunHeat of the given component.
getGunHeatComponent(int) - Method in interface robocode.robotinterfaces.IShip
Returns the gunHeat of the given component.
getGunHeatComponent(int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Returns the gunheat of the specified component Only works for WeaponComponents
getGunHeatComponent(int) - Method in class robocode.Ship
Returns the gunHeat of the given component.
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)
getHeading() - Method in class robocode.ScannedShipEvent
Returns the heading of the ship, in degrees. (0 <= getHeading() < 360)
getHeadingDegrees() - Method in class robocode._AdvancedRobot
Deprecated. Use getHeading() instead.
getHeadingDegrees() - Method in class robocode.HitByBulletEvent
Deprecated. Use HitByBulletEvent.getHeading() instead.
getHeadingRadians() - Method in class robocode._AdvancedRadiansRobot
 
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)
getHeadingRadians() - Method in class robocode.ScannedShipEvent
Returns the heading of the ship, in radians. (0 <= getHeading() < TWO_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
Returns true if the enemy names are hidden, i.e. anonymous; false otherwise.
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.
getHitByBulletEvents() - Method in class robocode.Ship
Returns a vector containing all HitByBulletEvents currently in the robot's queue.
getHitMine() - Method in class robocode.MineHitMineEvent
Returns the mine that was hit by your mine.
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.
getHitRobotEvents() - Method in class robocode.Ship
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.
getHitWallEvents() - Method in class robocode.Ship
Returns a vector containing all HitWallEvents currently in the robot's queue.
getImage(IRenderImages) - Method in interface robocode.control.snapshot.IComponentSnapshot
Get the image that the component uses.
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.
getIndexedResults() - Method in class robocode.control.events.NavalBattleCompletedEvent
Returns the battle results that can be used to determine the score for the individual ship based on the ship 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.
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.
getLastAngle() - Method in interface robocode.control.snapshot.IComponentSnapshot
 
getLastAngle() - Method in class robocode.naval.ComponentBase
 
getLastAngle() - Method in interface robocode.naval.interfaces.IComponent
 
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. Use BulletHitEvent.getEnergy() instead.
getLife() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getEnergy() instead.
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.
getMine() - Method in class robocode.HitByMineEvent
Returns the mine that hit your ship.
getMine() - Method in class robocode.MineHitEvent
Returns the mine of yours that hit the ship.
getMine() - Method in class robocode.MineHitMineEvent
Returns your mine that hit another mine.
getMineDamage(double) - Static method in class robocode.naval.NavalRules
Returns the amount of damage of a mine given a specific mine power.
getMineDamage() - Method in class robocode.NavalBattleResults
 
getMineDamageBonus() - Method in class robocode.NavalBattleResults
 
getMineHitBonus(double) - Static method in class robocode.naval.NavalRules
Returns the amount of bonus given when a robot's mine hits an opponent Ship given a specific mine power.
getMineId() - Method in interface robocode.control.snapshot.IMineSnapshot
Returns the ID of the mine used for identifying the mine in a collection of mines.
getMineRecharge() - Method in class robocode.naval.MineComponent
Basically the same as coolDown for weapons.
getMineRecharge(double) - Static method in class robocode.naval.NavalRules
 
getMines() - Method in interface robocode.control.snapshot.ITurnSnapshot
 
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.HitByMineEvent
Returns the name of the ship that placed the mine.
getName() - Method in class robocode.HitRobotEvent
Returns the name of the robot you hit.
getName() - Method in class robocode.Mine
Returns the name of the ship that placed this mine.
getName() - Method in class robocode.MineHitEvent
Returns the name of the ship your mine 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.
getName() - Method in class robocode.ScannedShipEvent
Returns the name of the ship.
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.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.
getObject() - Method in class robocode.naval.ComponentBase.HiddenComponentHelper
Get an empty object to work with.
getOnlyAngle(double, double) - Method in class robocode.naval.BlindSpot
Deprecated. 
getOrigin(ITransformable) - Method in class robocode.naval.ComponentBase
Get the exact location of the component.
getOrigin(ITransformable) - Method in interface robocode.naval.interfaces.IComponent
Get the exact location of the component.
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.
getOthers() - Method in class robocode.Ship
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
 
getOwnerIndex() - Method in interface robocode.control.snapshot.IMineSnapshot
 
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.
getPaintEventListener() - Method in class robocode.Ship
 
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.
getParallax(ITransformable, IComponent, double, double) - Static method in class robocode.util.Coordinates
Get the parallax (angle) between the component and the other coordinates.
getPivot() - Method in interface robocode.control.snapshot.IComponentSnapshot
Get the pivot point of the component as a Point2D object.
getPivot() - Method in class robocode.naval.ComponentBase
Get the pivot point of the component as a Point2D object.
getPivot() - Method in interface robocode.naval.interfaces.IComponent
Get the pivot point of the component as a Point2D object.
getPivot(ITransformable, double) - Static method in class robocode.util.Coordinates
Coordinates.getPivot(ITransformable, double, double)
getPivot(ITransformable, double, double) - Static method in class robocode.util.Coordinates
Get the transformed pivot point of an object on the ship.
getPivotTransform(ITransformable, double, double) - Static method in class robocode.util.Coordinates
Coordinates.getPivotTransform(ITransformable, double, double, double)
getPivotTransform(ITransformable, double, double, double) - Static method in class robocode.util.Coordinates
Get the AffineTransform for the specified coordinates on the peer.
getPivotTransform(double, double, double, double, double, double) - Static method in class robocode.util.Coordinates
Get the AffineTransform for the given values.
getPolygon(Rectangle2D, AffineTransform) - Static method in class robocode.util.Collision
Generates a polygon that resembles the given rectangle, when the given transformation is applied.
getPolygon(Arc2D, AffineTransform) - Static method in class robocode.util.Collision
Generates a Polygon that resembles the given Arc2D, when the given AffineTransform is applied.
getPolygon(ITransformable) - Static method in class robocode.util.Collision
Get the polygon of a peer.
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 interface robocode.control.snapshot.IMineSnapshot
Returns the mine power.
getPower() - Method in class robocode.HitByBulletEvent
Returns the power of this bullet.
getPower() - Method in class robocode.HitByMineEvent
Returns the power of this mine.
getPower() - Method in class robocode.Mine
Returns the power of this mine.
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.
getRadarHeadingDegrees() - Method in interface robocode.naval.interfaces.IRadarFunctions
Retrieve the angle the radar is heading in degrees.
getRadarHeadingDegrees() - Method in class robocode.Ship
Retrieve the angle the radar is heading in degrees.
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 interface robocode.naval.interfaces.IRadarFunctions
Retrieve the angle the radar is heading in radians.
getRadarHeadingRadians() - Method in class robocode.RobotStatus
Returns the direction that the robot's radar is facing, in radians.
getRadarHeadingRadians() - Method in class robocode.Ship
Retrieve the angle the radar is heading 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.
getRadarTurnRemainingDegrees() - Method in interface robocode.naval.interfaces.IRadarFunctions
Returns the amount the Radar still has to turn in degrees.
getRadarTurnRemainingDegrees() - Method in class robocode.Ship
Returns the amount the Radar still has to 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 interface robocode.naval.interfaces.IRadarFunctions
Returns the amount the Radar still has to turn in radians.
getRadarTurnRemainingRadians() - Method in class robocode.RobotStatus
Returns the angle remaining in the radar's turn, in radians.
getRadarTurnRemainingRadians() - Method in class robocode.Ship
Returns the amount the Radar still has to 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.
getRectangle(ITransformable) - Static method in class robocode.util.Collision
Get the bounding box rectangle for the specified robot.
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 interface robocode.control.IResults
Returns the robot these results are meant for.
getRobot() - Method in class robocode.control.RobotResults
Returns the robot these results are meant for.
getRobot() - Method in class robocode.control.ShipResults
Returns the ship these results are meant for.
getRobotBearing() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getBearing() instead.
getRobotBearingDegrees() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getBearing() instead.
getRobotBearingRadians() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getBearingRadians() instead.
getRobotDeathEvents() - Method in class robocode.AdvancedRobot
Returns a vector containing all RobotDeathEvents currently in the robot's queue.
getRobotDeathEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
Returns a vector containing all RobotDeathEvents currently in the robot's queue.
getRobotDeathEvents() - Method in class robocode.Ship
Returns a vector containing all RobotDeathEvents currently in the robot's queue.
getRobotDistance() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getDistance() instead.
getRobotHeading() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getHeading() instead.
getRobotHeadingDegrees() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getHeading() instead.
getRobotHeadingRadians() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getHeadingRadians() instead.
getRobotImageName() - Method in class robocode._Robot
Deprecated. This call is not used.
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. Use BulletHitEvent.getEnergy() instead.
getRobotLife() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getEnergy() instead.
getRobotName() - Method in class robocode.BulletHitEvent
Deprecated. Use BulletHitEvent.getName() instead.
getRobotName() - Method in class robocode.HitRobotEvent
Deprecated. Use HitRobotEvent.getName() instead.
getRobotName() - Method in class robocode.RobotDeathEvent
Deprecated. Use RobotDeathEvent.getName() instead.
getRobotName() - Method in class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.getName() instead.
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.
getRobotRunnable() - Method in class robocode.Ship
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. Use ScannedRobotEvent.getVelocity() instead.
getRotateDirection(double, double) - Method in class robocode.naval.BlindSpot
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.
getScanArc() - Method in class robocode.naval.RadarComponent
 
getScanColor() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the color of the scan arc.
getScanColor() - Method in class robocode.naval.RadarComponent
 
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.
getScannedRobotEvents() - Method in class robocode.Ship
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.
getSerializeType() - Method in interface robocode.control.snapshot.IComponentSnapshot
 
getSerializeType() - Method in class robocode.naval.ComponentBase
 
getSerializeType() - Method in interface robocode.naval.interfaces.IComponent
 
getSerializeType() - Method in class robocode.naval.MineComponent
 
getSerializeType() - Method in class robocode.naval.RadarComponent
 
getSerializeType() - Method in class robocode.naval.WeaponComponent
 
getShortName() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the short name of the robot.
getSize(RbSerializer, Object) - Method in class robocode.naval.ComponentBase.HiddenComponentHelper
 
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.
getSortedResults() - Method in class robocode.control.events.NavalBattleCompletedEvent
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!
getStart() - Method in class robocode.naval.BlindSpot
Returns the start of the BlindSpot in RADIANS
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.IMineSnapshot
Returns the mine 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.
getStatusEvents() - Method in class robocode.Ship
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 interface robocode.naval.interfaces.IShip
Returns the game time of the current round, where the time is equal to the current turn in the round.
getTime() - Method in class robocode.Robot
Returns the game time of the current round, where the time is equal to the current turn in the round.
getTime() - Method in interface robocode.robotinterfaces.IShip
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.
getTime() - Method in class robocode.Ship
Returns the game time of the current 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(double) - Static method in class robocode.naval.NavalRules
Returns the turn rate of a Ship given a specific velocity measured in degrees/turn.
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(double) - Static method in class robocode.naval.NavalRules
Returns the turn rate of a Ship given a specific velocity measured in radians/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.
getType() - Method in interface robocode.control.snapshot.IComponentSnapshot
Get the type of the component.
getType() - Method in class robocode.naval.ComponentBase
Get the type of the component.
getType() - Method in interface robocode.naval.interfaces.IComponent
Get the type of the component.
getTypeOffset() - Method in class robocode.naval.WeaponComponent
Get the angular offset in radians based upon the weapon type.
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.MineState
Returns the state as an integer value.
getValue() - Method in enum robocode.control.snapshot.RobotState
Returns the state as an integer value.
getValue(int) - Static method in enum robocode.naval.ComponentType
Get the CI value matching the given 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 interface robocode.naval.interfaces.IShip
Returns the velocity the Ship is going at in knots (pixels per second)
getVelocity() - Method in class robocode.Robot
Returns the velocity of the robot measured in pixels/turn.
getVelocity() - Method in interface robocode.robotinterfaces.IShip
Returns the velocity the Ship is going at in knots (pixels per second)
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.ScannedProjectileEvent
Deprecated. Get the velocity at which the projectile is traveling.
getVelocity() - Method in class robocode.ScannedRobotEvent
Returns the velocity of the robot.
getVelocity() - Method in class robocode.ScannedShipEvent
Returns the velocity of the ship.
getVelocity() - Method in class robocode.Ship
Returns the velocity the Ship is going at in knots (pixels per second)
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.
getVictim() - Method in class robocode.Mine
Returns the name of the ship that this mine hit, or null if the mine has not hit a ship.
getVictimIndex() - Method in interface robocode.control.snapshot.IBulletSnapshot
 
getVictimIndex() - Method in interface robocode.control.snapshot.IMineSnapshot
 
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.naval.NavalRules
Returns the amount of damage taken when Ship hits a wall with a specific velocity.
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.IMineSnapshot
Returns the X position of the mine.
getX() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the X position of the robot.
getX() - Method in class robocode.Mine
Returns the X position of the mine.
getX() - Method in interface robocode.naval.interfaces.IShip
Returns the X position of the robot. (0,0) is at the bottom left of the battlefield.
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.IShip
Returns the X position of the robot. (0,0) is at the bottom left of the battlefield.
getX() - Method in interface robocode.robotinterfaces.ITransformablePeer
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.
getX() - Method in class robocode.Ship
Returns the X position of the robot. (0,0) is at the bottom left of the battlefield.
getXBackCannon() - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Returns the current X-coordinate of your back cannon
getXBackCannon() - Method in class robocode.Ship
 
getXFrontCannon() - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Returns the current X-coordinate of your front cannon
getXFrontCannon() - Method in class robocode.Ship
 
getXMiddle() - Method in interface robocode.naval.interfaces.IShip
Returns the X coordinate of the middle of the Ship.
getXMiddle() - Method in interface robocode.robotinterfaces.IShip
Returns the X coordinate of the middle of the Ship.
getXMiddle() - Method in class robocode.Ship
Returns the X coordinate of the middle of the Ship.
getXRadar() - Method in interface robocode.naval.interfaces.IRadarFunctions
Returns the current X-coordinate of the Radar
getXRadar() - Method in class robocode.Ship
 
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.IMineSnapshot
Returns the Y position of the mine.
getY() - Method in interface robocode.control.snapshot.IRobotSnapshot
Returns the Y position of the robot.
getY() - Method in class robocode.Mine
Returns the Y position of the mine.
getY() - Method in interface robocode.naval.interfaces.IShip
Returns the Y position of the robot. (0,0) is at the bottom left of the battlefield.
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.IShip
Returns the Y position of the robot. (0,0) is at the bottom left of the battlefield.
getY() - Method in interface robocode.robotinterfaces.ITransformablePeer
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.
getY() - Method in class robocode.Ship
Returns the Y position of the robot. (0,0) is at the bottom left of the battlefield.
getYBackCannon() - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Returns the current Y-coordinate of your back cannon
getYBackCannon() - Method in class robocode.Ship
 
getYFrontCannon() - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Returns the current Y-coordinate of your front cannon
getYFrontCannon() - Method in class robocode.Ship
 
getYMiddle() - Method in interface robocode.naval.interfaces.IShip
Returns the Y coordinate of the middle of the Ship.
getYMiddle() - Method in interface robocode.robotinterfaces.IShip
Returns the Y coordinate of the middle of the Ship.
getYMiddle() - Method in class robocode.Ship
Returns the Y coordinate of the middle of the Ship.
getYRadar() - Method in interface robocode.naval.interfaces.IRadarFunctions
Returns the current Y-coordinate of the Radar
getYRadar() - Method in class robocode.Ship
 
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.naval.NavalRules
The turning rate of the gun measured in degrees, which is 8 degrees/turn.
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.naval.NavalRules
The turning rate of the gun measured in radians instead of degrees.
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

HALF_BLIND_SPOT_ANGLE - Static variable in class robocode.naval.WeaponComponent
The half and full blind arc angle for any weapon.
HALF_HEIGHT_OFFSET - Static variable in class robocode.naval.NavalRules
The width and height of a regular ship.
HALF_WIDTH_OFFSET - Static variable in class robocode.naval.NavalRules
The width and height of a regular ship.
hasBlindSpot() - Method in class robocode.naval.BlindSpot
Determines whether or not there is a blind spot set.
hashCode() - Method in class robocode.BattleResults
 
hashCode() - Method in class robocode.Bullet
 
hashCode() - Method in interface robocode.control.IResults
 
hashCode() - Method in class robocode.control.RobotResults
 
hashCode() - Method in class robocode.control.ShipResults
 
hashCode() - Method in class robocode.Mine
 
heading - Variable in class robocode.JuniorRobot
Current heading angle of this robot (in degrees).
heading - Variable in class robocode.ScannedShipEvent
 
HEIGHT - Static variable in class robocode.naval.NavalRules
The width and height of a regular ship.
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.
HitByMineEvent - Class in robocode
This event is sent to onHitByMine when you get hit by a mine (Which can be your own).
HitByMineEvent(Mine) - Constructor for class robocode.HitByMineEvent
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.
IBackCannonFunctions - Interface in robocode.naval.interfaces
 
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.
IBasicEvents4 - Interface in robocode.naval.interfaces
Third extended version of the IBasicEvents interface.
IBasicEvents4 - Interface in robocode.robotinterfaces
Third 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.
IBasicShipPeer - Interface in robocode.robotinterfaces.peer
An interface that describes all the functions in ShipPeer that are available the call from Ship.
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.
IComponent - Interface in robocode.naval.interfaces
Interface that defines methods required by components.
IComponents - Interface in robocode.naval.interfaces
An interface describing the functionalities of manageable components.
IComponents - Interface in robocode.robotinterfaces
An interface describing the functionalities of manageable components.
IComponentSnapshot - Interface in robocode.control.snapshot
 
IDebugProperty - Interface in robocode.control.snapshot
Interface of a debug property, which is a key-value pair.
IDX_CENTRAL_RADAR - Static variable in class robocode.naval.NavalRules
The indices of the different components as used by the AdvancedShip class.
IDX_MINE_PLACER - Static variable in class robocode.naval.NavalRules
The indices of the different components as used by the AdvancedShip class.
IDX_WEAPON_BACK - Static variable in class robocode.naval.NavalRules
The indices of the different components as used by the AdvancedShip class.
IDX_WEAPON_FRONT - Static variable in class robocode.naval.NavalRules
The indices of the different components as used by the AdvancedShip class.
IFrontCannonFunctions - Interface in robocode.naval.interfaces
 
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.
IManageableComponents - Interface in robocode.naval.interfaces
Describes methods to distribute components.
IMineSnapshot - Interface in robocode.control.snapshot
Interface of a mine snapshot at a specific time in a battle.
inBlindSpot(double) - Method in class robocode.naval.BlindSpot
Determines if the given angle is within the blind spot.
indexOf(T) - Method in class robocode.naval.ComponentManager
Get the index of the specified component.
indexOf(T) - Method in interface robocode.naval.interfaces.IComponents
Get the index of the specified component.
indexOf(T) - Method in interface robocode.robotinterfaces.IComponents
Get the index of the specified component.
insidePolygon(ITransformable, Line2D.Double) - Static method in class robocode.util.Collision
Determines whether the line is inside the polygon of the peer.
insidePolygon(Polygon, Polygon) - Static method in class robocode.util.Collision
 
insideScan(Arc2D, ITransformable) - Static method in class robocode.util.Collision
Determines whether or not the peer is inside the shape.
insideScan(Arc2D, double, double) - Static method in class robocode.util.Collision
Determines whether or not the projectile is inside the scan arc.
insideScanArc(ITransformable) - Method in class robocode.naval.RadarComponent
Determines whether or not the peer is inside the scan arc.
insideScanArc(Point2D) - Method in class robocode.naval.RadarComponent
Determines whether or not the projectile is inside the scan arc.
intersect(Line2D.Double, Line2D.Double) - Static method in class robocode.util.Collision
Determines whether two (straight) lines intersect with each other.
intersect(Rectangle2D, AffineTransform, Line2D.Double) - Static method in class robocode.util.Collision
Determines whether the rectangle and line intersect with each other.
intersect(Rectangle2D, AffineTransform, Rectangle2D, AffineTransform) - Static method in class robocode.util.Collision
Determines whether two rectangles intersect with each other.
intersectLine(Polygon, Line2D.Double) - Static method in class robocode.util.Collision
Determines whether the line intersects with the polygon.
intersectPolygon(Polygon, Polygon) - Static method in class robocode.util.Collision
Determines whether two polygons intersect with each other.
IPaint - Interface in robocode.naval.interfaces
Describes methods used to draw components.
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.
IRadarFunctions - Interface in robocode.naval.interfaces
 
IRenderImages - Interface in robocode.naval.interfaces
Describes methods used to get the images for several components.
IResults - Interface in robocode.control
An interface for the classes that determine the results of a robot/ship Made to avoid multiple inheritance problems.
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
 
isActive() - Method in enum robocode.control.snapshot.MineState
 
isActive() - Method in class robocode.Mine
Checks if this mine is still active on the battlefield.
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.
isAdvancedRobot() - Method in interface robocode.robotinterfaces.ITransformable
Checks if this robot is an isAdvancedRobot.
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.
isCrossingArch(double, double) - Method in class robocode.naval.BlindSpot
Deprecated. 
isDead() - Method in enum robocode.control.snapshot.RobotState
Checks if the robot is dead.
isDeterministic() - Method in class robocode.control.RandomFactory
 
isDroid() - Method in interface robocode.control.snapshot.IRobotSnapshot
Checks if this robot is a Droid.
isDroid() - Method in interface robocode.robotinterfaces.ITransformable
Checks if this robot is a Droid.
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.
isExplosion() - Method in interface robocode.control.snapshot.IMineSnapshot
Checks if the mine has become an explosion, i.e. when a robot or mine has been hit.
IShip - Interface in robocode.naval.interfaces
 
IShip - Interface in robocode.robotinterfaces
 
IShipSnapshot - Interface in robocode.control.snapshot
Interface for the ShipSnapshots.
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.
isInteractiveRobot() - Method in interface robocode.robotinterfaces.ITransformable
Checks if this robot is an InteractiveRobot.
isJuniorRobot() - Method in interface robocode.robotinterfaces.ITransformable
Checks if this robot is a JuniorRobot.
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()
isPaintRobot() - Method in interface robocode.robotinterfaces.ITransformable
Checks if this robot is an 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.
isShip() - Method in interface robocode.robotinterfaces.ITransformable
Checks if this robot is an isShip.
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.
isValidIndex(int) - Method in class robocode.naval.ComponentManager
Determines whether the given index is a valid index for this ComponentManager.
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.
ITransformable - Interface in robocode.robotinterfaces
Defines methods that are required by the AdvancedCollision class.
ITransformablePeer - Interface in robocode.robotinterfaces
 
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

lastHeading - Variable in class robocode.naval.ComponentBase
Keeping track of the heading before the current heading.
lastSurvivorBonus - Variable in class robocode.BattleResults
 

M

main(String[]) - Static method in class robocode.NavalRobocode
 
main(String[]) - Static method in class robocode.Robocode
 
MAX_BULLET_POWER - Static variable in class robocode.naval.NavalRules
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_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_COMPONENTS - Static variable in class robocode.naval.ComponentManager
The maximum amount of components that can be added to a ship.
MAX_MINE_POWER - Static variable in class robocode.naval.NavalRules
The maximum mine power.
MAX_TURN_RATE - Static variable in class robocode.naval.NavalRules
The maximum turning rate of the Ship, in degrees, which is 1 degrees/turn.
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.naval.NavalRules
The maximum turning rate of the Ship measured in radians instead of degrees.
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.naval.NavalRules
The maximum velocity of a Ship, which is 15.4 pixels/turn.
MAX_VELOCITY - Static variable in class robocode.Rules
The maximum velocity of a robot, which is 8 pixels/turn.
MessageEvent - Class in robocode
A MessageEvent is sent to onMessageReceived() when a teammate sends a message to your robot.
MessageEvent(String, Serializable) - Constructor for class robocode.MessageEvent
Called by the game to create a new MessageEvent.
MIN_BULLET_POWER - Static variable in class robocode.naval.NavalRules
The minimum bullet power, i.e the amount of energy required for firing a bullet, which is 0.1 energy points.
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.
MIN_MINE_POWER - Static variable in class robocode.naval.NavalRules
The minimum mine power.
Mine - Class in robocode
Represents a Mine that is returned when placing one with Ship.placeMine(double) and all Mine related events
Mine(double, double, double, String, String, boolean, int) - Constructor for class robocode.Mine
Called by the game to create a new Mine object
mine(double, int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Places a mine with the given power from the component with the given index.
MINE_COMPONENT_OFFSET - Static variable in class robocode.naval.NavalRules
The offsets from the Pivot point(PROW_OFFSET), for the different components.
MineComponent - Class in robocode.naval
The class that represents the component on the Ship that drops a mine.
MineComponent(double, double, ComponentType) - Constructor for class robocode.naval.MineComponent
The constructor for the MineComponent
MineComponent(Point2D, ComponentType) - Constructor for class robocode.naval.MineComponent
The constructor for the MineComponent
MineComponent() - Constructor for class robocode.naval.MineComponent
A constructor that creates a default MineComponent
MineHitEvent - Class in robocode
This event is sent to onMineHit when one of your mines has hit a Ship.
MineHitEvent(String, double, Mine) - Constructor for class robocode.MineHitEvent
Called by the game to create a new MineHitEvent.
MineHitMineEvent - Class in robocode
This event is sent to onMineHitMine when one of your mines has hit another mine.
MineHitMineEvent(Mine, Mine) - Constructor for class robocode.MineHitMineEvent
Called by the game to create a new MineHitMineEvent.
MineState - Enum in robocode.control.snapshot
 
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.
name - Variable in class robocode.ScannedShipEvent
 
NavalBattleCompletedEvent - Class in robocode.control.events
Contains the battle results returned by BattleEndedEvent.getResults() when a battle has ended.
NavalBattleCompletedEvent(BattleRules, NavalBattleResults[]) - Constructor for class robocode.control.events.NavalBattleCompletedEvent
 
NavalBattleResults - Class in robocode
Contains the Naval version of the battle results returned by BattleEndedEvent.getResults() when a battle has ended.
NavalBattleResults(String, int, double, double, double, double, double, double, double, double, double, int, int, int) - Constructor for class robocode.NavalBattleResults
Constructs this NavalBattleResults object.
NavalRobocode - Class in robocode
Naval Robocode - A programming game involving battling AI ships.
NavalRobocode() - Constructor for class robocode.NavalRobocode
 
NavalRules - Class in robocode.naval
Class that discribes the rules of Naval Robocode.
NavalTurnCompleteCondition - Class in robocode
A prebuilt condition you can use that indicates your ship has finished turning.
NavalTurnCompleteCondition(Ship) - Constructor for class robocode.NavalTurnCompleteCondition
Creates a new TurnCompleteCondition with default priority.
NavalTurnCompleteCondition(Ship, int) - Constructor for class robocode.NavalTurnCompleteCondition
Creates a new NavalTurnCompleteCondition with the specified priority.
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.
onBattleEnded(BattleEndedEvent) - Method in class robocode.Ship
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.
onBulletHit(BulletHitEvent) - Method in class robocode.Ship
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.
onBulletHitBullet(BulletHitBulletEvent) - Method in class robocode.Ship
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.
onBulletMissed(BulletMissedEvent) - Method in class robocode.Ship
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.
onCustomEvent(CustomEvent) - Method in class robocode.Ship
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.
onDeath(DeathEvent) - Method in class robocode.Ship
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.
onHitByBullet(HitByBulletEvent) - Method in class robocode.Ship
This method is called when your robot is hit by a bullet.
onHitByMine(HitByMineEvent) - Method in interface robocode.naval.interfaces.IBasicEvents4
Triggers when your Ship get hit by a Mine.
onHitByMine(HitByMineEvent) - Method in interface robocode.robotinterfaces.IBasicEvents4
Triggers when your Ship get hit by a Mine.
onHitByMine(HitByMineEvent) - Method in class robocode.Ship
Triggers when your Ship get hit by a Mine.
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.
onHitRobot(HitRobotEvent) - Method in class robocode.Ship
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.
onHitWall(HitWallEvent) - Method in class robocode.Ship
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.
onMineHit(MineHitEvent) - Method in interface robocode.naval.interfaces.IBasicEvents4
Triggers when your Mine has hit a Ship (Can be your own Ship)
onMineHit(MineHitEvent) - Method in interface robocode.robotinterfaces.IBasicEvents4
Triggers when your Mine has hit a Ship (Can be your own Ship)
onMineHit(MineHitEvent) - Method in class robocode.Ship
Triggers when your Mine has hit a Ship (Can be your own Ship)
onMineHitMine(MineHitMineEvent) - Method in interface robocode.naval.interfaces.IBasicEvents4
Triggers when your Mine has hit another Mine.
onMineHitMine(MineHitMineEvent) - Method in interface robocode.robotinterfaces.IBasicEvents4
Triggers when your Mine has hit another Mine.
onMineHitMine(MineHitMineEvent) - Method in class robocode.Ship
Triggers when your Mine has hit another Mine.
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.
onPaint(Graphics2D) - Method in class robocode.Ship
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.
onRobotDeath(RobotDeathEvent) - Method in class robocode.Ship
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.
onRoundEnded(RoundEndedEvent) - Method in class robocode.Ship
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.
onScannedRobot(ScannedRobotEvent) - Method in class robocode.Ship
Deprecated. Use onScannedShip(ScannedShipEvent event) instead.
onScannedShip(ScannedShipEvent) - Method in interface robocode.naval.interfaces.IBasicEvents4
This method is called when your robot sees another robot, i.e. when the robot's radar scan "hits" another robot.
onScannedShip(ScannedShipEvent) - Method in interface robocode.robotinterfaces.IBasicEvents4
This method is called when your robot sees another robot, i.e. when the robot's radar scan "hits" another robot.
onScannedShip(ScannedShipEvent) - Method in class robocode.Ship
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.
onSkippedTurn(SkippedTurnEvent) - Method in class robocode.Ship
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.
onStatus(StatusEvent) - Method in class robocode.Ship
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.
onWin(WinEvent) - Method in class robocode.Ship
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

paint(Graphics2D, IRenderImages, ITransformable, boolean) - Method in interface robocode.control.snapshot.IComponentSnapshot
paint(Graphics2D) - Method in interface robocode.naval.interfaces.IPaint
Paints an object.
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.
placeMine(double) - Method in class robocode.Ship
 
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.
PROW_OFFSET - Static variable in class robocode.naval.NavalRules
The Pivot Point is this much pixels from the center of the ship into the prow.
purple - Static variable in class robocode.JuniorRobot
The color purple (0x800080)

R

RADAR_EXTENT_DEGREES - Static variable in class robocode.naval.NavalRules
 
RADAR_EXTENT_RADIANS - Static variable in class robocode.naval.NavalRules
 
RADAR_SCAN_RADIUS - Static variable in class robocode.naval.NavalRules
The radar scan radius, which is 1200 pixels.
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.naval.NavalRules
The turning rate of the radar measured in degrees, which is 15 degrees/turn.
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.naval.NavalRules
The turning rate of the radar measured in radians instead of degrees.
RADAR_TURN_RATE_RADIANS - Static variable in class robocode.Rules
The turning rate of the radar measured in radians instead of degrees.
RadarComponent - Class in robocode.naval
A class that resembles a radar component for on a ship.
RadarComponent(double, double) - Constructor for class robocode.naval.RadarComponent
Creates a new radar component for on the robot.
RadarComponent(double, double, ComponentType) - Constructor for class robocode.naval.RadarComponent
Creates a new radar component for on the robot.
RadarComponent(Point2D, ComponentType) - Constructor for class robocode.naval.RadarComponent
Creates a new radar component for on the robot.
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
 
rechargeMine(double) - Method in class robocode.naval.MineComponent
Recharges your MineComponent.
rectangleToPolygon(Rectangle2D) - Static method in class robocode.util.Collision
 
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.
removeComponent(int) - Method in class robocode.naval.ComponentManager
Remove the component at the specified index.
removeComponent(T) - Method in class robocode.naval.ComponentManager
Remove the specified component.
removeComponent(int) - Method in interface robocode.naval.interfaces.IComponents
Remove the component at the specified index.
removeComponent(T) - Method in interface robocode.naval.interfaces.IComponents
Remove the specified component.
removeComponent(int) - Method in interface robocode.robotinterfaces.IComponents
Remove the component at the specified index.
removeComponent(T) - Method in interface robocode.robotinterfaces.IComponents
Remove the specified component.
removeComponents(Class<T>) - Method in class robocode.naval.ComponentManager
Remove the components that match the specified class.
removeComponents(Class<T>) - Method in interface robocode.naval.interfaces.IComponents
Remove the components that match the specified class.
removeComponents(Class<T>) - Method in interface robocode.robotinterfaces.IComponents
Remove the components that match the specified class.
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).
removeCustomEvent(Condition) - Method in class robocode.Ship
Removes a custom event that was previously added by calling Ship.addCustomEvent(Condition).
render(Graphics2D, ITransformable, boolean) - Method in interface robocode.control.snapshot.IComponentSnapshot
Do the component specific drawing in here.
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.
results - Variable in class robocode.control.events.BattleCompletedEvent
 
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.
resume() - Method in class robocode.Ship
Immediately resumes the movement you stopped by Ship.stop(), 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.naval - package robocode.naval
 
robocode.naval.interfaces - package robocode.naval.interfaces
 
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.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.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
Constructs a new RobocodeFileOutputStream.
RobocodeFileOutputStream(String) - Constructor for class robocode.RobocodeFileOutputStream
Constructs a new RobocodeFileOutputStream.
RobocodeFileOutputStream(String, boolean) - Constructor for class robocode.RobocodeFileOutputStream
Constructs a new RobocodeFileOutputStream.
RobocodeFileWriter - Class 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 given when a robot moving forward hits an opponent robot (ramming), which is 1.2 energy points.
ROBOT_HIT_DAMAGE - Static variable in class robocode.Rules
The amount of damage taken when a robot hits or is hit by another robot, which is 0.6 energy points.
RobotDeathEvent - Class in robocode
This event is sent to onRobotDeath() when another robot (not your robot) dies.
RobotDeathEvent(String) - Constructor for class robocode.RobotDeathEvent
Called by the game to create a new RobotDeathEvent.
RobotResults - Class in robocode.control
Contains 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.
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().
RobotStatus(double, double, double, double, double, double, double, double, double, double, double, double, int, int, int, int, long) - Constructor for class robocode.RobotStatus
 
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).
rotate(int, double) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Rotates the component by the specified angle in degrees.
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) - 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() - Method in class robocode.JuniorRobot
The main method in every robot.
run() - Method in class robocode.Robot
The main method in every robot.
run() - Method in class robocode.Ship
This is the method you have to override to create your own ship.
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) - 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.

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 interface robocode.naval.interfaces.IShip
 
scan() - Method in class robocode.Robot
Scans for other robots.
scan() - Method in interface robocode.robotinterfaces.IShip
 
scan() - Method in class robocode.Ship
 
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).
ScannedProjectileEvent - Class in robocode
Deprecated. 
ScannedProjectileEvent(double, double, double, double, double) - Constructor for class robocode.ScannedProjectileEvent
Deprecated. Creates a new scanned projectile event.
ScannedRobotEvent - Class in robocode
A ScannedRobotEvent is sent to onScannedRobot() when you scan a robot.
ScannedRobotEvent() - Constructor for class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.ScannedRobotEvent(String, double, double, double, double, double, boolean) instead.
ScannedRobotEvent(String, double, double, double, double, double) - Constructor for class robocode.ScannedRobotEvent
Deprecated. Use ScannedRobotEvent.ScannedRobotEvent(String, double, double, double, double, double, boolean) instead.
ScannedRobotEvent(String, double, double, double, double, double, boolean) - Constructor for class robocode.ScannedRobotEvent
Called by the game to create a new ScannedRobotEvent.
ScannedShipEvent - Class in robocode
Extension on ScannedRobotEvent
ScannedShipEvent(String, double, double, double, double, double, double, double) - Constructor for class robocode.ScannedShipEvent
Called by the game to create a new ScannedShipEvent.
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.
serialize(RbSerializer, ByteBuffer, Object) - Method in class robocode.naval.ComponentBase.HiddenComponentHelper
Serialize the base component and request the sub-class to serialize itself too.
serializeSub(RbSerializer, ByteBuffer, Object) - Method in class robocode.naval.ComponentBase.HiddenComponentHelper
 
serialVersionUID - Static variable in class robocode.BattleResults
 
setAdjustComponentForShipTurn(int, boolean) - Method in interface robocode.naval.interfaces.IShip
Sets whether the component moves dependently from the Ship or not.
setAdjustComponentForShipTurn(int, boolean) - Method in interface robocode.robotinterfaces.IShip
Sets whether the component moves dependently from the Ship or not.
setAdjustComponentForShipTurn(int, boolean) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Sets whether the component is independent or not
setAdjustComponentForShipTurn(int, boolean) - Method in class robocode.Ship
Sets whether the component moves dependently from the Ship or not.
setAdjustGunForBodyTurn(boolean) - Method in interface robocode.robotinterfaces.peer.IStandardRobotPeer
Sets the gun to turn independent from the robot's turn.
setAdjustGunForRobotTurn(boolean) - Method in class robocode.Robot
Sets the gun to turn independent from the robot's turn.
setAdjustRadarForBodyTurn(boolean) - Method in 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 turn independent from the gun's turn.
setAdjustRadarForRobotTurn(boolean) - Method in class robocode.Robot
Sets the radar to turn independent from the robot's turn.
setAhead(double) - Method in class robocode.AdvancedRobot
Sets the robot to move ahead (forward) by distance measured in pixels when the next execution takes place.
setAhead(double) - Method in interface robocode.naval.interfaces.IShip
Immediately moves your robot ahead (forward) by distance measured in pixels.
setAhead(double) - Method in interface robocode.robotinterfaces.IShip
Immediately moves your robot ahead (forward) by distance measured in pixels.
setAhead(double) - Method in class robocode.Ship
Immediately moves your robot ahead (forward) by distance measured in pixels.
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.
setAngle(double) - Method in class robocode.naval.ComponentBase
Set the angle of the component; in radians.
setAngle(double) - Method in interface robocode.naval.interfaces.IComponent
Set the angle of the component; in radians.
setAngle(double) - Method in class robocode.naval.WeaponComponent
Set the angle of the component; in radians.
setAngleDegrees(double) - Method in class robocode.naval.ComponentBase
Set the angle of the component; in degrees.
setAngleDegrees(double) - Method in interface robocode.naval.interfaces.IComponent
Set the angle of the component; in degrees.
setAngleDegrees(double) - Method in class robocode.naval.WeaponComponent
Set the angle of the component; in degrees.
setBack(double) - Method in class robocode.AdvancedRobot
Sets the robot to move back by distance measured in pixels when the next execution takes place.
setBack(double) - Method in interface robocode.naval.interfaces.IShip
Moves your Ship back by the given number of pixels.
setBack(double) - Method in interface robocode.robotinterfaces.IShip
Moves your Ship back by the given number of pixels.
setBack(double) - Method in class robocode.Ship
Moves your Ship back by the given number of pixels.
setBackCannonColor(Color) - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Sets the color of the back cannon.
setBackCannonColor(Color) - Method in class robocode.Ship
Sets the color of the back cannon.
setBodyColor(Color) - Method in interface robocode.naval.interfaces.IShip
Sets the color of the body of the ship
setBodyColor(Color) - Method in class robocode.Robot
Sets the color of the robot's body.
setBodyColor(Color) - Method in interface robocode.robotinterfaces.IShip
Sets the color of the body of the ship
setBodyColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
Sets the color of the robot's body.
setBodyColor(Color) - Method in class robocode.Ship
Sets the color of the body of the ship
setBulletColor(Color) - Method in class robocode.naval.WeaponComponent
 
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.
setBulletColor(int, Color) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Sets the color for the bullets shot from a WeaponComponent Only works for WeaponComponents.
setBulletColor(Color) - Method in class robocode.Ship
Sets the BulletColor for both Front and Back Cannon.
setBulletColorBack(Color) - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Sets the Bullet Color for the Back Cannon
setBulletColorBack(Color) - Method in class robocode.Ship
Sets the Bullet Color for the Back Cannon
setBulletColorFront(Color) - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Sets the Bullet Color for the Front Cannon
setBulletColorFront(Color) - Method in class robocode.Ship
Sets the Bullet Color for the Front Cannon
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.
setColor(Color) - Method in class robocode.naval.ComponentBase
Set the color of the component.
setColor(int, Color) - Method in class robocode.naval.ComponentManager
Set the color of the component at the specified index.
setColor(Color) - Method in interface robocode.naval.interfaces.IComponent
Set the color of the component.
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.
setComponentColor(int, Color) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Sets the color of the specified component
setCourseDegrees(double) - Method in interface robocode.naval.interfaces.IShip
Sets the course towards the specified heading.
setCourseDegrees(double) - Method in interface robocode.robotinterfaces.IShip
Sets the course towards the specified heading.
setCourseDegrees(double) - Method in class robocode.Ship
Sets the course towards the specified heading.
setCourseRadians(double) - Method in interface robocode.naval.interfaces.IShip
Sets the course towards the specified heading.
setCourseRadians(double) - Method in interface robocode.robotinterfaces.IShip
Sets the course towards the specified heading.
setCourseRadians(double) - Method in class robocode.Ship
Sets the course towards the specified heading.
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.
setEventPriority(String, int) - Method in class robocode.Ship
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.
setFireComponent(int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Same as fireComponent() This function only executes once the execute() function has been called, instead.
setFirePower(double, double) - Method in class robocode.naval.WeaponComponent
Set the fire power of the weapon.
setFirePowerComponent(int, double) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Sets the firepower for the specified component Only works for WeaponComponents
setFrontCannonColor(Color) - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Sets the color of the front cannon.
setFrontCannonColor(Color) - Method in class robocode.Ship
Sets the color of the front cannon.
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.
setInterruptible(boolean) - Method in class robocode.Ship
Call this during an event handler to allow new events of the same priority to restart the event handler.
setLastAngle(double) - Method in class robocode.naval.ComponentBase
Sets the lastHeading of the component in Radians.
setLastAngle(double) - Method in interface robocode.naval.interfaces.IComponent
Sets the lastHeading of the component in Radians.
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.
setMaxKnots(double) - Method in interface robocode.naval.interfaces.IShip
Sets the maximum amount of knots you want to travel per turn.
setMaxKnots(double) - Method in interface robocode.robotinterfaces.IShip
Sets the maximum amount of knots you want to travel per turn.
setMaxKnots(double) - Method in class robocode.Ship
Sets the maximum amount of knots you want to travel per turn.
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).
setMine(double, int) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Places a mine with the given power from the component with the given index.
setMineComponentColor(Color) - Method in class robocode.Ship
 
setMineRecharge(double) - Method in class robocode.naval.MineComponent
Sets the recharge heat for the MineComponent.
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 interface robocode.naval.interfaces.IRadarFunctions
Sets the color of the radar.
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.
setRadarColor(Color) - Method in class robocode.Ship
Sets the color of the 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.
setResume() - Method in class robocode.Ship
Sets the robot to resume the movement stopped by stop() or Ship.setStop(), if any.
setRobotImageName(String) - Method in class robocode._Robot
Deprecated. This call is not used.
setScanColor(Color) - Method in interface robocode.naval.interfaces.IRadarFunctions
Sets the Color of your scan
setScanColor(Color) - Method in class robocode.naval.RadarComponent
 
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.
setScanColor(int, Color) - Method in interface robocode.robotinterfaces.peer.IBasicShipPeer
Sets the color of the Scan.
setScanColor(Color) - Method in class robocode.Ship
Sets the Color of your scan
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.
setStop() - Method in class robocode.Ship
This call is identical to stop(), but returns immediately, and will not execute until you call Ship.execute() or take an action that executes.
setStop(boolean) - Method in class robocode.Ship
This call is identical to stop(boolean), but returns immediately, and will not execute until you call Ship.execute() or take an action that executes.
setTime(long) - Method in class robocode.Event
Changes the time when this event occurred.
setTransform(AffineTransform) - Method in interface robocode.naval.interfaces.IPaint
Sets a transformation for the object to paint.
setTurnBackCannonLeftDegrees(double) - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Turns the back cannon towards the left by the amount given in degrees.
setTurnBackCannonLeftDegrees(double) - Method in class robocode.Ship
Turns the back cannon towards the left by the amount given in degrees.
setTurnBackCannonLeftRadians(double) - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Turns the back cannon towards the left by the amount given in radians.
setTurnBackCannonLeftRadians(double) - Method in class robocode.Ship
Turns the back cannon towards the left by the amount given in radians.
setTurnBackCannonRightDegrees(double) - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Turns the back cannon towards the right by the amount given in degrees.
setTurnBackCannonRightDegrees(double) - Method in class robocode.Ship
Turns the back cannon towards the right by the amount given in degrees.
setTurnBackCannonRightRadians(double) - Method in interface robocode.naval.interfaces.IBackCannonFunctions
Turns the back cannon towards the right by the amount given in radians.
setTurnBackCannonRightRadians(double) - Method in class robocode.Ship
Turns the back cannon towards the right by the amount given in radians.
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.
setTurnFrontCannonLeftDegrees(double) - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Turns the front cannon towards the left by the amount given in degrees.
setTurnFrontCannonLeftDegrees(double) - Method in class robocode.Ship
Turns the front cannon towards the left by the amount given in degrees.
setTurnFrontCannonLeftRadians(double) - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Turns the front cannon towards the left by the amount given in radians.
setTurnFrontCannonLeftRadians(double) - Method in class robocode.Ship
Turns the front cannon towards the left by the amount given in radians.
setTurnFrontCannonRightDegrees(double) - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Turns the front cannon towards the right by the amount given in degrees.
setTurnFrontCannonRightDegrees(double) - Method in class robocode.Ship
Turns the front cannon towards the right by the amount given in degrees.
setTurnFrontCannonRightRadians(double) - Method in interface robocode.naval.interfaces.IFrontCannonFunctions
Turns the front cannon towards the right by the amount given in radians.
setTurnFrontCannonRightRadians(double) - Method in class robocode.Ship
Turns the front cannon towards the right by the amount given in radians.
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.
setTurnLeftDegrees(double) - Method in interface robocode.naval.interfaces.IShip
Attempts to turn your Ship by the given angle in degrees towards the left.
setTurnLeftDegrees(double) - Method in interface robocode.robotinterfaces.IShip
Attempts to turn your Ship by the given angle in degrees towards the left.
setTurnLeftDegrees(double) - Method in class robocode.Ship
Attempts to turn your Ship by the given angle in degrees towards the left.
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.
setTurnLeftRadians(double) - Method in interface robocode.naval.interfaces.IShip
Attempts to turn your Ship by the given angle in radians towards the left.
setTurnLeftRadians(double) - Method in interface robocode.robotinterfaces.IShip
Attempts to turn your Ship by the given angle in radians towards the left.
setTurnLeftRadians(double) - Method in class robocode.Ship
Attempts to turn your Ship by the given angle in radians towards the left.
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. Use setTurnRadarLeft(double) instead.
setTurnRadarLeftDegrees(double) - Method in interface robocode.naval.interfaces.IRadarFunctions
Set the angle the Radar needs to turn towards the left in degrees.
setTurnRadarLeftDegrees(double) - Method in class robocode.Ship
Set the angle the Radar needs to turn towards the left in degrees.
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.
setTurnRadarLeftRadians(double) - Method in interface robocode.naval.interfaces.IRadarFunctions
Set the angle the Radar needs to turn towards the Left in radians.
setTurnRadarLeftRadians(double) - Method in class robocode.Ship
Set the angle the Radar needs to turn towards the Left in radians.
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.
setTurnRadarRightDegrees(double) - Method in interface robocode.naval.interfaces.IRadarFunctions
Set the angle the Radar needs to turn towards the right in degrees.
setTurnRadarRightDegrees(double) - Method in class robocode.Ship
Set the angle the Radar needs to turn towards the right in degrees.
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.
setTurnRadarRightRadians(double) - Method in interface robocode.naval.interfaces.IRadarFunctions
Set the angle the Radar needs to turn towards the Left in radians.
setTurnRadarRightRadians(double) - Method in class robocode.Ship
Set the angle the Radar needs to turn towards the Left in radians.
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. Use setTurnRight(double) instead.
setTurnRightDegrees(double) - Method in interface robocode.naval.interfaces.IShip
Attempts to turn your Ship by the given angle in degrees towards the right.
setTurnRightDegrees(double) - Method in interface robocode.robotinterfaces.IShip
Attempts to turn your Ship by the given angle in degrees towards the right.
setTurnRightDegrees(double) - Method in class robocode.Ship
Attempts to turn your Ship by the given angle in degrees towards the right.
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.
setTurnRightRadians(double) - Method in interface robocode.naval.interfaces.IShip
Attempts to turn your Ship by the given angle in radians towards the right.
setTurnRightRadians(double) - Method in interface robocode.robotinterfaces.IShip
Attempts to turn your Ship by the given angle in radians towards the right.
setTurnRightRadians(double) - Method in class robocode.Ship
Attempts to turn your Ship by the given angle in radians towards the right.
setType(ComponentType) - Method in class robocode.naval.ComponentBase
Set the type of the component.
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.
Ship - Class in robocode
This is the improved version of the Ship which acts far more like a ship.
Ship() - Constructor for class robocode.Ship
 
SHIP_HIT_BONUS - Static variable in class robocode.naval.NavalRules
The amount of bonus given when a robot moving forward hits an opponent robot (ramming), which is 1.2 energy points.
SHIP_HIT_DAMAGE - Static variable in class robocode.naval.NavalRules
The amount of damage taken when a robot hits or is hit by another robot, which is 0.6 energy points.
ShipResults - Class in robocode.control
Handles the results for a specific Ship
ShipResults(RobotSpecification, String, int, double, double, double, double, double, double, double, double, double, int, int, int) - Constructor for class robocode.control.ShipResults
Constructs a new ShipResults.
ShipResults(RobotSpecification, NavalBattleResults) - Constructor for class robocode.control.ShipResults
Constructs new ShipResults based on a RobotSpecification and NavalBattleResults.
ShipStatus - Class in robocode
Contains the status of a robot for a specific time/turn returned by StatusEvent.getStatus().
ShipStatus(double, double, double, double, double, double, double, int, int, int, long, ComponentManager) - Constructor for class robocode.ShipStatus
 
size() - Method in class robocode.naval.ComponentManager
sizeOf(RbSerializer, Object) - Method in class robocode.naval.ComponentBase.HiddenComponentHelper
Add the size of the base component and request the sub-class to add his additional size too.
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().
stop() - Method in class robocode.Ship
Immediately stops all movement, and saves it for a call to Ship.resume().
stop(boolean) - Method in class robocode.Ship
Immediately stops all movement, and saves it for a call to Ship.resume().
survival - Variable in class robocode.BattleResults
 

T

teamLeaderName - Variable in class robocode.BattleResults
 
TeamRobot - Class in robocode
An advanced type of robot that supports sending messages between team mates in a robot team.
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.NavalTurnCompleteCondition
Tests if the ship has finished turning.
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.
thirds - Variable in class robocode.BattleResults
 
toInt() - Method in enum robocode.naval.ComponentType
Get the integer value of the component type.
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.MineState
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.naval.ComponentBase
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.
turnRadians(double) - Method in class robocode.naval.ComponentBase
 
turnRadians(double) - Method in interface robocode.naval.interfaces.IComponent
Attempts to turn the component.
turnRadians(double) - Method in class robocode.naval.MineComponent
Deprecated. 
turnRadians(double) - Method in class robocode.naval.RadarComponent
Attempts to turn the component.
turnRadians(double) - Method in class robocode.naval.WeaponComponent
 
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).
type - Variable in class robocode.naval.ComponentBase
The type of this component.

U

update(ComponentBase) - Method in class robocode.naval.ComponentBase.HiddenComponentHelper
 
updateGunHeat(double) - Method in class robocode.naval.WeaponComponent
 
updateScanArc(ITransformable) - Method in class robocode.naval.RadarComponent
Update the scan arc of the radar.
updateSub(ComponentBase) - Method in class robocode.naval.ComponentBase.HiddenComponentHelper
 
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.MineState
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.
valueOf(String) - Static method in enum robocode.naval.ComponentType
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.MineState
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.
values() - Static method in enum robocode.naval.ComponentType
Returns an array containing the constants of this enum type, in the order they are declared.
velocity - Variable in class robocode.ScannedShipEvent
 

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.
waitFor(Condition) - Method in class robocode.Ship
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.
WeaponComponent - Class in robocode.naval
A class that resembles a weapon component for on a ship.
WeaponComponent(double, double, ComponentType) - Constructor for class robocode.naval.WeaponComponent
Creates a new weapon component for the ship.
WeaponComponent(double, double, ComponentType, double, double) - Constructor for class robocode.naval.WeaponComponent
Creates a new weapon component for the ship.
WeaponComponent(Point2D, ComponentType, double, double) - Constructor for class robocode.naval.WeaponComponent
Creates a new weapon component for the ship.
white - Static variable in class robocode.JuniorRobot
The color white (0xFFFFFF)
WIDTH - Static variable in class robocode.naval.NavalRules
The width and height of a regular ship.
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 _

Copyright © 2015 Robocode. All Rights Reserved.