Package robocode
package robocode
Robot API used for writing robots for Robocode.
-
ClassDescriptionThis class is used by the system as a placeholder for all *Radians calls in
AdvancedRobot
.This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls forAdvancedRobot
.This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls forRobot
.This is the base class of all robots used by the system.A more advanced type of robot than Robot that allows non-blocking calls, custom events, and writes to the filesystem.A BattleEndedEvent is sent toonBattleEnded()
when the battle is ended.Contains the battle results returned byBattleEndedEvent.getResults()
when a battle has ended.Contains the battle rules returned byBattleStartedEvent.getBattleRules()
when a battle is started andBattleCompletedEvent.getBattleRules()
when a battle is completed.A robot that implements BorderSentry is a robot type used for keeping other robots away from the borders, i.e.Represents a bullet.This event is sent toonBulletHitBullet
when one of your bullets has hit another bullet.This event is sent toonBulletHit
when one of your bullets has hit another robot.This event is sent toonBulletMissed
when one of your bullets has missed, i.e.Condition is used to define customwaitFor(Condition)
and custom events for anAdvancedRobot
.This event is sent toonCustomEvent()
when a custom condition is met.This event is sent toonDeath()
when your robot dies.Robots that implement Droid have no scanner, but an extra 20 life/energy.The superclass of all Robocode events.A prebuilt condition you can use that indicates your gun has finished turning.A HitByBulletEvent is sent toonHitByBullet()
when your robot has been hit by a bullet.A HitRobotEvent is sent toonHitRobot()
when your robot collides with another robot.A HitWallEvent is sent toonHitWall()
when you collide a wall.This is the simplest robot type, which is simpler than theRobot
andAdvancedRobot
classes.Super class of all events that originates from the keyboard.A KeyPressedEvent is sent toonKeyPressed()
when a key has been pressed on the keyboard.A KeyReleasedEvent is sent toonKeyReleased()
when a key has been released on the keyboard.A KeyTypedEvent is sent toonKeyTyped()
when a key has been typed (pressed and released) on the keyboard.A MessageEvent is sent toonMessageReceived()
when a teammate sends a message to your robot.A MouseClickedEvent is sent toonMouseClicked()
when the mouse is clicked inside the battle view.A MouseDraggedEvent is sent toonMouseDragged()
when the mouse is dragged inside the battle view.A MouseEnteredEvent is sent toonMouseEntered()
when the mouse has entered the battle view.Super class of all events that originates from the mouse.A MouseExitedEvent is sent toonMouseExited()
when the mouse has exited the battle view.A MouseMovedEvent is sent toonMouseMoved()
when the mouse has moved inside the battle view.A MousePressedEvent is sent toonMousePressed()
when the mouse is pressed inside the battle view.A MouseReleasedEvent is sent toonMouseReleased()
when the mouse is released inside the battle view.A MouseWheelMovedEvent is sent toonMouseWheelMoved()
when the mouse wheel is rotated inside the battle view.A prebuilt condition you can use that indicates your robot has finished moving.This event occurs when your robot should paint, where theonPaint()
is called on your robot.A prebuilt condition you can use that indicates your radar has finished turning.This advanced robot type allows you to set a rate for each of the robot's movements.Robocode - A programming game involving battling AI tanks.
Copyright (c) 2001-2019 Mathew A.RobocodeFileOutputStream is similar to aFileOutputStream
and is used for streaming/writing data out to a file, which you got previously by callinggetDataFile()
.RobocodeFileWriter is similar to aFileWriter
and is used for writing data out to a file, which you got by callinggetDataFile()
.The basic robot class that you will extend to create your own robots.This event is sent toonRobotDeath()
when another robot (not your robot) dies.Contains the status of a robot for a specific time/turn returned byStatusEvent.getStatus()
.A RoundEndedEvent is sent toonRoundEnded()
when a round has ended.Constants and methods that defines the rules of Robocode.A ScannedRobotEvent is sent toonScannedRobot()
when you scan a robot.A SkippedTurnEvent is sent toonSkippedTurn()
when your robot is forced to skipping a turn.This event is sent toonStatus()
every turn in a battle to provide the status of the robot.An advanced type of robot that supports sending messages between team mates in a robot team.A prebuilt condition you can use that indicates your robot has finished turning.This event is sent toonWin()
when your robot wins the round in a battle.