public class RobotResults extends BattleResults
bulletDamage, bulletDamageBonus, firsts, lastSurvivorBonus, ramDamage, ramDamageBonus, rank, score, seconds, survival, teamLeaderName, thirds| Constructor and Description |
|---|
RobotResults(RobotSpecification robot,
BattleResults results)
Constructs new RobotResults based on a
RobotSpecification and BattleResults. |
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 a new RobotResults.
|
| Modifier and Type | Method and Description |
|---|---|
static RobotResults[] |
convertResults(BattleResults[] results)
Converts an array of
BattleResults into an array of RobotResults. |
boolean |
equals(Object obj) |
RobotSpecification |
getRobot()
Returns the robot these results are meant for.
|
int |
hashCode() |
compareTo, getBulletDamage, getBulletDamageBonus, getFirsts, getLastSurvivorBonus, getRamDamage, getRamDamageBonus, getRank, getScore, getSeconds, getSurvival, getTeamLeaderName, getThirdspublic 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)
robot - is the robot these results are forteamLeaderName - is the team namerank - is the rank of the robot in the battlescore - is the total score for the robot in the battlesurvival - is the survival score for the robot in the battlelastSurvivorBonus - is the last survivor bonus for the robot in the battlebulletDamage - is the bullet damage score for the robot in the battlebulletDamageBonus - is the bullet damage bonus for the robot in the battleramDamage - is the ramming damage for the robot in the battleramDamageBonus - is the ramming damage bonus for the robot in the battlefirsts - is the number of rounds this robot placed firstseconds - is the number of rounds this robot placed secondthirds - is the number of rounds this robot placed thirdpublic RobotResults(RobotSpecification robot, BattleResults results)
RobotSpecification and BattleResults.robot - the robot these results are forresults - the battle results for the robotpublic RobotSpecification getRobot()
public static RobotResults[] convertResults(BattleResults[] results)
BattleResults into an array of RobotResults.results - an array of BattleResults to convert.public int hashCode()
hashCode in class BattleResultspublic boolean equals(Object obj)
equals in class BattleResultsCopyright © 2021 Robocode. All Rights Reserved.