| Modifier and Type | Field and Description |
|---|---|
int |
containedBullets
The current amount of bullets contained within the tree.
|
RobotType |
containedRobot
The robot contained within the tree that is obtained upon
destroying the tree using the cut() method.
|
float |
health
The current health of the tree.
|
int |
ID
The unique ID of the tree.
|
MapLocation |
location
The current location of the tree.
|
float |
maxHealth
The current maximum health of the tree.
|
float |
radius
The radius of the tree.
|
Team |
team
The Team that the tree is on.
|
| Constructor and Description |
|---|
TreeInfo(int ID,
Team team,
MapLocation location,
float radius,
float health,
int containedBullets,
RobotType containedRobot) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getContainedBullets() |
RobotType |
getContainedRobot() |
float |
getHealth() |
int |
getID()
Returns the ID of this body.
|
MapLocation |
getLocation()
Returns the center location of this body.
|
float |
getMaxHealth() |
float |
getRadius()
Returns the radius of this body.
|
Team |
getTeam() |
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 float radius
public final MapLocation location
public final float health
public final float maxHealth
public final int containedBullets
public final RobotType containedRobot
public TreeInfo(int ID,
Team team,
MapLocation location,
float radius,
float health,
int containedBullets,
RobotType containedRobot)
public Team getTeam()
public float getHealth()
public float getMaxHealth()
public int getContainedBullets()
public RobotType getContainedRobot()
public int getID()
BodyInfopublic MapLocation getLocation()
BodyInfogetLocation in interface BodyInfopublic float getRadius()
BodyInfopublic boolean isRobot()
BodyInfopublic boolean isTree()
BodyInfopublic boolean isBullet()
BodyInfopublic 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