|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
onBulletHitBullet
when one of your bullets hits another bullet.onBulletHit
when one of your bullets hits another robot.onBulletMissed
when one of your bullets has misses.waitFor
and
custom events for a AdvancedRobot
. onCustomEvent
when a custom condition is met. onDeath
when your robot dies.Robot.onHitByBullet(robocode.HitByBulletEvent)
when you are hit by a bullet.
Robot.onHitRobot(robocode.HitRobotEvent)
when you collide with another robot
You can use the information contained in this event to determine what to do.Robot.onHitWall(robocode.HitWallEvent)
when you collide a wall.
TeamRobot.onMessageReceived(robocode.MessageEvent)
when a teammate sends you a message.
onRobotDeath
when another robot (not you) dies.Robot.onScannedRobot(robocode.ScannedRobotEvent)
when you scan a robot.
AdvancedRobot.onSkippedTurn(robocode.SkippedTurnEvent)
when skipping a turn.
stop()
,
but returns immediately, and will not execute until you call 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.
onWin
when your robot wins the round.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |