robocode.control
Class RobotResults
- Comparable, Serializable
public class RobotResults
Contains the battle results for an individual robot, which is given as input
parameter with the
RobocodeListener#battleComplete()
event handler.
- Mathew A. Nelson (original)
- Flemming N. Larsen (contributor)
bulletDamage , bulletDamageBonus , firsts , lastSurvivorBonus , ramDamage , ramDamageBonus , rank , score , seconds , serialVersionUID , survival , teamLeaderName , thirds |
RobotResults(RobotSpecification robot, String teamLeaderName, int rank, double score, double survival, double lastSurvivorBonus, double bulletDamage, double bulletDamageBonus, double ramDamage, double ramDamageBonus, int firsts, int seconds, int thirds) - Constructs new RobotResults.
|
RobotResults(RobotSpecification robot, BattleResults results) - Constructs new RobotResults based on a
RobotSpecification and BattleResults .
|
compareTo , getBulletDamage , getBulletDamageBonus , getFirsts , getLastSurvivorBonus , getRamDamage , getRamDamageBonus , getRank , getScore , getSeconds , getSurvival , getTeamLeaderName , getThirds |
RobotResults
public RobotResults(RobotSpecification robot,
String teamLeaderName,
int rank,
double score,
double survival,
double lastSurvivorBonus,
double bulletDamage,
double bulletDamageBonus,
double ramDamage,
double ramDamageBonus,
int firsts,
int seconds,
int thirds)
Constructs new RobotResults.
robot
- the robot these results are forteamLeaderName
- team namerank
- the rank of the robot in the battlescore
- the total score for the robot in the battlesurvival
- the survival score for the robot in the battlelastSurvivorBonus
- the last survivor bonus for the robot in the battlebulletDamage
- the bullet damage score for the robot in the battlebulletDamageBonus
- the bullet damage bonus for the robot in the battleramDamage
- the ramming damage for the robot in the battleramDamageBonus
- the ramming damage bonus for the robot in the battlefirsts
- the number of rounds this robot placed firstseconds
- the number of rounds this robot placed secondthirds
- the number of rounds this robot placed third
RobotResults
public RobotResults(RobotSpecification robot,
BattleResults results)
robot
- the robot these results are forresults
- the battle results for the robot
convertResults
public static RobotResults[] convertResults(BattleResults[] results)
results
- an array of BattleResults to convert.
- an array of RobotResults converted from BattleResults.
getRobot
public RobotSpecification getRobot()
Returns the robot these results are meant for.
- the robot these results are meant for.