robocode
Class NavalBattleResults
java.lang.Object
robocode.BattleResults
robocode.NavalBattleResults
- All Implemented Interfaces:
- Serializable, Comparable<BattleResults>
- Direct Known Subclasses:
- ShipResults
public class NavalBattleResults
- extends BattleResults
Contains the Naval version of the battle results returned by BattleEndedEvent.getResults()
when a battle has ended.
Technically the same as BattleResults
, but with the added bonus of
mineDamage and mineBonus.
- Since:
- 1.9.2.2
- Author:
- Thales B.V. / Thomas Hakkers
- See Also:
BattleEndedEvent.getResults()
,
Ship.onBattleEnded(BattleEndedEvent)
,
Serialized Form
Fields inherited from class robocode.BattleResults |
bulletDamage, bulletDamageBonus, firsts, lastSurvivorBonus, ramDamage, ramDamageBonus, rank, score, seconds, survival, teamLeaderName, thirds |
Constructor Summary |
NavalBattleResults(String teamLeaderName,
int rank,
double score,
double survival,
double lastSurvivorBonus,
double bulletDamage,
double bulletDamageBonus,
double ramDamage,
double ramDamageBonus,
double mineDamage,
double mineDamageBonus,
int firsts,
int seconds,
int thirds)
Constructs this NavalBattleResults object. |
Methods inherited from class robocode.BattleResults |
compareTo, equals, getBulletDamage, getBulletDamageBonus, getFirsts, getLastSurvivorBonus, getRamDamage, getRamDamageBonus, getRank, getScore, getSeconds, getSurvival, getTeamLeaderName, getThirds, hashCode |
NavalBattleResults
public NavalBattleResults(String teamLeaderName,
int rank,
double score,
double survival,
double lastSurvivorBonus,
double bulletDamage,
double bulletDamageBonus,
double ramDamage,
double ramDamageBonus,
double mineDamage,
double mineDamageBonus,
int firsts,
int seconds,
int thirds)
- Constructs this NavalBattleResults object.
- Parameters:
teamLeaderName
- the name of the team leader.rank
- the rank of the ship in the battle.score
- the total score for the ship in the battle.survival
- the survival score for the ship in the battle.lastSurvivorBonus
- the last survivor bonus for the ship in the battle.bulletDamage
- the bullet damage score for the ship in the battle.bulletDamageBonus
- the bullet damage bonus for the ship in the battle.ramDamage
- the ramming damage for the ship in the battle.ramDamageBonus
- the ramming damage bonus for the ship in the battle.mineDamage
- the mine damage score for the ship in the battle.mineBonus
- the mine damage bonus for the ship in the battle.firsts
- the number of rounds this ship placed first.seconds
- the number of rounds this ship placed second.thirds
- the number of rounds this ship placed third.
getMineDamage
public int getMineDamage()
getMineDamageBonus
public int getMineDamageBonus()
Copyright © 2015 Robocode. All Rights Reserved.