|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
IBattleListener.onBattleFinished() instead.
This method is called when a battle has been aborted.
IBattleListener.IBattleListener.onBattleCompleted() instead.
This method is called when a battle completes successfully.
onBattleCompleted() when the battle is completed successfully and results are available.onBattleEnded() when the battle is ended.onBattleError() when an error message is sent from the game in the during the battle.BattleSpecification.onBattleFinished() when the battle is finished.IBattleListener.onBattleMessage() instead.
This method is called when the game logs messages that is normally
written out to the console.
onBattleMessage() when an informal message is sent from the game in the during the battle.onBattlePaused() when a battle has been paused.BattleEndedEvent.getResults()
when a battle has ended.onBattleResumed() when a battle has been resumed (after having been paused).BattleStartedEvent.getBattleRules() when a battle is started and
BattleCompletedEvent.getBattleRules()
when a battle is completed.RobocodeEngine.onBattleStarted() when a new battle is started.Bullet object
onBulletHitBullet when one of your bullets has hit another bullet.BulletHitEvent.
onBulletHit
when one of your bullets has hit another robot.BulletHitEvent.
onBulletMissed when one of your bullets has missed, i.e. when the bullet has
reached the border of the battlefield.BulletMissedEvent.
waitFor(Condition) and custom events for an AdvancedRobot.BattleResults into an array of RobotResults.
onCustomEvent() when a custom condition is met.onDeath() when your
robot dies.execute instead.
getRoundNum() instead.
HitRobotEvent.getBearing() instead.
HitWallEvent.getBearing() instead.
get* call like e.g.
RobocodeFileOutputStream or
RobocodeFileWriter.
RobocodeFileOutputStream or
RobocodeFileWriter.
RobocodeFileOutputStream or RobocodeFileWriter.
RobocodeFileOutputStream or RobocodeFileWriter.
getGunHeat() instead.
getGunHeading() instead.
getHeading() instead.
HitByBulletEvent.getHeading() instead.
null if it
does not come from a JAR file (could be class files instead).
getEnergy() instead.
BulletHitEvent.getEnergy() instead.
ScannedRobotEvent.getEnergy() instead.
AdvancedRobot.onSkippedTurn(SkippedTurnEvent) instead.
getNumRounds() instead.
getRadarHeading() instead.
ScannedRobotEvent.getBearing() instead.
ScannedRobotEvent.getBearing() instead.
ScannedRobotEvent.getBearingRadians() instead.
ScannedRobotEvent.getDistance() instead.
ScannedRobotEvent.getHeading() instead.
ScannedRobotEvent.getHeading() instead.
ScannedRobotEvent.getHeadingRadians() instead.
BulletHitEvent.getEnergy() instead.
ScannedRobotEvent.getEnergy() instead.
BulletHitEvent.getName() instead.
HitRobotEvent.getName() instead.
RobotDeathEvent.getName() instead.
ScannedRobotEvent.getName() instead.
run() method of your robot, where the program
of your robot is implemented.
run() method of your robot, where the program
of your robot is implemented.
ScannedRobotEvent.getVelocity() instead.
Robot.getNumRounds() - 1) of
the battle.
IBasicRobotPeer.getNumRounds() - 1)
in the battle.
RobotStatus.getNumRounds() - 1) of
the battle.
RobotStatus at the time defined by Robot.getTime().
null there is no
teammates.
null there is no
teammates.
null if
the bullet has not hit a robot.
AdvancedRobot.onSkippedTurn(SkippedTurnEvent) instead.
onHitByBullet() when your robot has been hit by a bullet.onHitRobot()
when your robot collides with another robot.onHitWall()
when you collide a wall.IAdvancedRobot.AdvancedRobot that is able to handle advanced robot events.AdvancedRobot and TeamRobot.IBasicRobot.IBasicEvents interface.IBasicEvents interface.Robot
that is able to receive common robot events, but not interactive events as
with the Robot class.IInteractiveRobot.Robot and AdvancedRobot that is able to
receive interactive events from the keyboard or mouse.JuniorRobot.JuniorRobot.IPaintRobot.Droid.
double values are near to each other.
IPaintRobot or is invoking getGraphics()
Robot,
AdvancedRobot, and TeamRobot.ITeamRobot.TeamRobot
that is able to receive team events.TeamRobot.Robot and
AdvancedRobot classes.onKeyPressed() when a key has been pressed on the keyboard.onKeyReleased() when a key has been released on the keyboard.onKeyTyped() when a key has been typed (pressed and released) on the keyboard.onMessageReceived() when a teammate sends a message to your robot.onMouseClicked() when the mouse is clicked inside the battle view.onMouseDragged() when the mouse is dragged inside the battle view.onMouseEntered() when the mouse has entered the battle view.onMouseExited() when the mouse has exited the battle view.onMouseMoved() when the mouse has moved inside the battle view.onMousePressed() when the mouse is pressed inside the battle view.onMouseReleased() when the mouse is released inside the battle view.onMouseWheelMoved() when the mouse wheel is rotated inside the battle view.onPaint() is called on your robot.AdvancedRobot.addCustomEvent(Condition).
IAdvancedRobotPeer.addCustomEvent(Condition).
Robot.stop(), if any.
IStandardRobotPeer.stop(boolean),
if any.
RobocodeEngine.RobocodeEngine(File) and
addBattleListener() instead.
Creates a new RobocodeEngine for controlling Robocode.
RobocodeEngine.RobocodeEngine() and
addBattleListener() instead.
Creates a new RobocodeEngine for controlling Robocode. The JAR file of
Robocode is used to determine the root directory of Robocode.
FileOutputStream
and is used for streaming/writing data out to a file, which you got
previously by calling getDataFile().FileWriter and is used for
writing data out to a file, which you got by calling getDataFile().IBattleListener instead.
A listener interface for receiving callbacks from the RobocodeEngine.onRobotDeath()
when another robot (not your robot) dies.RobotSpecification and BattleResults.
RobocodeEngine.getLocalRepository().StatusEvent.getStatus().onRoundEnded() when the current round of a battle has ended.onRoundEnded() when a round has ended.onRoundStarted() when a new round in a battle is started.onScannedRobot() when you scan a robot.ScannedRobotEvent.ScannedRobotEvent(String, double, double, double, double, double) instead.
set* call like e.g.
AdvancedRobot, and will no longer function in
the Robot class.
System.err.
System.out.
Rules.MAX_TURN_RATE (10 degress/turn).
Rules.MAX_TURN_RATE (10 degress/turn).
Rules.MAX_VELOCITY (8 pixels/turn).
Rules.MAX_VELOCITY (8 pixels/turn).
stop()
or AdvancedRobot.setStop(), if any.
stop(boolean) or
IAdvancedRobotPeer.setStop(boolean), if any.
stop(), but returns immediately, and
will not execute until you call AdvancedRobot.execute() or take an action that
executes.
stop(boolean), but
returns immediately, and will not execute until you call
AdvancedRobot.execute() or take an action that executes.
stop(boolean), but returns immediately, and will not execute until you
call execute() or take an action that executes.
setTurnGunLeft instead.
setTurnGunRight instead.
setTurnLeft(double) instead.
setTurnRadarLeft(double) instead.
setTurnRadarRight instead.
setTurnRight(double) instead.
onSkippedTurn() when your robot is forced to skipping a turn.onStatus() every
turn in a battle to provide the status of the robot.RobotStatus.
Robot.resume().
Robot.resume().
IStandardRobotPeer.resume().
onTurnEnded() when the current turn in a battle round is ended.turnGunLeft instead.
turnGunRight instead.
turnLeft(double) instead.
turnRadarLeft instead.
turnRadarRight
instead.
turnRight(double) instead.
onTurnStarted() when a new turn in a battle round is started.Condition.test() returns true.
Condition.test() returns true.
onWin() when your robot
wins the round in a battle.AdvancedRobot.AdvancedRobot.Robot.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||