|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode._RobotBase
robocode._Robot
robocode.Robot
robocode._AdvancedRobot
robocode._AdvancedRadiansRobot
public class _AdvancedRadiansRobot
This class is used by the system as a placeholder for all *Radians calls in
AdvancedRobot
. You may refer to this class for documentation only.
AdvancedRobot
instead.
There is no guarantee that this class will exist in future versions of Robocode.
(The Radians methods themselves will continue work, however).
AdvancedRobot
Field Summary |
---|
Fields inherited from class robocode._RobotBase |
---|
out |
Constructor Summary | |
---|---|
protected |
_AdvancedRadiansRobot()
|
Method Summary | |
---|---|
double |
getGunHeadingRadians()
Returns the direction that the robot's gun is facing, in radians. |
double |
getGunTurnRemainingRadians()
Returns the angle remaining in the gun's turn, in radians. |
double |
getHeadingRadians()
Returns the direction that the robot's body is facing, in radians. |
double |
getRadarHeadingRadians()
Returns the direction that the robot's radar is facing, in radians. |
double |
getRadarTurnRemainingRadians()
Returns the angle remaining in the radar's turn, in radians. |
double |
getTurnRemainingRadians()
Returns the angle remaining in the robot's turn, in radians. |
void |
setTurnGunLeftRadians(double radians)
Sets the robot's gun to turn left by radians when the next execution takes place. |
void |
setTurnGunRightRadians(double radians)
Sets the robot's gun to turn right by radians when the next execution takes place. |
void |
setTurnLeftRadians(double radians)
Sets the robot's body to turn left by radians when the next execution takes place. |
void |
setTurnRadarLeftRadians(double radians)
Sets the robot's radar to turn left by radians when the next execution takes place. |
void |
setTurnRadarRightRadians(double radians)
Sets the robot's radar to turn right by radians when the next execution takes place. |
void |
setTurnRightRadians(double radians)
Sets the robot's body to turn right by radians when the next execution takes place. |
void |
turnGunLeftRadians(double radians)
Immediately turns the robot's gun to the left by radians. |
void |
turnGunRightRadians(double radians)
Immediately turns the robot's gun to the right by radians. |
void |
turnLeftRadians(double radians)
Immediately turns the robot's body to the left by radians. |
void |
turnRadarLeftRadians(double radians)
Immediately turns the robot's radar to the left by radians. |
void |
turnRadarRightRadians(double radians)
Immediately turns the robot's radar to the right by radians. |
void |
turnRightRadians(double radians)
Immediately turns the robot's body to the right by radians. |
Methods inherited from class robocode._Robot |
---|
getBattleNum, getGunCharge, getGunImageName, getLife, getNumBattles, getRadarImageName, getRobotImageName, setGunImageName, setInterruptible, setRadarImageName, setRobotImageName |
Methods inherited from class robocode._RobotBase |
---|
setOut, setPeer |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface robocode.robotinterfaces.IBasicRobot |
---|
setOut, setPeer |
Methods inherited from interface robocode.robotinterfaces.IBasicRobot |
---|
setOut, setPeer |
Constructor Detail |
---|
protected _AdvancedRadiansRobot()
Method Detail |
---|
public double getHeadingRadians()
_AdvancedRobot.getHeadingDegrees()
,
getGunHeadingRadians()
,
getRadarHeadingRadians()
public void setTurnLeftRadians(double radians)
// Set the robot to turn 180 degrees to the left setTurnLeftRadians(Math.PI); // Set the robot to turn 90 degrees to the right instead of left // (overrides the previous order) setTurnLeftRadians(-Math.PI / 2); ... // Executes the last setTurnLeftRadians() execute();
radians
- the amount of radians to turn the robot's body to the left.
If radians
> 0 the robot is set to turn left.
If radians
< 0 the robot is set to turn right.
If radians
= 0 the robot is set to stop turning.setTurnLeft(double)
,
Robot.turnLeft(double)
,
turnLeftRadians(double)
,
Robot.turnRight(double)
,
turnRightRadians(double)
,
setTurnRight(double)
,
setTurnRightRadians(double)
public void setTurnRightRadians(double radians)
// Set the robot to turn 180 degrees to the right setTurnRightRadians(Math.PI); // Set the robot to turn 90 degrees to the left instead of right // (overrides the previous order) setTurnRightRadians(-Math.PI / 2); ... // Executes the last setTurnRightRadians() execute();
radians
- the amount of radians to turn the robot's body to the right.
If radians
> 0 the robot is set to turn right.
If radians
< 0 the robot is set to turn left.
If radians
= 0 the robot is set to stop turning.setTurnRight(double)
,
Robot.turnRight(double)
,
turnRightRadians(double)
,
Robot.turnLeft(double)
,
turnLeftRadians(double)
,
setTurnLeft(double)
,
setTurnLeftRadians(double)
public void turnLeftRadians(double radians)
// Turn the robot 180 degrees to the left turnLeftRadians(Math.PI); // Afterwards, turn the robot 90 degrees to the right turnLeftRadians(-Math.PI / 2);
radians
- the amount of radians to turn the robot's body to the left.
If radians
> 0 the robot will turn right.
If radians
< 0 the robot will turn left.
If radians
= 0 the robot will not turn, but execute.Robot.turnLeft(double)
,
Robot.turnRight(double)
,
turnRightRadians(double)
,
Robot.turnGunLeft(double)
,
turnGunLeftRadians(double)
,
Robot.turnGunRight(double)
,
turnGunRightRadians(double)
,
Robot.turnRadarLeft(double)
,
turnRadarLeftRadians(double)
,
Robot.turnRadarRight(double)
,
turnRadarRightRadians(double)
,
Robot.setAdjustGunForRobotTurn(boolean)
public void turnRightRadians(double radians)
// Turn the robot 180 degrees to the right turnRightRadians(Math.PI); // Afterwards, turn the robot 90 degrees to the left turnRightRadians(-Math.PI / 2);
radians
- the amount of radians to turn the robot's body to the right.
If radians
> 0 the robot will turn right.
If radians
< 0 the robot will turn left.
If radians
= 0 the robot will not turn, but execute.Robot.turnRight(double)
,
Robot.turnLeft(double)
,
turnLeftRadians(double)
,
Robot.turnGunLeft(double)
,
turnGunLeftRadians(double)
,
Robot.turnGunRight(double)
,
turnGunRightRadians(double)
,
Robot.turnRadarLeft(double)
,
turnRadarLeftRadians(double)
,
Robot.turnRadarRight(double)
,
turnRadarRightRadians(double)
,
Robot.setAdjustGunForRobotTurn(boolean)
public double getGunHeadingRadians()
_AdvancedRobot.getGunHeadingDegrees()
,
getHeadingRadians()
,
getRadarHeadingRadians()
public double getRadarHeadingRadians()
_AdvancedRobot.getRadarHeadingDegrees()
,
getHeadingRadians()
,
getGunHeadingRadians()
public void setTurnGunLeftRadians(double radians)
// Set the gun to turn 180 degrees to the left setTurnGunLeftRadians(Math.PI); // Set the gun to turn 90 degrees to the right instead of left // (overrides the previous order) setTurnGunLeftRadians(-Math.PI / 2); ... // Executes the last setTurnGunLeftRadians() execute();
radians
- the amount of radians to turn the robot's gun to the left.
If radians
> 0 the robot's gun is set to turn left.
If radians
< 0 the robot's gun is set to turn right.
If radians
= 0 the robot's gun is set to stop turning.setTurnGunLeft(double)
,
Robot.turnGunLeft(double)
,
turnGunLeftRadians(double)
,
Robot.turnGunRight(double)
,
turnGunRightRadians(double)
,
setTurnGunRight(double)
,
setTurnGunRightRadians(double)
,
Robot.setAdjustGunForRobotTurn(boolean)
public void setTurnGunRightRadians(double radians)
// Set the gun to turn 180 degrees to the right setTurnGunRightRadians(Math.PI); // Set the gun to turn 90 degrees to the left instead of right // (overrides the previous order) setTurnGunRightRadians(-Math.PI / 2); ... // Executes the last setTurnGunRightRadians() execute();
radians
- the amount of radians to turn the robot's gun to the right.
If radians
> 0 the robot's gun is set to turn left.
If radians
< 0 the robot's gun is set to turn right.
If radians
= 0 the robot's gun is set to stop turning.setTurnGunRight(double)
,
Robot.turnGunRight(double)
,
turnGunRightRadians(double)
,
Robot.turnGunLeft(double)
,
turnGunLeftRadians(double)
,
setTurnGunLeft(double)
,
setTurnGunLeftRadians(double)
,
Robot.setAdjustGunForRobotTurn(boolean)
public void setTurnRadarLeftRadians(double radians)
// Set the radar to turn 180 degrees to the left setTurnRadarLeftRadians(Math.PI); // Set the radar to turn 90 degrees to the right instead of left // (overrides the previous order) setTurnRadarLeftRadians(-Math.PI / 2); ... // Executes the last setTurnRadarLeftRadians() execute();
radians
- the amount of radians to turn the robot's radar to the left.
If radians
> 0 the robot's radar is set to turn left.
If radians
< 0 the robot's radar is set to turn right.
If radians
= 0 the robot's radar is set to stop turning.setTurnRadarLeft(double)
,
Robot.turnRadarLeft(double)
,
turnRadarLeftRadians(double)
,
Robot.turnRadarRight(double)
,
turnRadarRightRadians(double)
,
setTurnRadarRight(double)
,
setTurnRadarRightRadians(double)
,
Robot.setAdjustRadarForRobotTurn(boolean)
,
Robot.setAdjustRadarForGunTurn(boolean)
public void setTurnRadarRightRadians(double radians)
// Set the radar to turn 180 degrees to the right setTurnRadarRightRadians(Math.PI); // Set the radar to turn 90 degrees to the right instead of right // (overrides the previous order) setTurnRadarRightRadians(-Math.PI / 2); ... // Executes the last setTurnRadarRightRadians() execute();
radians
- the amount of radians to turn the robot's radar to the right.
If radians
> 0 the robot's radar is set to turn left.
If radians
< 0 the robot's radar is set to turn right.
If radians
= 0 the robot's radar is set to stop turning.setTurnRadarRight(double)
,
Robot.turnRadarRight(double)
,
turnRadarRightRadians(double)
,
Robot.turnRadarLeft(double)
,
turnRadarLeftRadians(double)
,
setTurnRadarLeft(double)
,
setTurnRadarLeftRadians(double)
,
Robot.setAdjustRadarForRobotTurn(boolean)
,
Robot.setAdjustRadarForGunTurn(boolean)
public void turnGunLeftRadians(double radians)
// Turn the robot's gun 180 degrees to the left turnGunLeftRadians(Math.PI); // Afterwards, turn the robot's gun 90 degrees to the right turnGunLeftRadians(-Math.PI / 2);
radians
- the amount of radians to turn the robot's gun to the left.
If radians
> 0 the robot's gun will turn left.
If radians
< 0 the robot's gun will turn right.
If radians
= 0 the robot's gun will not turn, but execute.Robot.turnGunLeft(double)
,
Robot.turnGunRight(double)
,
turnGunRightRadians(double)
,
Robot.turnLeft(double)
,
turnLeftRadians(double)
,
Robot.turnRight(double)
,
turnRightRadians(double)
,
Robot.turnRadarLeft(double)
,
turnRadarLeftRadians(double)
,
Robot.turnRadarRight(double)
,
turnRadarRightRadians(double)
,
Robot.setAdjustGunForRobotTurn(boolean)
public void turnGunRightRadians(double radians)
// Turn the robot's gun 180 degrees to the right turnGunRightRadians(Math.PI); // Afterwards, turn the robot's gun 90 degrees to the left turnGunRightRadians(-Math.PI / 2);
radians
- the amount of radians to turn the robot's gun to the right.
If radians
> 0 the robot's gun will turn right.
If radians
< 0 the robot's gun will turn left.
If radians
= 0 the robot's gun will not turn, but execute.Robot.turnGunRight(double)
,
Robot.turnGunLeft(double)
,
turnGunLeftRadians(double)
,
Robot.turnLeft(double)
,
turnLeftRadians(double)
,
Robot.turnRight(double)
,
turnRightRadians(double)
,
Robot.turnRadarLeft(double)
,
turnRadarLeftRadians(double)
,
Robot.turnRadarRight(double)
,
turnRadarRightRadians(double)
,
Robot.setAdjustGunForRobotTurn(boolean)
public void turnRadarLeftRadians(double radians)
// Turn the robot's radar 180 degrees to the left turnRadarLeftRadians(Math.PI); // Afterwards, turn the robot's radar 90 degrees to the right turnRadarLeftRadians(-Math.PI / 2);
radians
- the amount of radians to turn the robot's radar to the left.
If radians
> 0 the robot's radar will turn left.
If radians
< 0 the robot's radar will turn right.
If radians
= 0 the robot's radar will not turn, but execute.Robot.turnRadarLeft(double)
,
Robot.turnRadarRight(double)
,
turnGunRightRadians(double)
,
Robot.turnLeft(double)
,
turnLeftRadians(double)
,
Robot.turnRight(double)
,
turnRightRadians(double)
,
Robot.turnGunLeft(double)
,
turnGunLeftRadians(double)
,
Robot.turnGunRight(double)
,
turnGunRightRadians(double)
,
Robot.setAdjustRadarForRobotTurn(boolean)
,
Robot.setAdjustRadarForGunTurn(boolean)
public void turnRadarRightRadians(double radians)
// Turn the robot's radar 180 degrees to the right turnRadarRightRadians(Math.PI); // Afterwards, turn the robot's radar 90 degrees to the left turnRadarRightRadians(-Math.PI / 2);
radians
- the amount of radians to turn the robot's radar to the right.
If radians
> 0 the robot's radar will turn right.
If radians
< 0 the robot's radar will turn left.
If radians
= 0 the robot's radar will not turn, but execute.Robot.turnRadarRight(double)
,
Robot.turnRadarLeft(double)
,
turnGunLeftRadians(double)
,
Robot.turnLeft(double)
,
turnLeftRadians(double)
,
Robot.turnRight(double)
,
turnRightRadians(double)
,
Robot.turnGunLeft(double)
,
turnGunLeftRadians(double)
,
Robot.turnGunRight(double)
,
turnGunRightRadians(double)
,
Robot.setAdjustRadarForRobotTurn(boolean)
,
Robot.setAdjustRadarForGunTurn(boolean)
public double getGunTurnRemainingRadians()
AdvancedRobot.getGunTurnRemaining()
,
getTurnRemaining()
,
getTurnRemainingRadians()
,
getRadarTurnRemaining()
,
getRadarTurnRemainingRadians()
public double getRadarTurnRemainingRadians()
AdvancedRobot.getRadarTurnRemaining()
,
getTurnRemaining()
,
getTurnRemainingRadians()
,
getGunTurnRemaining()
,
getGunTurnRemainingRadians()
public double getTurnRemainingRadians()
AdvancedRobot.getTurnRemaining()
,
getGunTurnRemaining()
,
getGunTurnRemainingRadians()
,
getRadarTurnRemaining()
,
getRadarTurnRemainingRadians()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |