|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.BattleResults
public class BattleResults
Contains the battle results returned by BattleEndedEvent.getResults()
when a battle has ended.
BattleEndedEvent.getResults()
,
Robot.onBattleEnded(BattleEndedEvent)
,
Serialized FormField Summary | |
---|---|
protected double |
bulletDamage
|
protected double |
bulletDamageBonus
|
protected int |
firsts
|
protected double |
lastSurvivorBonus
|
protected double |
ramDamage
|
protected double |
ramDamageBonus
|
protected int |
rank
|
protected double |
score
|
protected int |
seconds
|
protected static long |
serialVersionUID
|
protected double |
survival
|
protected String |
teamLeaderName
|
protected int |
thirds
|
Constructor Summary | |
---|---|
BattleResults(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 this BattleResults object. |
Method Summary | |
---|---|
int |
compareTo(BattleResults o)
|
boolean |
equals(Object obj)
|
int |
getBulletDamage()
Returns the bullet damage score of this robot in the battle. |
int |
getBulletDamageBonus()
Returns the bullet damage bonus of this robot in the battle. |
int |
getFirsts()
Returns the number of rounds this robot placed first in the battle. |
int |
getLastSurvivorBonus()
Returns the last survivor score of this robot in the battle. |
int |
getRamDamage()
Returns the ram damage score of this robot in the battle. |
int |
getRamDamageBonus()
Returns the ram damage bonus of this robot in the battle. |
int |
getRank()
Returns the rank of this robot in the battle results. |
int |
getScore()
Returns the total score of this robot in the battle. |
int |
getSeconds()
Returns the number of rounds this robot placed second in the battle. |
int |
getSurvival()
Returns the survival score of this robot in the battle. |
String |
getTeamLeaderName()
Returns the name of the team leader in the team or the name of the robot if the robot is not participating in a team. |
int |
getThirds()
Returns the number of rounds this robot placed third in the battle. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final long serialVersionUID
protected String teamLeaderName
protected int rank
protected double score
protected double survival
protected double lastSurvivorBonus
protected double bulletDamage
protected double bulletDamageBonus
protected double ramDamage
protected double ramDamageBonus
protected int firsts
protected int seconds
protected int thirds
Constructor Detail |
---|
public BattleResults(String teamLeaderName, int rank, double score, double survival, double lastSurvivorBonus, double bulletDamage, double bulletDamageBonus, double ramDamage, double ramDamageBonus, int firsts, int seconds, int thirds)
teamLeaderName
- the name of the team leader.rank
- the rank of the robot in the battle.score
- the total score for the robot in the battle.survival
- the survival score for the robot in the battle.lastSurvivorBonus
- the last survivor bonus for the robot in the battle.bulletDamage
- the bullet damage score for the robot in the battle.bulletDamageBonus
- the bullet damage bonus for the robot in the battle.ramDamage
- the ramming damage for the robot in the battle.ramDamageBonus
- the ramming damage bonus for the robot in the battle.firsts
- the number of rounds this robot placed first.seconds
- the number of rounds this robot placed second.thirds
- the number of rounds this robot placed third.Method Detail |
---|
public String getTeamLeaderName()
public int getRank()
public int getScore()
public int getSurvival()
public int getLastSurvivorBonus()
public int getBulletDamage()
public int getBulletDamageBonus()
public int getRamDamage()
public int getRamDamageBonus()
public int getFirsts()
public int getSeconds()
public int getThirds()
public int compareTo(BattleResults o)
compareTo
in interface Comparable<BattleResults>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |