Public Member Functions | |
Robot_Status () | |
Object | clone () throws CloneNotSupportedException |
Public Attributes | |
int | power |
int | charge |
int | health |
int | defense_boost |
int[] | capsules |
Represents current status of Robot, passed to Robot.act() method to let robot know its current health, charge, and capsules.
Definition at line 37 of file Robot.java.
Robot.Robot_Status.Robot_Status | ( | ) |
Constructor because I'd rather not capsules ever be null
Definition at line 62 of file Robot.java.
References Robot.Robot_Status.capsules.
Referenced by Robot.Robot_Status.clone().
Object Robot.Robot_Status.clone | ( | ) | throws CloneNotSupportedException |
Overrides clone: see Java language documentation for explanation
Definition at line 65 of file Robot.java.
References Robot.Robot_Status.Robot_Status().
int [] Robot.Robot_Status.capsules |
Current number and power of capsules.
Each capsule is represented by an element of the array.
The value of the element of the array is equal to the power of the capsule.
In-progress capsules are not represented; use getInvestedBuildPower() for that.
Definition at line 59 of file Robot.java.
Referenced by Robot.Robot_Status.Robot_Status().
int Robot.Robot_Status.charge |
current charge.
Definition at line 43 of file Robot.java.
int Robot.Robot_Status.defense_boost |
current defense boost
Definition at line 49 of file Robot.java.
int Robot.Robot_Status.health |
int Robot.Robot_Status.power |