| Modifier and Type | Field and Description |
|---|---|
int |
attackCount
The number of times this robot has attacked in the current turn.
|
float |
health
The current health of the robot.
|
int |
ID
The unique ID of the robot.
|
MapLocation |
location
The current location of the robot.
|
int |
moveCount
The number of times this robot has moved in the current turn.
|
Team |
team
The Team that the robot is on.
|
RobotType |
type
The type of the robot.
|
| Constructor and Description |
|---|
RobotInfo(int ID,
Team team,
RobotType type,
MapLocation location,
float health,
int attackCount,
int moveCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getAttackCount()
Returns the number of times this robot has attacked this turn.
|
float |
getHealth()
Returns the current health of this robot.
|
int |
getID()
Returns the ID of this body.
|
MapLocation |
getLocation()
Returns the center location of this body.
|
int |
getMoveCount()
Returns the number of times this robot has moved this turn.
|
float |
getRadius()
Returns the radius of this body.
|
Team |
getTeam()
Returns the team that this robot is on.
|
RobotType |
getType()
Returns the type of this robot.
|
int |
hashCode() |
boolean |
isBullet()
Returns whether this body is a bullet.
|
boolean |
isRobot()
Returns whether this body is a robot.
|
boolean |
isTree()
Returns whether this body is a tree.
|
java.lang.String |
toString() |
public final int ID
public final Team team
public final RobotType type
public final MapLocation location
public final float health
public final int attackCount
public final int moveCount
public RobotInfo(int ID,
Team team,
RobotType type,
MapLocation location,
float health,
int attackCount,
int moveCount)
public int getID()
BodyInfopublic MapLocation getLocation()
BodyInfogetLocation in interface BodyInfopublic float getRadius()
BodyInfopublic boolean isRobot()
BodyInfopublic boolean isTree()
BodyInfopublic boolean isBullet()
BodyInfopublic Team getTeam()
public RobotType getType()
public float getHealth()
public int getAttackCount()
public int getMoveCount()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object