- getAdvancedEventListener() - Method in class robocode.AdvancedRobot
-
Do not call this method!
This method is called by the game to notify this robot about advanced
robot event.
- getAdvancedEventListener() - Method in interface robocode.robotinterfaces.IAdvancedRobot
-
This method is called by the game to notify this robot about advanced
robot event.
- getAllEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all events currently in the robot's queue.
- getAllEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all events currently in the robot's queue.
- getAuthorName() - Method in class robocode.control.RobotSpecification
-
Returns the name of this robot's author.
- getBasicEventListener() - Method in class robocode.JuniorRobot
-
Do not call this method!
This method is called by the game to notify this robot about basic
robot event.
- getBasicEventListener() - Method in class robocode.Robot
-
This method is called by the game to notify this robot about basic
robot event.
- getBasicEventListener() - Method in interface robocode.robotinterfaces.IBasicRobot
-
This method is called by the game to notify this robot about basic
robot event.
- getBattlefield() - Method in class robocode.control.BattleSpecification
-
Returns the battlefield size for this battle.
- getBattlefieldHeight() - Method in class robocode.BattleRules
-
Returns the battlefield height.
- getBattleFieldHeight() - Method in class robocode.Robot
-
Returns the height of the current battlefield measured in pixels.
- getBattleFieldHeight() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the height of the current battlefield measured in pixels.
- getBattlefieldWidth() - Method in class robocode.BattleRules
-
Returns the battlefield width.
- getBattleFieldWidth() - Method in class robocode.Robot
-
Returns the width of the current battlefield measured in pixels.
- getBattleFieldWidth() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the width of the current battlefield measured in pixels.
- getBattleProperties() - Method in class robocode.control.BattleSpecification
-
Deprecated.
This methods is called by the game and is very likely to be
removed in a future version of Robocode.
- getBattleRules() - Method in class robocode.control.events.BattleCompletedEvent
-
Returns the rules that was 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)
If you were to turnRight(e.getBearing()), you would be facing the
direction the bullet came from.
- getBearing() - Method in class robocode.HitRobotEvent
-
Returns the bearing to the robot you hit, relative to your robot's
heading, in degrees (-180 <= getBearing() < 180)
- getBearing() - Method in class robocode.HitWallEvent
-
Returns the bearing to the wall you hit, relative to your robot's
heading, in degrees (-180 <= getBearing() < 180)
- getBearing() - Method in class robocode.ScannedRobotEvent
-
Returns the bearing to the robot you scanned, relative to your robot's
heading, in degrees (-180 <= getBearing() < 180)
- getBearingDegrees() - Method in class robocode.HitRobotEvent
-
- getBearingDegrees() - Method in class robocode.HitWallEvent
-
- 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)
If you were to turnRightRadians(e.getBearingRadians()), you would be
facing the direction the bullet came from.
- getBearingRadians() - Method in class robocode.HitRobotEvent
-
Returns the bearing to the robot you hit, relative to your robot's
heading, in radians (-PI <= getBearingRadians() < PI)
- getBearingRadians() - Method in class robocode.HitWallEvent
-
Returns the bearing to the wall you hit, relative to your robot's
heading, in radians (-PI <= getBearingRadians() < PI)
- getBearingRadians() - Method in class robocode.ScannedRobotEvent
-
Returns the bearing to the robot you scanned, relative to your robot's
heading, in radians (-PI <= getBearingRadians() < PI)
- getBodyColor() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the color of the body.
- getBodyHeading() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the body heading in radians.
- getBodyHeading() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the direction that the robot's body is facing, in radians.
- getBodyTurnRemaining() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the angle remaining in the robot's turn, in radians.
- getBullet() - Method in class robocode.BulletHitBulletEvent
-
Returns your bullet that hit another bullet.
- getBullet() - Method in class robocode.BulletHitEvent
-
Returns the bullet of yours that hit the robot.
- getBullet() - Method in class robocode.BulletMissedEvent
-
Returns the bullet that missed.
- getBullet() - Method in class robocode.HitByBulletEvent
-
Returns the bullet that hit your robot.
- getBulletDamage() - Method in class robocode.BattleResults
-
Returns the bullet damage score of this robot in the battle.
- getBulletDamage(double) - Static method in class robocode.Rules
-
Returns the amount of damage of a bullet given a specific bullet power.
- getBulletDamageBonus() - Method in class robocode.BattleResults
-
Returns the bullet damage bonus of this robot in the battle.
- getBulletHitBonus(double) - Static method in class robocode.Rules
-
Returns the amount of bonus given when a robot's bullet hits an opponent
robot given a specific bullet power.
- getBulletHitBulletEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all BulletHitBulletEvents currently in the
robot's queue.
- getBulletHitBulletEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all BulletHitBulletEvents currently in the
robot's queue.
- getBulletHitEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all BulletHitEvents currently in the robot's
queue.
- getBulletHitEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all BulletHitEvents currently in the robot's
queue.
- getBulletMissedEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all BulletMissedEvents currently in the
robot's queue.
- getBulletMissedEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all BulletMissedEvents currently in the
robot's queue.
- getBullets() - Method in interface robocode.control.snapshot.ITurnSnapshot
-
Returns all bullets currently the battlefield.
- getBulletSpeed(double) - Static method in class robocode.Rules
-
Returns the speed of a bullet given a specific bullet power measured in
pixels/turn
- getCall() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
This call must be made from a robot call to inform the game
that the robot made a get*
call like e.g.
- getClassName() - Method in class robocode.control.RobotSpecification
-
Returns the full class name of this robot or team.
- getColor() - Method in interface robocode.control.snapshot.IBulletSnapshot
-
Returns the color of the bullet.
- getCondition() - Method in class robocode.CustomEvent
-
Returns the condition that fired, causing this event to be generated.
- getContestantIndex() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the index of the contestant that will not be changed during a battle.
- getCurrentBulletDamageScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the current bullet damage score.
- getCurrentBulletKillBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the current bullet kill bonus.
- getCurrentRammingDamageScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the current ramming damage score.
- getCurrentRammingKillBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the current ramming kill bonus.
- getCurrentScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the current score.
- getCurrentSurvivalBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the current survival bonus.
- getCurrentSurvivalScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the current survival score.
- getDataDirectory() - Method in class robocode.AdvancedRobot
-
- getDataDirectory() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
- getDataFile(String) - Method in class robocode.AdvancedRobot
-
- getDataFile(String) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
- getDataQuotaAvailable() - Method in class robocode.AdvancedRobot
-
Returns the data quota available in your data directory, i.e.
- getDataQuotaAvailable() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns the data quota available in your data directory, i.e.
- getDebugProperties() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns a list of all debug properties.
- getDescription() - Method in class robocode.control.RobotSpecification
-
Returns the description provided by the author of this robot.
- getDistance() - Method in class robocode.ScannedRobotEvent
-
Returns the distance to the robot (your center to his center).
- getDistanceRemaining() - Method in class robocode.AdvancedRobot
-
Returns the distance remaining in the robot's current move measured in
pixels.
- getDistanceRemaining() - Method in 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.
- 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.
- getEnergy() - Method in class robocode.HitRobotEvent
-
Returns the amount of energy of the robot you hit.
- getEnergy() - Method in class robocode.Robot
-
Returns the robot's current energy.
- getEnergy() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the robot's current energy.
- getEnergy() - Method in class robocode.RobotStatus
-
Returns the robot's current energy.
- getEnergy() - Method in class robocode.ScannedRobotEvent
-
Returns the energy of the robot.
- getError() - Method in class robocode.control.events.BattleErrorEvent
-
Returns the error message.
- 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.
- getExplosionImageIndex() - Method in interface robocode.control.snapshot.IBulletSnapshot
-
Returns the index to which explosion image that must be rendered.
- 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 frame number to display.
- 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.
- 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.
- 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.
- getGunCoolingRate() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the rate at which the gun will cool down, i.e.
- getGunHeading() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the gun heading 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.
- getGunHeadingRadians() - Method in class robocode.AdvancedRobot
-
Returns the direction that the robot's gun is facing, in radians.
- getGunHeadingRadians() - Method in class robocode.RobotStatus
-
Returns the direction that the robot's gun is facing, in radians.
- getGunHeat() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the gun heat.
- 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.
- 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.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.HitByBulletEvent
-
Returns the heading of the bullet when it hit you, in degrees
(0 <= getHeading() < 360)
Note: This is not relative to the direction you are facing.
- getHeading() - Method in class robocode.Robot
-
Returns the direction that the robot's body is facing, in degrees.
- getHeading() - Method in class robocode.RobotStatus
-
Returns the direction that the robot's body is facing, in degrees.
- getHeading() - Method in class robocode.ScannedRobotEvent
-
Returns the heading of the robot, in degrees (0 <= getHeading() < 360)
- getHeadingDegrees() - Method in class robocode.HitByBulletEvent
-
- 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)
Note: This is not relative to the direction you are facing.
- getHeadingRadians() - Method in class robocode.RobotStatus
-
Returns the direction that the robot's body is facing, in radians.
- getHeadingRadians() - Method in class robocode.ScannedRobotEvent
-
Returns the heading of the robot, in radians (0 <= getHeading() < 2 * PI)
- getHeight() - Method in class robocode.control.BattlefieldSpecification
-
Returns the height of this battlefield.
- getHeight() - Method in class robocode.Robot
-
Returns the height of the robot measured in pixels.
- getHitBullet() - Method in class robocode.BulletHitBulletEvent
-
Returns the bullet that was hit by your bullet.
- getHitByBulletEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all HitByBulletEvents currently in the
robot's queue.
- getHitByBulletEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all HitByBulletEvents currently in the
robot's queue.
- getHitRobotEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all HitRobotEvents currently in the robot's
queue.
- getHitRobotEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all HitRobotEvents currently in the robot's
queue.
- getHitWallEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all HitWallEvents currently in the robot's
queue.
- getHitWallEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all HitWallEvents currently in the robot's
queue.
- getInactivityTime() - Method in class robocode.BattleRules
-
Returns the allowed inactivity time, where the robot is not taking any action, before will begin to be zapped.
- getInactivityTime() - Method in class robocode.control.BattleSpecification
-
Returns the allowed inactivity time for the robots in this battle.
- getIndexedResults() - Method in class robocode.control.events.BattleCompletedEvent
-
Returns the unsorted battle results so that robot indexes can be used.
- getIndexedTeamScores() - Method in interface robocode.control.snapshot.ITurnSnapshot
-
- getInteractiveEventListener() - Method in class robocode.Robot
-
This method is called by the game to notify this robot about interactive
events, i.e.
- getInteractiveEventListener() - Method in interface robocode.robotinterfaces.IInteractiveRobot
-
This method is called by the game to notify this robot about interactive
events, i.e.
- getJarFile() - Method in class robocode.control.RobotSpecification
-
Returns the JAR file containing this robot or team, or null
if it
does not come from a JAR file (could be class files instead).
- getKey() - Method in interface robocode.control.snapshot.IDebugProperty
-
Returns the key of the property.
- getLastSurvivorBonus() - Method in class robocode.BattleResults
-
Returns the last survivor score of this robot in the battle.
- getLife() - Method in class robocode.BulletHitEvent
-
- getLife() - Method in class robocode.ScannedRobotEvent
-
- 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.
- getMessage() - Method in class robocode.control.events.BattleMessageEvent
-
Returns the information message.
- getMessage() - Method in class robocode.MessageEvent
-
Returns the message itself.
- getMessageEvents() - Method in interface robocode.robotinterfaces.peer.ITeamRobotPeer
-
Returns a vector containing all MessageEvents currently in the robot's
queue.
- getMessageEvents() - Method in class robocode.TeamRobot
-
Returns a vector containing all MessageEvents currently in the robot's
queue.
- getName() - Method in class robocode.Bullet
-
Returns the name of the robot that fired this bullet.
- getName() - Method in class robocode.BulletHitEvent
-
Returns the name of the robot your bullet hit.
- getName() - Method in class robocode.Condition
-
Returns the name of this condition.
- getName() - Method in class robocode.control.RobotSpecification
-
Returns the name of this robot or team.
- getName() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the name of the robot.
- getName() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the name of the robot.
- getName() - Method in class robocode.HitByBulletEvent
-
Returns the name of the robot that fired the bullet.
- getName() - Method in class robocode.HitRobotEvent
-
Returns the name of the robot you hit.
- getName() - Method in class robocode.RobocodeFileOutputStream
-
Returns the filename of this output stream.
- getName() - Method in class robocode.Robot
-
Returns the robot's name.
- getName() - Method in class robocode.RobotDeathEvent
-
Returns the name of the robot that died.
- getName() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the robot's name.
- getName() - Method in class robocode.ScannedRobotEvent
-
Returns the name of the robot.
- getNameAndVersion() - Method in class robocode.control.RobotSpecification
-
Returns the name and version of this robot or team.
- 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.
- getOthers() - Method in class robocode.Robot
-
Returns how many opponents that are left in the current round.
- getOthers() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns how many opponents that are left in the current round.
- getOthers() - Method in class robocode.RobotStatus
-
Returns how many opponents that are left in the current round.
- getOutputStreamSnapshot() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns a snapshot of the output print stream for this robot.
- getPaintEventListener() - Method in class robocode.Robot
-
This method is called by the game to notify this robot about painting
events.
- getPaintEventListener() - Method in interface robocode.robotinterfaces.IPaintRobot
-
This method is called by the game to notify this robot about painting
events.
- getPaintX() - Method in interface robocode.control.snapshot.IBulletSnapshot
-
Returns the x coordinate where to paint the bullet.
- getPaintY() - Method in interface robocode.control.snapshot.IBulletSnapshot
-
Returns the y coordinate where to paint the bullet.
- getPower() - Method in class robocode.Bullet
-
Returns the power of this bullet.
- getPower() - Method in interface robocode.control.snapshot.IBulletSnapshot
-
Returns the bullet power.
- getPower() - Method in class robocode.HitByBulletEvent
-
Returns the power of this bullet.
- getPriority() - Method in class robocode.BattleEndedEvent
-
Returns the priority of this event.
- getPriority() - Method in class robocode.Condition
-
Returns the priority of this condition.
- getPriority() - Method in class robocode.CustomEvent
-
Returns the priority of this event.
- getPriority() - Method in class robocode.DeathEvent
-
Returns the priority of this event.
- getPriority() - Method in class robocode.Event
-
Returns the priority of this event.
- getPriority() - Method in class robocode.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 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.
- getRadarHeadingRadians() - Method in class robocode.AdvancedRobot
-
Returns the direction that the robot's radar is facing, in radians.
- getRadarHeadingRadians() - Method in class robocode.RobotStatus
-
Returns the direction that the robot's radar is facing, in radians.
- getRadarTurnRemaining() - Method in class robocode.AdvancedRobot
-
Returns the angle remaining in the radar's turn, in degrees.
- getRadarTurnRemaining() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the angle remaining in the radar's turn, in radians.
- getRadarTurnRemaining() - Method in class robocode.RobotStatus
-
Returns the angle remaining in the radar's turn, in degrees.
- getRadarTurnRemainingRadians() - Method in class robocode.AdvancedRobot
-
Returns the angle remaining in the radar's turn, in radians.
- getRadarTurnRemainingRadians() - Method in class robocode.RobotStatus
-
Returns the angle remaining in the radar's turn, in radians.
- getRamDamage() - Method in class robocode.BattleResults
-
Returns the ram damage score of this robot in the battle.
- getRamDamageBonus() - Method in class robocode.BattleResults
-
Returns the ram damage bonus of this robot in the battle.
- getRandom() - Static method in class robocode.util.Utils
-
Returns random number generator.
- getRank() - Method in class robocode.BattleResults
-
Returns the rank of this robot in the battle results.
- getResults() - Method in class robocode.BattleEndedEvent
-
Returns the battle results.
- getRobocodeVersion() - Method in class robocode.control.RobotSpecification
-
Returns the version of Robocode this robot was based on.
- getRobot() - Method in class robocode.control.RobotResults
-
Returns the robot these results are meant for.
- getRobotBearing() - Method in class robocode.ScannedRobotEvent
-
- getRobotBearingDegrees() - Method in class robocode.ScannedRobotEvent
-
- getRobotBearingRadians() - Method in class robocode.ScannedRobotEvent
-
- getRobotDeathEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all RobotDeathEvents currently in the robot's
queue.
- getRobotDeathEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all RobotDeathEvents currently in the robot's
queue.
- getRobotDistance() - Method in class robocode.ScannedRobotEvent
-
- getRobotHeading() - Method in class robocode.ScannedRobotEvent
-
- getRobotHeadingDegrees() - Method in class robocode.ScannedRobotEvent
-
- getRobotHeadingRadians() - Method in class robocode.ScannedRobotEvent
-
- getRobotLife() - Method in class robocode.BulletHitEvent
-
- getRobotLife() - Method in class robocode.ScannedRobotEvent
-
- getRobotName() - Method in class robocode.BulletHitEvent
-
- getRobotName() - Method in class robocode.HitRobotEvent
-
- getRobotName() - Method in class robocode.RobotDeathEvent
-
- getRobotName() - Method in class robocode.ScannedRobotEvent
-
- getRobotRunnable() - Method in class robocode.JuniorRobot
-
Do not call this method!
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.Robot
-
This method is called by the game to invoke the
run()
method of your robot, where the program
of your robot is implemented.
- getRobotRunnable() - Method in interface robocode.robotinterfaces.IBasicRobot
-
This method is called by the game to invoke the
run()
method of your robot, where the program
of your robot is implemented.
- getRobots() - Method in class robocode.control.BattleSpecification
-
Returns the specifications of the robots participating in this battle.
- getRobots() - Method in interface robocode.control.snapshot.ITurnSnapshot
-
Returns all robots participating in the battle.
- getRobotsCount() - Method in class robocode.control.events.BattleStartedEvent
-
Returns the number of robots participating in the battle.
- getRobotVelocity() - Method in class robocode.ScannedRobotEvent
-
- getRound() - Method in class robocode.control.events.RoundEndedEvent
-
Returns the round number that was ended.
- getRound() - Method in class robocode.control.events.RoundStartedEvent
-
Returns the round number.
- getRound() - Method in interface robocode.control.snapshot.ITurnSnapshot
-
Returns the current turn.
- getRoundNum() - Method in class robocode.Robot
-
- getRoundNum() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
- getRoundNum() - Method in class robocode.RobotStatus
-
- getScanColor() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the color of the scan arc.
- getScannedRobotEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all ScannedRobotEvents currently in the
robot's queue.
- getScannedRobotEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all ScannedRobotEvents currently in the
robot's queue.
- getScore() - Method in class robocode.BattleResults
-
Returns the total score of this robot in the battle.
- getScoreSnapshot() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns snapshot current score.
- 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.
- getShortName() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the very short name of the robot.
- getSortedResults() - Method in class robocode.control.events.BattleCompletedEvent
-
Returns the battle results sorted on score, meaning that robot indexes cannot be used.
- getSortedTeamScores() - Method in interface robocode.control.snapshot.ITurnSnapshot
-
- getSourceEvent() - Method in class robocode.KeyEvent
-
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.
- getSourceEvent() - Method in class robocode.MouseEvent
-
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.
- getStartSnapshot() - Method in class robocode.control.events.RoundStartedEvent
-
Returns the start snapshot of the participating robots, initial starting positions etc.
- getState() - Method in interface robocode.control.snapshot.IBulletSnapshot
-
Returns the bullet state.
- getState() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the robot status.
- getStatus() - Method in class robocode.StatusEvent
-
- getStatusEvents() - Method in class robocode.AdvancedRobot
-
Returns a vector containing all StatusEvents currently in the robot's
queue.
- getStatusEvents() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Returns a vector containing all StatusEvents currently in the robot's
queue.
- getSurvival() - Method in class robocode.BattleResults
-
Returns the survival score of this robot in the battle.
- getTeamEventListener() - Method in interface robocode.robotinterfaces.ITeamRobot
-
This method is called by the game to notify this robot about team events.
- getTeamEventListener() - Method in class robocode.TeamRobot
-
Do not call this method!
This method is called by the game to notify this robot about team events.
- 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, or name of the robot if the contestant is not a team.
- 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 this event occurred.
- getTime() - Method in class robocode.Robot
-
Returns the game time of the current round, where the time is equal to
the current turn in the round.
- getTime() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the game time of the current round, where the time is equal to
the current turn in the round.
- getTime() - Method in class robocode.RobotStatus
-
Returns the game time of the round, where the time is equal to the current turn in the round.
- getTotalBulletDamageScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total bullet damage score.
- getTotalBulletKillBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total bullet kill bonus.
- getTotalFirsts() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total number of first places.
- getTotalLastSurvivorBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total last survivor score.
- getTotalRammingDamageScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total ramming damage score.
- getTotalRammingKillBonus() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total ramming kill bonus.
- getTotalScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total score.
- getTotalSeconds() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total number of second places.
- getTotalSurvivalScore() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total survival score.
- getTotalThirds() - Method in interface robocode.control.snapshot.IScoreSnapshot
-
Returns the total number of third places.
- getTPS() - Method in interface robocode.control.snapshot.ITurnSnapshot
-
Returns the current TPS (turns per second).
- getTurn() - Method in interface robocode.control.snapshot.ITurnSnapshot
-
Returns the current turn.
- getTurnRate(double) - Static method in class robocode.Rules
-
Returns the turn rate of a robot given a specific velocity measured in
degrees/turn.
- getTurnRateRadians(double) - Static method in class robocode.Rules
-
Returns the turn rate of a robot given a specific velocity measured in
radians/turn.
- getTurnRemaining() - Method in class robocode.AdvancedRobot
-
Returns the angle remaining in the robots's turn, in degrees.
- getTurnRemaining() - Method in class robocode.RobotStatus
-
Returns the angle remaining in the robots's turn, in degrees.
- 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.
- getTurnSnapshot() - Method in class robocode.control.events.TurnEndedEvent
-
Returns a snapshot of the turn that has ended.
- getValue() - Method in enum robocode.control.snapshot.BulletState
-
Returns the state as an integer value.
- getValue() - Method in interface robocode.control.snapshot.IDebugProperty
-
Returns the value of the property.
- getValue() - Method in enum robocode.control.snapshot.RobotState
-
Returns the state as an integer value.
- getVelocity() - Method in class robocode.Bullet
-
Returns the velocity of this bullet.
- getVelocity() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the velocity.
- getVelocity() - Method in class robocode.HitByBulletEvent
-
Returns the velocity of this bullet.
- getVelocity() - Method in class robocode.Robot
-
Returns the velocity of the robot measured in pixels/turn.
- getVelocity() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the velocity of the robot measured in pixels/turn.
- getVelocity() - Method in class robocode.RobotStatus
-
Returns the velocity of the robot measured in pixels/turn.
- getVelocity() - Method in class robocode.ScannedRobotEvent
-
Returns the velocity of the robot.
- getVersion() - Method in class robocode.control.RobocodeEngine
-
Returns the installed version of Robocode.
- getVersion() - Method in class robocode.control.RobotSpecification
-
Returns the version of this robot or team.
- 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.
- getWallHitDamage(double) - Static method in class robocode.Rules
-
Returns the amount of damage taken when robot hits a wall with a
specific velocity.
- getWebpage() - Method in class robocode.control.RobotSpecification
-
Returns the web page for this robot.
- getWidth() - Method in class robocode.control.BattlefieldSpecification
-
Returns the width of this battlefield.
- getWidth() - Method in class robocode.Robot
-
Returns the width of the robot measured in pixels.
- getX() - Method in class robocode.Bullet
-
Returns the X position of the bullet.
- getX() - Method in interface robocode.control.snapshot.IBulletSnapshot
-
Returns the x coordinate of the bullet.
- getX() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the x coordinate of the robot.
- getX() - Method in class robocode.Robot
-
Returns the X position of the robot.
- getX() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the X position of the robot.
- getX() - Method in class robocode.RobotStatus
-
Returns the X position of the robot.
- getY() - Method in class robocode.Bullet
-
Returns the Y position of the bullet.
- getY() - Method in interface robocode.control.snapshot.IBulletSnapshot
-
Returns the y coordinate of the bullet.
- getY() - Method in interface robocode.control.snapshot.IRobotSnapshot
-
Returns the y coordinate of the robot.
- getY() - Method in class robocode.Robot
-
Returns the Y position of the robot.
- getY() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Returns the Y position of the robot.
- getY() - Method in class robocode.RobotStatus
-
Returns the Y position of the robot.
- gray - Static variable in class robocode.JuniorRobot
-
The color gray (0x808080)
- green - Static variable in class robocode.JuniorRobot
-
The color green (0x008000)
- GUN_TURN_RATE - Static variable in class robocode.Rules
-
The turning rate of the gun measured in degrees, which is
20 degrees/turn.
- GUN_TURN_RATE_RADIANS - Static variable in class robocode.Rules
-
The turning rate of the gun measured in radians instead of degrees.
- gunBearing - Variable in class robocode.JuniorRobot
-
Current gun heading angle of this robot compared to its body (in degrees).
- gunHeading - Variable in class robocode.JuniorRobot
-
Current gun heading angle of this robot (in degrees).
- gunReady - Variable in class robocode.JuniorRobot
-
Flag specifying if the gun is ready to fire, i.e.
- 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.
- 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 end of the battle, even when the battle is aborted.
- onBattleEnded(BattleEndedEvent) - Method in interface robocode.robotinterfaces.IBasicEvents2
-
This method is called after end of the battle, even when the battle is aborted.
- onBattleError(BattleErrorEvent) - Method in class robocode.control.events.BattleAdaptor
-
This method is called when the game has sent an error message.
- onBattleError(BattleErrorEvent) - Method in interface robocode.control.events.IBattleListener
-
This method is called when the game has sent an error message.
- onBattleFinished(BattleFinishedEvent) - Method in class robocode.control.events.BattleAdaptor
-
This method is called when the battle has finished.
- onBattleFinished(BattleFinishedEvent) - Method in interface robocode.control.events.IBattleListener
-
This method is called when the battle has finished.
- onBattleMessage(BattleMessageEvent) - Method in class robocode.control.events.BattleAdaptor
-
This method is called when the game has sent a new information message.
- onBattleMessage(BattleMessageEvent) - Method in interface robocode.control.events.IBattleListener
-
This method is called when the game has sent a new information message.
- onBattlePaused(BattlePausedEvent) - Method in class robocode.control.events.BattleAdaptor
-
This method is called when the battle has been paused, either by the user or the game.
- onBattlePaused(BattlePausedEvent) - Method in interface robocode.control.events.IBattleListener
-
This method is called when the battle has been paused, either by the user or the game.
- onBattleResumed(BattleResumedEvent) - Method in class robocode.control.events.BattleAdaptor
-
This method is called when the battle has been resumed (after having been paused).
- onBattleResumed(BattleResumedEvent) - Method in interface robocode.control.events.IBattleListener
-
This method is called when the battle has been resumed (after having been paused).
- onBattleStarted(BattleStartedEvent) - Method in class robocode.control.events.BattleAdaptor
-
This method is called when a new battle has started.
- onBattleStarted(BattleStartedEvent) - Method in interface robocode.control.events.IBattleListener
-
This method is called when a new battle has started.
- onBulletHit(BulletHitEvent) - Method in class robocode.Robot
-
This method is called when one of your bullets hits another robot.
- onBulletHit(BulletHitEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called when one of your bullets hits another robot.
- onBulletHitBullet(BulletHitBulletEvent) - Method in class robocode.Robot
-
This method is called when one of your bullets hits another bullet.
- onBulletHitBullet(BulletHitBulletEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called when one of your bullets hits another bullet.
- onBulletMissed(BulletMissedEvent) - Method in class robocode.Robot
-
This method is called when one of your bullets misses, i.e.
- onBulletMissed(BulletMissedEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called when one of your bullets misses, i.e.
- onCustomEvent(CustomEvent) - Method in class robocode.AdvancedRobot
-
This method is called when a custom condition is met.
- onCustomEvent(CustomEvent) - Method in interface robocode.robotinterfaces.IAdvancedEvents
-
This method is called when a custom condition is met.
- onDeath(DeathEvent) - Method in class robocode.AdvancedRobot
-
This method is called if your robot dies.
- onDeath(DeathEvent) - Method in class robocode.Robot
-
This method is called if your robot dies.
- onDeath(DeathEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called if your robot dies.
- onHitByBullet() - Method in class robocode.JuniorRobot
-
This event methods is called from the game when this robot has been hit
by another robot's bullet.
- onHitByBullet(HitByBulletEvent) - Method in class robocode.Robot
-
This method is called when your robot is hit by a bullet.
- onHitByBullet(HitByBulletEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called when your robot is hit by a bullet.
- onHitRobot() - Method in class robocode.JuniorRobot
-
This event methods is called from the game when a bullet from this robot
has hit another robot.
- onHitRobot(HitRobotEvent) - Method in class robocode.Robot
-
This method is called when your robot collides with another robot.
- onHitRobot(HitRobotEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called when your robot collides with another robot.
- onHitWall() - Method in class robocode.JuniorRobot
-
This event methods is called from the game when this robot has hit a wall.
- onHitWall(HitWallEvent) - Method in class robocode.Robot
-
This method is called when your robot collides with a wall.
- onHitWall(HitWallEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called when your robot collides with a wall.
- onKeyPressed(KeyEvent) - Method in class robocode.Robot
-
This method is called when a key has been pressed.
- onKeyPressed(KeyEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when a key has been pressed.
- onKeyReleased(KeyEvent) - Method in class robocode.Robot
-
This method is called when a key has been released.
- onKeyReleased(KeyEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when a key has been released.
- onKeyTyped(KeyEvent) - Method in class robocode.Robot
-
This method is called when a key has been typed (pressed and released).
- onKeyTyped(KeyEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when a key has been typed (pressed and released).
- onMessageReceived(MessageEvent) - Method in interface robocode.robotinterfaces.ITeamEvents
-
This method is called when your robot receives a message from a teammate.
- onMessageReceived(MessageEvent) - Method in class robocode.TeamRobot
-
This method is called when your robot receives a message from a teammate.
- onMouseClicked(MouseEvent) - Method in class robocode.Robot
-
This method is called when a mouse button has been clicked (pressed and
released).
- onMouseClicked(MouseEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when a mouse button has been clicked (pressed and
released).
- onMouseDragged(MouseEvent) - Method in class robocode.Robot
-
This method is called when a mouse button has been pressed and then
dragged.
- onMouseDragged(MouseEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when a mouse button has been pressed and then
dragged.
- onMouseEntered(MouseEvent) - Method in class robocode.Robot
-
This method is called when the mouse has entered the battle view.
- onMouseEntered(MouseEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when the mouse has entered the battle view.
- onMouseExited(MouseEvent) - Method in class robocode.Robot
-
This method is called when the mouse has exited the battle view.
- onMouseExited(MouseEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when the mouse has exited the battle view.
- onMouseMoved(MouseEvent) - Method in class robocode.Robot
-
This method is called when the mouse has been moved.
- onMouseMoved(MouseEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when the mouse has been moved.
- onMousePressed(MouseEvent) - Method in class robocode.Robot
-
This method is called when a mouse button has been pressed.
- onMousePressed(MouseEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when a mouse button has been pressed.
- onMouseReleased(MouseEvent) - Method in class robocode.Robot
-
This method is called when a mouse button has been released.
- onMouseReleased(MouseEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when a mouse button has been released.
- onMouseWheelMoved(MouseWheelEvent) - Method in class robocode.Robot
-
This method is called when the mouse wheel has been rotated.
- onMouseWheelMoved(MouseWheelEvent) - Method in interface robocode.robotinterfaces.IInteractiveEvents
-
This method is called when the mouse wheel has been rotated.
- onPaint(Graphics2D) - Method in class robocode.Robot
-
This method is called every time the robot is painted.
- onPaint(Graphics2D) - Method in interface robocode.robotinterfaces.IPaintEvents
-
This method is called every time the robot is painted.
- onRobotDeath(RobotDeathEvent) - Method in class robocode.Robot
-
This method is called when another robot dies.
- onRobotDeath(RobotDeathEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called when another robot dies.
- onRoundEnded(RoundEndedEvent) - Method in class robocode.control.events.BattleAdaptor
-
This method is called when the current round of a battle has ended.
- onRoundEnded(RoundEndedEvent) - Method in interface robocode.control.events.IBattleListener
-
This method is called when the current round of a battle has ended.
- 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.
- onScannedRobot(ScannedRobotEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called when your robot sees another robot, i.e.
- onSkippedTurn(SkippedTurnEvent) - Method in class robocode.AdvancedRobot
-
This method is called if the robot is using too much time between
actions.
- onSkippedTurn(SkippedTurnEvent) - Method in interface robocode.robotinterfaces.IAdvancedEvents
-
This method is called if the robot is using too much time between
actions.
- onStatus(StatusEvent) - Method in class robocode.Robot
-
This method is called every turn in a battle round in order to provide
the robot status as a complete snapshot of the robot's current state at
that specific time.
- onStatus(StatusEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called every turn in a battle round in order to provide
the robot status as a complete snapshot of the robot's current state at
that specific time.
- onTurnEnded(TurnEndedEvent) - Method in class robocode.control.events.BattleAdaptor
-
This method is called when the current turn in a battle round is ended.
- onTurnEnded(TurnEndedEvent) - Method in interface robocode.control.events.IBattleListener
-
This method is called when the current turn in a battle round is ended.
- onTurnStarted(TurnStartedEvent) - Method in class robocode.control.events.BattleAdaptor
-
This method is called when a new turn in a battle round has started.
- onTurnStarted(TurnStartedEvent) - Method in interface robocode.control.events.IBattleListener
-
This method is called when a new turn in a battle round has started.
- onWin(WinEvent) - Method in class robocode.Robot
-
This method is called if your robot wins a battle.
- onWin(WinEvent) - Method in interface robocode.robotinterfaces.IBasicEvents
-
This method is called if your robot wins a battle.
- orange - Static variable in class robocode.JuniorRobot
-
The color orange (0xFFA500)
- others - Variable in class robocode.JuniorRobot
-
Current number of other robots on the battle field.
- scan() - Method in class robocode.Robot
-
Scans for other robots.
- scannedAngle - Variable in class robocode.JuniorRobot
-
Current angle to the scanned nearest other robot (in degrees).
- scannedBearing - Variable in class robocode.JuniorRobot
-
Current angle to the scanned nearest other robot (in degrees) compared to
the body of this robot.
- scannedDistance - Variable in class robocode.JuniorRobot
-
Current distance to the scanned nearest other robot (in pixels).
- scannedEnergy - Variable in class robocode.JuniorRobot
-
Current energy of scanned nearest other robot.
- scannedHeading - Variable in class robocode.JuniorRobot
-
Current heading of the scanned nearest other robot (in degrees).
- ScannedRobotEvent - Class in robocode
-
- ScannedRobotEvent(String, double, double, double, double, double) - Constructor for class robocode.ScannedRobotEvent
-
Called by the game to create a new ScannedRobotEvent.
- scannedVelocity - Variable in class robocode.JuniorRobot
-
Current velocity of the scanned nearest other robot.
- score - Variable in class robocode.BattleResults
-
- seconds - Variable in class robocode.BattleResults
-
- sendMessage(String, Serializable) - Method in interface robocode.robotinterfaces.peer.ITeamRobotPeer
-
Sends a message to one (or more) teammates.
- sendMessage(String, Serializable) - Method in class robocode.TeamRobot
-
Sends a message to one (or more) teammates.
- serialVersionUID - Static variable in class robocode.BattleResults
-
- setAdjustGunForBodyTurn(boolean) - Method in interface robocode.robotinterfaces.peer.IStandardRobotPeer
-
Sets the gun to 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.
- setAllColors(Color) - Method in class robocode.Robot
-
Sets all the robot's color to the same color in the same time, i.e.
- setBack(double) - Method in class robocode.AdvancedRobot
-
Sets the robot to move back by distance measured in pixels when the next
execution takes place.
- setBodyColor(Color) - Method in class robocode.Robot
-
Sets the color of the robot's body.
- setBodyColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Sets the color of the robot's body.
- setBulletColor(Color) - Method in class robocode.Robot
-
Sets the color of the robot's bullets.
- setBulletColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Sets the color of the robot's bullets.
- setCall() - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
This call must be made from a robot call to inform the game
that the robot made a set*
call like e.g.
- setColors(int, int, int) - Method in class robocode.JuniorRobot
-
Sets the colors of the robot.
- setColors(int, int, int, int, int) - Method in class robocode.JuniorRobot
-
Sets the colors of the robot.
- setColors(Color, Color, Color) - Method in class robocode.Robot
-
Sets the color of the robot's body, gun, and radar in the same time.
- setColors(Color, Color, Color, Color, Color) - Method in class robocode.Robot
-
Sets the color of the robot's body, gun, radar, bullet, and scan arc in
the same time.
- setDebugProperty(String, String) - Method in class robocode.Robot
-
Sets the debug property with the specified key to the specified value.
- setDebugProperty(String, String) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Sets the debug property with the specified key to the specified value.
- setEventPriority(String, int) - Method in class robocode.AdvancedRobot
-
Sets the priority of a class of events.
- setEventPriority(String, int) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Sets the priority of a class of events.
- setFileOutputStream(FileOutputStream) - Method in class robocode.RobocodeFileOutputStream
-
The system calls this method, you should not call it.
- setFire(double) - Method in class robocode.AdvancedRobot
-
Sets the gun to fire a bullet when the next execution takes place.
- setFire(double) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Sets the gun to fire a bullet when the next execution takes place.
- setFireBullet(double) - Method in class robocode.AdvancedRobot
-
Sets the gun to fire a bullet when the next execution takes place.
- setGunColor(Color) - Method in class robocode.Robot
-
Sets the color of the robot's gun.
- setGunColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Sets the color of the robot's gun.
- 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.
- setMaxTurnRate(double) - Method in class robocode.AdvancedRobot
-
Sets the maximum turn rate of the robot measured in degrees if the robot
should turn slower than
Rules.MAX_TURN_RATE
(10 degress/turn).
- setMaxTurnRate(double) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Sets the maximum turn rate of the robot measured in degrees if the robot
should turn slower than
Rules.MAX_TURN_RATE
(10 degress/turn).
- setMaxVelocity(double) - Method in class robocode.AdvancedRobot
-
Sets the maximum velocity of the robot measured in pixels/turn if the
robot should move slower than
Rules.MAX_VELOCITY
(8 pixels/turn).
- setMaxVelocity(double) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Sets the maximum velocity of the robot measured in pixels/turn if the
robot should move slower than
Rules.MAX_VELOCITY
(8 pixels/turn).
- setMove(double) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Sets the robot to move forward or backward by distance measured in pixels
when the next execution takes place.
- setName(String) - Method in class robocode.Condition
-
Sets the name of this condition.
- setOut(PrintStream) - Method in interface robocode.robotinterfaces.IBasicRobot
-
Do not call this method!
This method is called by the game when setting the output stream for your
robot.
- setPeer(IBasicRobotPeer) - Method in interface robocode.robotinterfaces.IBasicRobot
-
Do not call this method! Your robot will simply stop interacting with
the game.
- setPriority(int) - Method in class robocode.Condition
-
Sets the priority of this condition.
- 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.
- setResume() - Method in class robocode.AdvancedRobot
-
- setResume() - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
- setScanColor(Color) - Method in class robocode.Robot
-
Sets the color of the robot's scan arc.
- setScanColor(Color) - Method in interface robocode.robotinterfaces.peer.IBasicRobotPeer
-
Sets the color of the robot's scan arc.
- setStop() - Method in class robocode.AdvancedRobot
-
This call is identical to
stop()
, but returns immediately, and
will not execute until you call
AdvancedRobot.execute()
or take an action that
executes.
- setStop(boolean) - Method in class robocode.AdvancedRobot
-
- 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.
- setThreadManager(IThreadManager) - Static method in class robocode.RobocodeFileOutputStream
-
The system calls this method, you should not call it.
- setTurnBody(double) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Sets the robot's body to turn right or left by radians when the next
execution takes place.
- setTurnGun(double) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Sets the robot's gun to turn right or left by radians when the next
execution takes place.
- setTurnGunLeft(double) - Method in class robocode.AdvancedRobot
-
Sets the robot's gun to turn left by degrees when the next execution
takes place.
- 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.
- 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.
- setTurnLeftRadians(double) - Method in class robocode.AdvancedRobot
-
Sets the robot's body to turn left by radians when the next execution
takes place.
- setTurnRadar(double) - Method in interface robocode.robotinterfaces.peer.IAdvancedRobotPeer
-
Sets the robot's radar to turn right or left by radians when the next
execution takes place.
- setTurnRadarLeft(double) - Method in class robocode.AdvancedRobot
-
Sets the robot's radar to turn left by degrees when the next execution
takes place.
- setTurnRadarLeftRadians(double) - Method in class robocode.AdvancedRobot
-
Sets the robot's radar to turn left by radians when the next execution
takes place.
- setTurnRadarRight(double) - Method in class robocode.AdvancedRobot
-
Sets the robot's radar to turn right by degrees when the next execution
takes place.
- setTurnRadarRightRadians(double) - Method in class robocode.AdvancedRobot
-
Sets the robot's radar to turn right by radians when the next execution
takes place.
- setTurnRight(double) - Method in class robocode.AdvancedRobot
-
Sets the robot's body to turn right by degrees when the next execution
takes place.
- setTurnRightRadians(double) - Method in class robocode.AdvancedRobot
-
Sets the robot's body to turn right by radians when the next execution
takes place.
- setVisible(boolean) - Method in class robocode.control.RobocodeEngine
-
Shows or hides the Robocode window.
- SkippedTurnEvent - Class in robocode
-
A SkippedTurnEvent is sent to
onSkippedTurn()
when your robot is forced to skipping a turn.
- SkippedTurnEvent() - Constructor for class robocode.SkippedTurnEvent
-
Called by the game to create a new SkippedTurnEvent.
- StatusEvent - Class 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
-
- survival - Variable in class robocode.BattleResults
-