|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbattlecode.common.RobotInfo
public class RobotInfo
Struct that stores basic information that was 'sensed' of another Robot. This info is ephemeral and there is no guarantee any of it will remain the same between rounds.
Field Summary | |
---|---|
Direction |
direction
The direction this Robot is facing. |
double |
energon
The energon of this Robot. |
MapLocation |
location
The location of this Robot. |
boolean |
regen
true if this robot is scheduled to regenerate
at the beginning of its next turn. |
Robot |
robot
The robot that was sensed. |
int |
roundsUntilAttackIdle
|
int |
roundsUntilMovementIdle
|
double |
shields
The shields of this Robot. |
Team |
team
The team of this Robot. |
RobotType |
type
The type of this Robot. |
Constructor Summary | |
---|---|
RobotInfo(Robot robot,
MapLocation location,
double hitpoints,
double shields,
Direction direction,
RobotType type,
Team team,
boolean regen,
int roundsUntilAttackIdle,
int roundsUntilMovementIdle)
|
Method Summary | |
---|---|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Robot robot
public final MapLocation location
public final double energon
public final double shields
public final Direction direction
public final RobotType type
public final Team team
public boolean regen
true
if this robot is scheduled to regenerate
at the beginning of its next turn.
public final int roundsUntilAttackIdle
public final int roundsUntilMovementIdle
Constructor Detail |
---|
public RobotInfo(Robot robot, MapLocation location, double hitpoints, double shields, Direction direction, RobotType type, Team team, boolean regen, int roundsUntilAttackIdle, int roundsUntilMovementIdle)
Method Detail |
---|
public int hashCode()
hashCode
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |