|
|||||||||
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
.
Line2D.Double
.
Line2D.Double
intersect with each other.
waitFor(Condition)
and custom events for an AdvancedRobot
.BattleResults
into an array of RobotResults
.
NavalBattleResults
into an array of ShipResults
.
AffineTransform
class.ComponentManager
.
onCustomEvent()
when a custom condition is met.onDeath()
when your
robot dies.polygon
.
execute
instead.
WeaponComponent.fire()
AffineTransform
from the given values.
AffineTransform
for the ShipPeer.
BlindSpot
getRoundNum()
instead.
HitRobotEvent.getBearing()
instead.
HitWallEvent.getBearing()
instead.
BlindSpot
of the specified WeaponComponent
get*
call like e.g.
RobocodeFileOutputStream
or
RobocodeFileWriter
.
RobocodeFileOutputStream
or
RobocodeFileWriter
.
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.
Point2D
object.
Point2D
object.
Point2D
object.
Coordinates.getPivot(ITransformable, double, double)
Coordinates.getPivotTransform(ITransformable, double, double, double)
AffineTransform
for the specified coordinates on the peer.
AffineTransform
for the
given values.
polygon
that resembles the given
rectangle
,
when the given transformation
is applied.
Polygon
that resembles the given
Arc2D
,
when the given AffineTransform
is applied.
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.
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.
BorderSentry
that defines the how
far a BorderSentry is allowed to move from the border edges measured in units.
BorderSentry
that defines the how
far a BorderSentry is allowed to move from the border edges measured in units.
BorderSentry
that defines the how
far a BorderSentry is allowed to move from the border edges measured in units.
BorderSentry
that defines the how
far a BorderSentry is allowed to move from the border edges measured in units.
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.
null
if
the mine has not hit a ship.
AdvancedRobot.onSkippedTurn(SkippedTurnEvent)
instead.
onHitByBullet()
when your robot has been hit by a bullet.onHitByMine
when you get hit by a mine (Which can be your own).HitByBulletEvent
.
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.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
.line
is inside the polygon of the peer.
peer
is inside the scan arc.
projectile
is inside the scan arc.
rectangle
and
line
intersect with each other.
rectangles
intersect with each other.
line
intersects with the polygon
.
polygons
intersect with each other.
IPaintRobot
.isAdvancedRobot
.
Droid
.
Droid
.
JuniorRobot
.
double
values are near to each other.
IPaintRobot
or is invoking getGraphics()
IPaintRobot
or is invoking getGraphics()
BorderSentry
.
isShip
.
Robot
,
AdvancedRobot
, and TeamRobot
.ComponentManager
.
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.Ship.placeMine(double)
and all Mine related eventsMine
object
MineComponent
MineComponent
MineComponent
onMineHit
when one of your mines has hit a Ship.MineHitEvent
.
onMineHitMine
when one of your mines has hit another mine.MineHitMineEvent
.
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.BattleEndedEvent.getResults()
when a battle has ended.BattleEndedEvent.getResults()
when a battle has ended.onScannedShip(ScannedShipEvent event)
instead.
onPaint()
is called on your robot.AdvancedRobot.addCustomEvent(Condition)
.
IAdvancedRobotPeer.addCustomEvent(Condition)
.
Ship.addCustomEvent(Condition)
.
Robot.stop()
, if any.
IStandardRobotPeer.stop(boolean)
,
if any.
Ship.stop()
, 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, boolean)
instead.
ScannedRobotEvent.ScannedRobotEvent(String, double, double, double, double, double, boolean)
instead.
ScannedRobotEvent
WeaponComponent
Only works for WeaponComponents.
set*
call like e.g.
fireComponent()
This function only executes once the execute()
function has been called, instead.
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()
or Ship.setStop()
, 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.
stop()
, but returns immediately, and
will not execute until you call Ship.execute()
or take an action that
executes.
stop(boolean)
, but
returns immediately, and will not execute until you call
Ship.execute()
or take an action that executes.
setTurnGunLeft
instead.
setTurnGunRight
instead.
setTurnLeft(double)
instead.
setTurnRadarLeft(double)
instead.
setTurnRadarRight
instead.
setTurnRight(double)
instead.
Ship
which acts far more like a ship.RobotSpecification
and NavalBattleResults
.
StatusEvent.getStatus()
.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()
.
Ship.resume()
.
Ship.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
.
Condition.test()
returns true
.
onWin()
when your robot
wins the round in a battle.AdvancedRobot
.AdvancedRobot
.Robot
.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |