This method is called by the game to notify this robot about advanced
robot event.
Returns a vector containing all events currently in the robot's queue.
Returns a vector containing all events currently in the robot's queue.
Returns the name of this robot's author.
This method is called by the game to notify this robot about basic
robot event.
Returns the battlefield size for this battle.
Returns the battlefield height.
Returns the height of the current battlefield measured in pixels.
Returns the height of the current battlefield measured in pixels.
Returns the battlefield width.
Returns the width of the current battlefield measured in pixels.
Returns the width of the current battlefield measured in pixels.
Returns the rules that was used in the battle.
Returns the rules that will be used in the battle.
Returns the bearing to the bullet, relative to your robot's heading,
in degrees (-180 <32getBearing() <= 180)
If you were to turnRight(e.getBearing()), you would be facing the
direction the bullet came from.
Returns the bearing to the robot you hit, relative to your robot's
heading, in degrees (-180 <= getBearing() <32180)
Returns the bearing to the wall you hit, relative to your robot's
heading, in degrees (-180 <= getBearing() <32180)
Returns the bearing to the robot you scanned, relative to your robot's
heading, in degrees (-180 <= getBearing() <32180)
Returns the bearing to the bullet, relative to your robot's heading,
in radians (-Math.PI <32getBearingRadians() <= Math.PI)
If you were to turnRightRadians(e.getBearingRadians()), you would be
facing the direction the bullet came from.
Returns the bearing to the robot you hit, relative to your robot's
heading, in radians (-PI <= getBearingRadians() <32PI)
Returns the bearing to the wall you hit, relative to your robot's
heading, in radians (-PI <= getBearingRadians() <32PI)
Returns the bearing to the robot you scanned, relative to your robot's
heading, in radians (-PI <= getBearingRadians() <32PI)
Returns the color of the body.
Returns the direction that the robot's body is facing, in radians.
Returns the body heading in radians.
Returns the angle remaining in the robot's turn, in radians.
Returns your bullet that hit another bullet.
Returns the bullet of yours that hit the robot.
Returns the bullet that missed.
Returns the bullet that hit your robot.
Returns the bullet damage score of this robot in the battle.
Returns the amount of damage of a bullet given a specific bullet power.
Returns the bullet damage bonus of this robot in the battle.
Returns the amount of bonus given when a robot's bullet hits an opponent
robot given a specific bullet power.
Returns a vector containing all BulletHitBulletEvents currently in the
robot's queue.
Returns a vector containing all BulletHitBulletEvents currently in the
robot's queue.
Returns a vector containing all BulletHitEvents currently in the robot's
queue.
Returns a vector containing all BulletHitEvents currently in the robot's
queue.
Returns a vector containing all BulletMissedEvents currently in the
robot's queue.
Returns a vector containing all BulletMissedEvents currently in the
robot's queue.
Returns all bullets currently the battlefield.
Returns the speed of a bullet given a specific bullet power measured in
pixels/turn
This call must be made from a robot call to inform the game
that the robot made a get*
call like e.g.
Returns the full class name of this robot or team.
Returns the color of the bullet.
Returns the condition that fired, causing this event to be generated.
Returns the index of the contestant that will not be changed during a battle.
Returns the current bullet damage score.
Returns the current bullet kill bonus.
Returns the current ramming damage score.
Returns the current ramming kill bonus.
Returns the current score.
Returns the current survival bonus.
Returns the current survival score.
Returns the data quota available in your data directory, i.e.
Returns the data quota available in your data directory, i.e.
Returns a list of all debug properties.
Returns the description provided by the author of this robot.
Returns the distance to the robot (your center to his center).
Returns the distance remaining in the robot's current move measured in
pixels.
Returns the distance remaining in the robot's current move measured in
pixels.
Returns the distance remaining in the robot's current move measured in
pixels.
Returns the remaining energy of the robot your bullet has hit (after the
damage done by your bullet).
Returns the amount of energy of the robot you hit.
Returns the robot's current energy.
Returns the energy level.
Returns the robot's current energy.
Returns the robot's current energy.
Returns the energy of the robot.
Returns the error message.
Returns the current priority of a class of events.
Returns the current priority of a class of events.
Returns the index to which explosion image that must be rendered.
Returns the number of rounds this robot placed first in the battle.
Returns the frame number to display.
Returns a graphics context used for painting graphical items for the robot.
Returns a graphics context used for painting graphical items for the robot.
Returns the color of the gun.
Returns the rate at which the gun will cool down, i.e.
Returns the gun cooling rate of the robots in this battle.
Returns the rate at which the gun will cool down, i.e.
Returns the rate at which the gun will cool down, i.e.
Returns the direction that the robot's gun is facing, in radians.
Returns the gun heading in radians.
Returns the direction that the robot's gun is facing, in degrees.
Returns the direction that the robot's gun is facing, in degrees.
Returns the direction that the robot's gun is facing, in radians.
Returns the direction that the robot's gun is facing, in radians.
Returns the current heat of the gun.
Returns the current heat of the gun.
Returns the current heat of the gun.
Returns the heat produced by firing the gun given a specific bullet
power.
Returns the angle remaining in the gun's turn, in degrees.
Returns the angle remaining in the gun's turn, in radians.
Returns the angle remaining in the gun's turn, in degrees.
Returns the angle remaining in the gun's turn, in radians.
Returns the angle remaining in the gun's turn, in radians.
Returns the direction the bullet is/was heading, in degrees
(0 <= getHeading() <32360).
Returns the heading of the bullet when it hit you, in degrees
(0 <= getHeading() <32360)
Note: This is not relative to the direction you are facing.
Returns the direction that the robot's body is facing, in degrees.
Returns the direction that the robot's body is facing, in degrees.
Returns the heading of the robot, in degrees (0 <= getHeading() <32360)
Returns the direction that the robot's body is facing, in radians.
Returns the direction the bullet is/was heading, in radians
(0 <= getHeadingRadians() <322 * Math.PI).
Returns the heading of the bullet when it hit you, in radians
(0 <= getHeadingRadians() <322 * PI)
Note: This is not relative to the direction you are facing.
Returns the direction that the robot's body is facing, in radians.
Returns the heading of the robot, in radians (0 <= getHeading() <322 * PI)
Returns the height of this battlefield.
Returns the height of the robot measured in pixels.
Returns the bullet that was hit by your bullet.
Returns a vector containing all HitByBulletEvents currently in the
robot's queue.
Returns a vector containing all HitByBulletEvents currently in the
robot's queue.
Returns a vector containing all HitRobotEvents currently in the robot's
queue.
Returns a vector containing all HitRobotEvents currently in the robot's
queue.
Returns a vector containing all HitWallEvents currently in the robot's
queue.
Returns a vector containing all HitWallEvents currently in the robot's
queue.
Returns the allowed inactivity time, where the robot is not taking any action, before will begin to be zapped.
Returns the allowed inactivity time for the robots in this battle.
Returns the unsorted battle results so that robot indexes can be used.
This method is called by the game to notify this robot about interactive
events, i.e.
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).
Returns the key of the property.
Returns the last survivor score of this robot in the battle.
Returns all robots available from the local robot repository of Robocode.
Returns a selection of robots available from the local robot repository
of Robocode.
Returns the information message.
Returns the message itself.
Returns a vector containing all MessageEvents currently in the robot's
queue.
Returns a vector containing all MessageEvents currently in the robot's
queue.
Returns the name of the robot that fired this bullet.
Returns the name of the robot your bullet hit.
Returns the name of this condition.
Returns the name of the robot that fired the bullet.
Returns the name of the robot you hit.
Returns the robot's name.
Returns the name of the robot.
Returns the name of the robot.
Returns the filename of this output stream.
Returns the robot's name.
Returns the name of the robot that died.
Returns the name of this robot or team.
Returns the name of the robot.
Returns the name and version of this robot or team.
Returns the number of rounds.
Returns the number of rounds in this battle.
Returns the number of rounds in the current battle.
Returns the number of rounds in the current battle.
Returns the number of rounds in the current battle.
Returns how many opponents that are left in the current round.
Returns how many opponents that are left in the current round.
Returns how many opponents that are left in the current round.
Returns a snapshot of the output print stream for this robot.
This method is called by the game to notify this robot about painting
events.
Returns the x coordinate where to paint the bullet.
Returns the y coordinate where to paint the bullet.
Returns the power of this bullet.
Returns the power of this bullet.
Returns the bullet power.
Returns the priority of this condition.
Returns the priority of this event.
Returns the color of the radar.
Returns the direction that the robot's radar is facing, in radians.
Returns the radar heading in radians.
Returns the direction that the robot's radar is facing, in degrees.
Returns the direction that the robot's radar is facing, in degrees.
Returns the direction that the robot's radar is facing, in radians.
Returns the direction that the robot's radar is facing, in radians.
Returns the angle remaining in the radar's turn, in degrees.
Returns the angle remaining in the radar's turn, in radians.
Returns the angle remaining in the radar's turn, in degrees.
Returns the angle remaining in the radar's turn, in radians.
Returns the angle remaining in the radar's turn, in radians.
Returns the ram damage score of this robot in the battle.
Returns the ram damage bonus of this robot in the battle.
Returns random number generator.
Returns the rank of this robot in the battle results.
Returns the battle results.
Returns the version of Robocode this robot was based on.
Returns the robot these results are meant for.
Returns a vector containing all RobotDeathEvents currently in the robot's
queue.
Returns a vector containing all RobotDeathEvents currently in the robot's
queue.
This method is called by the game to invoke the
run()
method of your robot, where the program
of your robot is implemented.
Returns the specifications of the robots participating in this battle.
Returns all robots participating in the battle.
Returns the number of robots participating in the battle.
Returns the current turn.
Returns the round number that was ended.
Returns the round number.
Returns the number of the current round (0 to
getNumRounds()
- 1)
in the battle.
Returns the current round number (0 to
getNumRounds()
- 1) of
the battle.
Returns the current round number (0 to
getNumRounds()
- 1) of
the battle.
Returns the color of the scan arc.
Returns a vector containing all ScannedRobotEvents currently in the
robot's queue.
Returns a vector containing all ScannedRobotEvents currently in the
robot's queue.
Returns the total score of this robot in the battle.
Returns snapshot current score.
Returns the number of rounds this robot placed second in the battle.
Returns the name of the sending robot.
Returns the very short name of the robot.
Returns the battle results sorted on score, meaning that robot indexes cannot be used.
Do not call this method!
This method is used by the game to determine the type of the source key
event that occurred in the AWT.
Do not call this method!
This method is used by the game to determine the type of the source mouse
event that occurred in the AWT.
Returns the start snapshot of the participating robots, initial starting positions etc.
Returns the bullet state.
Returns the robot status.
Returns a vector containing all StatusEvents currently in the robot's
queue.
Returns a vector containing all StatusEvents currently in the robot's
queue.
Returns the survival score of this robot in the battle.
This method is called by the game to notify this robot about team events.
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.
Returns the names of all teammates, or null
there is no
teammates.
Returns the names of all teammates, or null
there is no
teammates.
Returns the name of the team, or name of the robot if the contestant is not a team.
Returns the number of rounds this robot placed third in the battle.
Returns the time this event occurred.
Returns the game time of the current round, where the time is equal to
the current turn in the round.
Returns the game time of the current round, where the time is equal to
the current turn in the round.
Returns the game time of the round, where the time is equal to the current turn in the round.
Returns the total bullet damage score.
Returns the total bullet kill bonus.
Returns the total number of first places.
Returns the total last survivor score.
Returns the total ramming damage score.
Returns the total ramming kill bonus.
Returns the total number of second places.
Returns the total survival score.
Returns the total number of third places.
Returns the current TPS (turns per second).
Returns the current turn.
Returns the turn rate of a robot given a specific velocity measured in
degrees/turn.
Returns the turn rate of a robot given a specific velocity measured in
radians/turn.
Returns the angle remaining in the robots's turn, in degrees.
Returns the angle remaining in the robots's turn, in degrees.
Returns the angle remaining in the robot's turn, in radians.
Returns the angle remaining in the robots's turn, in radians.
Returns the number of turns that this round reached.
Returns a snapshot of the turn that has ended.
Returns the value of the property.
Returns the velocity of this bullet.
Returns the velocity of this bullet.
Returns the velocity of the robot measured in pixels/turn.
Returns the velocity of the robot measured in pixels/turn.
Returns the velocity of the robot measured in pixels/turn.
Returns the velocity of the robot.
Returns the installed version of Robocode.
Returns the version of this robot or team.
Returns the very short name of the robot.
Returns the name of the robot that this bullet hit, or null
if
the bullet has not hit a robot.
Returns the amount of damage taken when robot hits a wall with a
specific velocity.
Returns the web page for this robot.
Returns the width of this battlefield.
Returns the width of the robot measured in pixels.
Returns the X position of the bullet.
Returns the X position of the robot.
Returns the x coordinate of the bullet.
Returns the x coordinate of the robot.
Returns the X position of the robot.
Returns the X position of the robot.
Returns the Y position of the bullet.
Returns the Y position of the robot.
Returns the y coordinate of the bullet.
Returns the y coordinate of the robot.
Returns the Y position of the robot.
Returns the Y position of the robot.
The color gray (0x808080)
The color green (0x008000)
The turning rate of the gun measured in degrees, which is
20 degrees/turn.
The turning rate of the gun measured in radians instead of degrees.
Current gun heading angle of this robot compared to its body (in degrees).
Current gun heading angle of this robot (in degrees).
Flag specifying if the gun is ready to fire, i.e.
A prebuilt condition you can use that indicates your gun has finished
turning.
Creates a new GunTurnCompleteCondition with default priority.
Creates a new GunTurnCompleteCondition with a specific priority.
Current angle to the scanned nearest other robot (in degrees).
Current angle to the scanned nearest other robot (in degrees) compared to
the body of this robot.
Current distance to the scanned nearest other robot (in pixels).
Current energy of scanned nearest other robot.
Current heading of the scanned nearest other robot (in degrees).
Called by the game to create a new ScannedRobotEvent.
Current velocity of the scanned nearest other robot.
Sends a message to one (or more) teammates.
Sends a message to one (or more) teammates.
Sets the gun to turn independent from the robot's turn.
Sets the gun to turn independent from the robot's turn.
Sets the radar to turn independent from the robot's turn.
Sets the radar to turn independent from the gun's turn.
Sets the radar to turn independent from the gun's turn.
Sets the radar to turn independent from the robot's turn.
Sets the robot to move ahead (forward) by distance measured in pixels
when the next execution takes place.
Sets all the robot's color to the same color in the same time, i.e.
Sets the robot to move back by distance measured in pixels when the next
execution takes place.
Sets the color of the robot's body.
Sets the color of the robot's body.
Sets the color of the robot's bullets.
Sets the color of the robot's bullets.
This call must be made from a robot call to inform the game
that the robot made a set*
call like e.g.
Sets the color of the robot's body, gun, and radar in the same time.
Sets the color of the robot's body, gun, radar, bullet, and scan arc in
the same time.
Sets the colors of the robot.
Sets the colors of the robot.
Sets the debug property with the specified key to the specified value.
Sets the debug property with the specified key to the specified value.
Sets the priority of a class of events.
Sets the priority of a class of events.
The system calls this method, you should not call it.
Sets the gun to fire a bullet when the next execution takes place.
Sets the gun to fire a bullet when the next execution takes place.
Sets the gun to fire a bullet when the next execution takes place.
Sets the color of the robot's gun.
Sets the color of the robot's gun.
Call this during an event handler to allow new events of the same
priority to restart the event handler.
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).
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).
Sets the maximum velocity of the robot measured in pixels/turn if the
robot should move slower than
Rules.MAX_VELOCITY
(8 pixels/turn).
Sets the maximum velocity of the robot measured in pixels/turn if the
robot should move slower than
Rules.MAX_VELOCITY
(8 pixels/turn).
Sets the robot to move forward or backward by distance measured in pixels
when the next execution takes place.
Sets the name of this condition.
Do not call this method!
This method is called by the game when setting the output stream for your
robot.
Do not call this method! Your robot will simply stop interacting with
the game.
Sets the priority of this condition.
Sets the color of the robot's radar.
Sets the color of the robot's radar.
Sets the robot to resume the movement stopped by
stop()
or
setStop()
, if any.
Sets the color of the robot's scan arc.
Sets the color of the robot's scan arc.
This call is identical to
stop()
, but returns immediately, and
will not execute until you call
execute()
or take an action that
executes.
This call is identical to
stop(boolean)
, but
returns immediately, and will not execute until you call
execute()
or take an action that executes.
This call is identical to
stop(boolean)
, but returns immediately, and will not execute until you
call
execute()
or take an action that executes.
The system calls this method, you should not call it.
Sets the robot's body to turn right or left by radians when the next
execution takes place.
Sets the robot's gun to turn right or left by radians when the next
execution takes place.
Sets the robot's gun to turn left by degrees when the next execution
takes place.
Sets the robot's gun to turn left by radians when the next execution
takes place.
Sets the robot's gun to turn right by degrees when the next execution
takes place.
Sets the robot's gun to turn right by radians when the next execution
takes place.
Sets the robot's body to turn left by degrees when the next execution
takes place.
Sets the robot's body to turn left by radians when the next execution
takes place.
Sets the robot's radar to turn right or left by radians when the next
execution takes place.
Sets the robot's radar to turn left by degrees when the next execution
takes place.
Sets the robot's radar to turn left by radians when the next execution
takes place.
Sets the robot's radar to turn right by degrees when the next execution
takes place.
Sets the robot's radar to turn right by radians when the next execution
takes place.
Sets the robot's body to turn right by degrees when the next execution
takes place.
Sets the robot's body to turn right by radians when the next execution
takes place.
Shows or hides the Robocode window.
A SkippedTurnEvent is sent to
onSkippedTurn()
when your robot is forced to skipping a turn.
Called by the game to create a new SkippedTurnEvent.
This event is sent to
onStatus()
every
turn in a battle to provide the status of the robot.
This constructor is called internally from the game in order to create
a new
RobotStatus
.
Immediately stops all movement, and saves it for a call to
resume()
.
Immediately stops all movement, and saves it for a call to
resume()
.
Immediately stops all movement, and saves it for a call to
resume()
.