Package robocode
Class _AdvancedRobot
java.lang.Object
robocode._RobotBase
robocode._Robot
robocode.Robot
robocode._AdvancedRobot
- All Implemented Interfaces:
Runnable,IBasicEvents,IBasicEvents2,IBasicEvents3,IBasicRobot,IInteractiveEvents,IInteractiveRobot,IPaintEvents,IPaintRobot
- Direct Known Subclasses:
_AdvancedRadiansRobot
This class is used by the system, as well as being a placeholder for all deprecated
(meaning, you should not use them) calls for
AdvancedRobot.
You should create a AdvancedRobot instead.
- Author:
- Mathew A. Nelson (original), Flemming N. Larsen (contributor), Pavel Savara (contributor)
- See Also:
-
Field Summary
Fields inherited from class robocode._RobotBase
out -
Method Summary
Modifier and TypeMethodDescriptionvoidendTurn()Deprecated.doubleDeprecated.UsegetGunHeading()instead.doubleDeprecated.UsegetHeading()instead.intDeprecated.This method is no longer functional.doubleDeprecated.UsegetRadarHeading()instead.intDeprecated.This method is no longer functional.voidsetTurnGunLeftDegrees(double degrees) Deprecated.UsesetTurnGunLeftinstead.voidsetTurnGunRightDegrees(double degrees) Deprecated.UsesetTurnGunRightinstead.voidsetTurnLeftDegrees(double degrees) Deprecated.UsesetTurnLeft(double)instead.voidsetTurnRadarLeftDegrees(double degrees) Deprecated.UsesetTurnRadarLeft(double)instead.voidsetTurnRadarRightDegrees(double degrees) Deprecated.UsesetTurnRadarRightinstead.voidsetTurnRightDegrees(double degrees) Deprecated.UsesetTurnRight(double)instead.voidturnGunLeftDegrees(double degrees) Deprecated.UseturnGunLeftinstead.voidturnGunRightDegrees(double degrees) Deprecated.UseturnGunRightinstead.voidturnLeftDegrees(double degrees) Deprecated.UseturnLeft(double)instead.voidturnRadarLeftDegrees(double degrees) Deprecated.UseturnRadarLeftinstead.voidturnRadarRightDegrees(double degrees) Deprecated.UseturnRadarRightinstead.voidturnRightDegrees(double degrees) Deprecated.UseturnRight(double)instead.Methods inherited from class robocode.Robot
ahead, back, doNothing, fire, fireBullet, getBasicEventListener, getBattleFieldHeight, getBattleFieldWidth, getEnergy, getGraphics, getGunCoolingRate, getGunHeading, getGunHeat, getHeading, getHeight, getInteractiveEventListener, getName, getNumRounds, getNumSentries, getOthers, getPaintEventListener, getRadarHeading, getRobotRunnable, getRoundNum, getSentryBorderSize, getTime, getVelocity, getWidth, getX, getY, onBattleEnded, onBulletHit, onBulletHitBullet, onBulletMissed, onDeath, onHitByBullet, onHitRobot, onHitWall, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelMoved, onPaint, onRobotDeath, onRoundEnded, onScannedRobot, onStatus, onWin, resume, run, scan, setAdjustGunForRobotTurn, setAdjustRadarForGunTurn, setAdjustRadarForRobotTurn, setAllColors, setBodyColor, setBulletColor, setColors, setColors, setDebugProperty, setGunColor, setRadarColor, setScanColor, stop, stop, turnGunLeft, turnGunRight, turnLeft, turnRadarLeft, turnRadarRight, turnRightMethods inherited from class robocode._Robot
getBattleNum, getGunCharge, getGunImageName, getLife, getNumBattles, getRadarImageName, getRobotImageName, setGunImageName, setInterruptible, setRadarImageName, setRobotImageNameMethods inherited from class robocode._RobotBase
finalize, setOut, setPeerMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface robocode.robotinterfaces.IBasicRobot
setOut, setPeer
-
Method Details
-
setTurnGunLeftDegrees
Deprecated.UsesetTurnGunLeftinstead.- Parameters:
degrees- the amount of degrees to turn the robot's gun to the left. Ifdegrees> 0 the robot's gun is set to turn left. Ifdegreesinvalid input: '<' 0 the robot's gun is set to turn right. Ifdegrees= 0 the robot's gun is set to stop turning.
-
setTurnGunRightDegrees
Deprecated.UsesetTurnGunRightinstead.- Parameters:
degrees- the amount of degrees to turn the robot's gun to the right. Ifdegrees> 0 the robot's gun is set to turn right. Ifdegreesinvalid input: '<' 0 the robot's gun is set to turn left. Ifdegrees= 0 the robot's gun is set to stop turning.
-
turnRadarRightDegrees
Deprecated.UseturnRadarRightinstead.- Parameters:
degrees- the amount of degrees to turn the robot's radar to the right. Ifdegrees> 0 the robot's radar will turn right. Ifdegreesinvalid input: '<' 0 the robot's radar will turn left. Ifdegrees= 0 the robot's radar will not turn, but execute.
-
setTurnRightDegrees
Deprecated.UsesetTurnRight(double)instead.- Parameters:
degrees- the amount of degrees to turn the robot's body to the right. Ifdegrees> 0 the robot is set to turn right. Ifdegreesinvalid input: '<' 0 the robot is set to turn left. Ifdegrees= 0 the robot is set to stop turning.
-
setTurnRadarLeftDegrees
Deprecated.UsesetTurnRadarLeft(double)instead.- Parameters:
degrees- the amount of degrees to turn the robot's radar to the left. Ifdegrees> 0 the robot's radar is set to turn left. Ifdegreesinvalid input: '<' 0 the robot's radar is set to turn right. Ifdegrees= 0 the robot's radar is set to stop turning.
-
setTurnLeftDegrees
Deprecated.UsesetTurnLeft(double)instead.- Parameters:
degrees- the amount of degrees to turn the robot's body to the left. Ifdegrees> 0 the robot is set to turn left. Ifdegreesinvalid input: '<' 0 the robot is set to turn right. Ifdegrees= 0 the robot is set to stop turning.
-
getHeadingDegrees
Deprecated.UsegetHeading()instead.- Returns:
- the direction that the robot's body is facing, in degrees.
-
turnLeftDegrees
Deprecated.UseturnLeft(double)instead.- Parameters:
degrees- the amount of degrees to turn the robot's body to the left. Ifdegrees> 0 the robot will turn left. Ifdegreesinvalid input: '<' 0 the robot will turn right. Ifdegrees= 0 the robot will not turn, but execute.
-
turnRightDegrees
Deprecated.UseturnRight(double)instead.- Parameters:
degrees- the amount of degrees to turn the robot's body to the right. Ifdegrees> 0 the robot will turn right. Ifdegreesinvalid input: '<' 0 the robot will turn left. Ifdegrees= 0 the robot will not turn, but execute.
-
endTurn
Deprecated.Useexecuteinstead. -
getGunHeadingDegrees
Deprecated.UsegetGunHeading()instead.- Returns:
- the direction that the robot's gun is facing, in degrees.
-
getRadarHeadingDegrees
Deprecated.UsegetRadarHeading()instead.- Returns:
- the direction that the robot's radar is facing, in degrees.
-
getWaitCount
Deprecated.This method is no longer functional. UseAdvancedRobot.onSkippedTurn(SkippedTurnEvent)instead.- Returns:
- allways
0as this method is no longer functional.
-
setTurnRadarRightDegrees
Deprecated.UsesetTurnRadarRightinstead.- Parameters:
degrees- the amount of degrees to turn the robot's radar to the right. Ifdegrees> 0 the robot's radar is set to turn right. Ifdegreesinvalid input: '<' 0 the robot's radar is set to turn left. Ifdegrees= 0 the robot's radar is set to stop turning.
-
turnGunLeftDegrees
Deprecated.UseturnGunLeftinstead.- Parameters:
degrees- the amount of degrees to turn the robot's gun to the left. Ifdegrees> 0 the robot's gun will turn left. Ifdegreesinvalid input: '<' 0 the robot's gun will turn right. Ifdegrees= 0 the robot's gun will not turn, but execute.
-
turnGunRightDegrees
Deprecated.UseturnGunRightinstead.- Parameters:
degrees- the amount of degrees to turn the robot's gun to the right. Ifdegrees> 0 the robot's gun will turn right. Ifdegreesinvalid input: '<' 0 the robot's gun will turn left. Ifdegrees= 0 the robot's gun will not turn, but execute.
-
turnRadarLeftDegrees
Deprecated.UseturnRadarLeftinstead.- Parameters:
degrees- the amount of degrees to turn the robot's radar to the left. Ifdegrees> 0 the robot's radar will turn left. Ifdegreesinvalid input: '<' 0 the robot's radar will turn right. Ifdegrees= 0 the robot's radar will not turn, but execute.
-
getMaxWaitCount
Deprecated.This method is no longer functional. UseAdvancedRobot.onSkippedTurn(SkippedTurnEvent)instead.- Returns:
- allways
0as this method is no longer functional.
-
executeinstead.