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