|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
onBattleEnded()
when the battle is ended.BattleSpecification
.BattleEndedEvent.getResults()
when a battle has ended.RobocodeEngine
.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
.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
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.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
.double
values are near to each other.
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.
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()
.RobocodeEngine
.onRobotDeath()
when another robot (not your robot) dies.RobocodeListener#battleComplete()
event handler.RobotSpecification
and BattleResults
.
RobocodeEngine.getLocalRepository()
orStatusEvent.getStatus()
.onScannedRobot()
when you scan a robot.set*
call like e.g.
AdvancedRobot
, and will no longer function in
the Robot
class.
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()
.
turnGunLeft
instead.
turnGunRight
instead.
turnLeft(double)
instead.
turnRadarLeft
instead.
turnRadarRight
instead.
turnRight(double)
instead.
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 |