robocode
Class ShipStatus

java.lang.Object
  extended by robocode.RobotStatus
      extended by robocode.ShipStatus
All Implemented Interfaces:
Serializable

public class ShipStatus
extends RobotStatus

Contains the status of a robot for a specific time/turn returned by StatusEvent.getStatus(). THOMA_NOTE: This class is starting to bug me.

Since:
1.9.2.2
Author:
Thales B.V. / Thomas Hakkers
See Also:
Serialized Form

Constructor Summary
ShipStatus(double energy, double x, double y, double bodyHeading, double velocity, double bodyTurnRemaining, double distanceRemaining, int others, int roundNum, int numRounds, long time, ComponentManager components)
           
 
Method Summary
 ComponentManager getComponents()
          Returns the Components of the Ship.
 
Methods inherited from class robocode.RobotStatus
getDistanceRemaining, getEnergy, getGunHeading, getGunHeadingRadians, getGunHeat, getGunTurnRemaining, getGunTurnRemainingRadians, getHeading, getHeadingRadians, getNumRounds, getNumSentries, getOthers, getRadarHeading, getRadarHeadingRadians, getRadarTurnRemaining, getRadarTurnRemainingRadians, getRoundNum, getTime, getTurnRemaining, getTurnRemainingRadians, getVelocity, getX, getY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShipStatus

public ShipStatus(double energy,
                  double x,
                  double y,
                  double bodyHeading,
                  double velocity,
                  double bodyTurnRemaining,
                  double distanceRemaining,
                  int others,
                  int roundNum,
                  int numRounds,
                  long time,
                  ComponentManager components)
Method Detail

getComponents

public ComponentManager getComponents()
Returns the Components of the Ship. Might turn this into a copy of the components instead, so there is no way the ShipProxy directly manipulates the components

Returns:
The ComponentManager of the ShipPeer


Copyright © 2015 Robocode. All Rights Reserved.