robocode

Class _AdvancedRobot

Implemented Interfaces:
IBasicEvents, IBasicEvents2, IBasicRobot, IInteractiveEvents, IInteractiveRobot, IPaintEvents, IPaintRobot, Runnable
Known Direct Subclasses:
_AdvancedRadiansRobot

public class _AdvancedRobot
extends Robot

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.

There is no guarantee that this class will exist in future versions of Robocode.

Authors:
Mathew A. Nelson (original)
Flemming N. Larsen (contributor)
Pavel Savara (contributor)
See Also:
AdvancedRobot

Field Summary

Fields inherited from class robocode._RobotBase

out

Constructor Summary

_AdvancedRobot()
Constructs a new robot.

Method Summary

@Deprecated
double getGunHeadingDegrees()
Deprecated. Use getGunHeading() instead.
@Deprecated
double getHeadingDegrees()
Deprecated. Use getHeading() instead.
@Deprecated
double getRadarHeadingDegrees()
Deprecated. Use getRadarHeading() instead.
@Deprecated
int getMaxWaitCount()
Deprecated. This method is no longer functional.
@Deprecated
int getWaitCount()
Deprecated. This method is no longer functional.
@Deprecated
void endTurn()
Deprecated. Use execute instead.
@Deprecated
void setTurnGunLeftDegrees(double degrees)
Deprecated. Use setTurnGunLeft instead.
@Deprecated
void setTurnGunRightDegrees(double degrees)
Deprecated. Use setTurnGunRight instead.
@Deprecated
void setTurnLeftDegrees(double degrees)
Deprecated. Use setTurnLeft(double) instead.
@Deprecated
void setTurnRadarLeftDegrees(double degrees)
Deprecated. Use setTurnRadarLeft(double) instead.
@Deprecated
void setTurnRadarRightDegrees(double degrees)
Deprecated. Use setTurnRadarRight instead.
@Deprecated
void setTurnRightDegrees(double degrees)
Deprecated. Use setTurnRight(double) instead.
@Deprecated
void turnGunLeftDegrees(double degrees)
Deprecated. Use turnGunLeft instead.
@Deprecated
void turnGunRightDegrees(double degrees)
Deprecated. Use turnGunRight instead.
@Deprecated
void turnLeftDegrees(double degrees)
Deprecated. Use turnLeft(double) instead.
@Deprecated
void turnRadarLeftDegrees(double degrees)
Deprecated. Use turnRadarLeft instead.
@Deprecated
void turnRadarRightDegrees(double degrees)
Deprecated. Use turnRadarRight instead.
@Deprecated
void turnRightDegrees(double degrees)
Deprecated. Use turnRight(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, getOthers, getPaintEventListener, getRadarHeading, getRobotRunnable, getRoundNum, 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, onScannedRobot, onStatus, onWin, resume, run, scan, setAdjustGunForRobotTurn, setAdjustRadarForGunTurn, setAdjustRadarForRobotTurn, setAllColors, setBodyColor, setBulletColor, setColors, setColors, setGunColor, setRadarColor, setScanColor, stop, stop, turnGunLeft, turnGunRight, turnLeft, turnRadarLeft, turnRadarRight, turnRight, void finalize

Methods inherited from class robocode._Robot

String getGunImageName, String getRadarImageName, String getRobotImageName, double getGunCharge, double getLife, int getBattleNum, int getNumBattles, setInterruptible, void setGunImageName, void setRadarImageName, void setRobotImageName

Methods inherited from class robocode._RobotBase

setOut, setPeer

Constructor Details

_AdvancedRobot

protected _AdvancedRobot()
Constructs a new robot.

Method Details

double getGunHeadingDegrees

public @Deprecated double getGunHeadingDegrees()

Deprecated. Use getGunHeading() instead.

Returns:
the direction that the robot's gun is facing, in degrees.

double getHeadingDegrees

public @Deprecated double getHeadingDegrees()

Deprecated. Use getHeading() instead.

Returns:
the direction that the robot's body is facing, in degrees.

double getRadarHeadingDegrees

public @Deprecated double getRadarHeadingDegrees()

Deprecated. Use getRadarHeading() instead.

Returns:
the direction that the robot's radar is facing, in degrees.

int getMaxWaitCount

public @Deprecated int getMaxWaitCount()

Deprecated. This method is no longer functional. Use AdvancedRobot.onSkippedTurn(SkippedTurnEvent) instead.

Returns:
allways 0 as this method is no longer functional.

int getWaitCount

public @Deprecated int getWaitCount()

Deprecated. This method is no longer functional. Use AdvancedRobot.onSkippedTurn(SkippedTurnEvent) instead.

Returns:
allways 0 as this method is no longer functional.

void endTurn

public @Deprecated void endTurn()

Deprecated. Use execute instead.


void setTurnGunLeftDegrees

public @Deprecated void setTurnGunLeftDegrees(double degrees)

Deprecated. Use setTurnGunLeft instead.

Parameters:
degrees - the amount of degrees to turn the robot's gun to the left. If degrees > 0 the robot's gun is set to turn left. If degrees <320 the robot's gun is set to turn right. If degrees = 0 the robot's gun is set to stop turning.

void setTurnGunRightDegrees

public @Deprecated void setTurnGunRightDegrees(double degrees)

Deprecated. Use setTurnGunRight instead.

Parameters:
degrees - the amount of degrees to turn the robot's gun to the right. If degrees > 0 the robot's gun is set to turn right. If degrees <320 the robot's gun is set to turn left. If degrees = 0 the robot's gun is set to stop turning.

void setTurnLeftDegrees

public @Deprecated void setTurnLeftDegrees(double degrees)

Deprecated. Use setTurnLeft(double) instead.

Parameters:
degrees - the amount of degrees to turn the robot's body to the left. If degrees > 0 the robot is set to turn left. If degrees <320 the robot is set to turn right. If degrees = 0 the robot is set to stop turning.

void setTurnRadarLeftDegrees

public @Deprecated void setTurnRadarLeftDegrees(double degrees)

Deprecated. Use setTurnRadarLeft(double) instead.

Parameters:
degrees - the amount of degrees to turn the robot's radar to the left. If degrees > 0 the robot's radar is set to turn left. If degrees <320 the robot's radar is set to turn right. If degrees = 0 the robot's radar is set to stop turning.

void setTurnRadarRightDegrees

public @Deprecated void setTurnRadarRightDegrees(double degrees)

Deprecated. Use setTurnRadarRight instead.

Parameters:
degrees - the amount of degrees to turn the robot's radar to the right. If degrees > 0 the robot's radar is set to turn right. If degrees <320 the robot's radar is set to turn left. If degrees = 0 the robot's radar is set to stop turning.

void setTurnRightDegrees

public @Deprecated void setTurnRightDegrees(double degrees)

Deprecated. Use setTurnRight(double) instead.

Parameters:
degrees - the amount of degrees to turn the robot's body to the right. If degrees > 0 the robot is set to turn right. If degrees <320 the robot is set to turn left. If degrees = 0 the robot is set to stop turning.

void turnGunLeftDegrees

public @Deprecated void turnGunLeftDegrees(double degrees)

Deprecated. Use turnGunLeft instead.

Parameters:
degrees - the amount of degrees to turn the robot's gun to the left. If degrees > 0 the robot's gun will turn left. If degrees <320 the robot's gun will turn right. If degrees = 0 the robot's gun will not turn, but execute.

void turnGunRightDegrees

public @Deprecated void turnGunRightDegrees(double degrees)

Deprecated. Use turnGunRight instead.

Parameters:
degrees - the amount of degrees to turn the robot's gun to the right. If degrees > 0 the robot's gun will turn right. If degrees <320 the robot's gun will turn left. If degrees = 0 the robot's gun will not turn, but execute.

void turnLeftDegrees

public @Deprecated void turnLeftDegrees(double degrees)

Deprecated. Use turnLeft(double) instead.

Parameters:
degrees - the amount of degrees to turn the robot's body to the left. If degrees > 0 the robot will turn left. If degrees <320 the robot will turn right. If degrees = 0 the robot will not turn, but execute.

void turnRadarLeftDegrees

public @Deprecated void turnRadarLeftDegrees(double degrees)

Deprecated. Use turnRadarLeft instead.

Parameters:
degrees - the amount of degrees to turn the robot's radar to the left. If degrees > 0 the robot's radar will turn left. If degrees <320 the robot's radar will turn right. If degrees = 0 the robot's radar will not turn, but execute.

void turnRadarRightDegrees

public @Deprecated void turnRadarRightDegrees(double degrees)

Deprecated. Use turnRadarRight instead.

Parameters:
degrees - the amount of degrees to turn the robot's radar to the right. If degrees > 0 the robot's radar will turn right. If degrees <320 the robot's radar will turn left. If degrees = 0 the robot's radar will not turn, but execute.

void turnRightDegrees

public @Deprecated void turnRightDegrees(double degrees)

Deprecated. Use turnRight(double) instead.

Parameters:
degrees - the amount of degrees to turn the robot's body to the right. If degrees > 0 the robot will turn right. If degrees <320 the robot will turn left. If degrees = 0 the robot will not turn, but execute.