public final class RobotStatus extends Object implements Serializable
StatusEvent.getStatus()
.Modifier and Type | Method and Description |
---|---|
double |
getDistanceRemaining()
Returns the distance remaining in the robot's current move measured in
pixels.
|
double |
getEnergy()
Returns the robot's current energy.
|
double |
getGunHeading()
Returns the direction that the robot's gun is facing, in degrees.
|
double |
getGunHeadingRadians()
Returns the direction that the robot's gun is facing, in radians.
|
double |
getGunHeat()
Returns the current heat of the gun.
|
double |
getGunTurnRemaining()
Returns the angle remaining in the gun's turn, in degrees.
|
double |
getGunTurnRemainingRadians()
Returns the angle remaining in the gun's turn, in radians.
|
double |
getHeading()
Returns the direction that the robot's body is facing, in degrees.
|
double |
getHeadingRadians()
Returns the direction that the robot's body is facing, in radians.
|
int |
getNumRounds()
Returns the number of rounds in the current battle.
|
int |
getNumSentries()
Returns how many sentry robots that are left in the current round.
|
int |
getOthers()
Returns how many opponents that are left in the current round.
|
double |
getRadarHeading()
Returns the direction that the robot's radar is facing, in degrees.
|
double |
getRadarHeadingRadians()
Returns the direction that the robot's radar is facing, in radians.
|
double |
getRadarTurnRemaining()
Returns the angle remaining in the radar's turn, in degrees.
|
double |
getRadarTurnRemainingRadians()
Returns the angle remaining in the radar's turn, in radians.
|
int |
getRoundNum()
Returns the current round number (0 to
getNumRounds() - 1) of
the battle. |
long |
getTime()
Returns the game time of the round, where the time is equal to the current turn in the round.
|
double |
getTurnRemaining()
Returns the angle remaining in the robots's turn, in degrees.
|
double |
getTurnRemainingRadians()
Returns the angle remaining in the robots's turn, in radians.
|
double |
getVelocity()
Returns the velocity of the robot measured in pixels/turn.
|
double |
getX()
Returns the X position of the robot.
|
double |
getY()
Returns the Y position of the robot.
|
public double getEnergy()
public double getX()
getY()
public double getY()
getX()
public double getHeadingRadians()
public double getHeading()
public double getGunHeadingRadians()
public double getGunHeading()
public double getRadarHeadingRadians()
public double getRadarHeading()
public double getVelocity()
Rules.MAX_VELOCITY
(8 pixels / turn).Rules.MAX_VELOCITY
public double getTurnRemainingRadians()
public double getTurnRemaining()
public double getRadarTurnRemainingRadians()
public double getRadarTurnRemaining()
public double getGunTurnRemainingRadians()
public double getGunTurnRemaining()
public double getDistanceRemaining()
public double getGunHeat()
Robot.getGunCoolingRate()
, which is a battle setup.
Note that all guns are "hot" at the start of each round, where the gun
heat is 3.Robot.getGunCoolingRate()
,
Robot.fire(double)
,
Robot.fireBullet(double)
public int getOthers()
getNumSentries()
public int getNumSentries()
getOthers()
public int getNumRounds()
getRoundNum()
public int getRoundNum()
getNumRounds()
- 1) of
the battle.getNumRounds()
public long getTime()
Copyright © 2016. All rights reserved.