Class BotResults
Represents individual bot results.
Inherited Members
Namespace: Robocode.TankRoyale.BotApi
Assembly: Robocode.TankRoyale.BotApi.dll
Syntax
public sealed class BotResults
Constructors
| Edit this page View SourceBotResults(int, double, double, double, double, double, double, double, double, double, double)
Initializes a new instance of the BotInfo class.
Declaration
public BotResults(int rank, double survival, double lastSurvivorBonus, double bulletDamage, double bulletKillBonus, double ramDamage, double ramKillBonus, double totalScore, double firstPlaces, double secondPlaces, double thirdPlaces)
Parameters
Type | Name | Description |
---|---|---|
int | rank | The rank/placement of the bot. |
double | survival | The survival score. |
double | lastSurvivorBonus | The last survivor score. |
double | bulletDamage | The bullet damage score. |
double | bulletKillBonus | The bullet kill bonus. |
double | ramDamage | The ram damage score. |
double | ramKillBonus | The ram kill bonus. |
double | totalScore | The total score. |
double | firstPlaces | The number of 1st places. |
double | secondPlaces | The number of 2nd places. |
double | thirdPlaces | The number of 3rd places. |
Properties
| Edit this page View SourceBulletDamage
The bullet damage score. A bot score 1 point for each point of damage they do to other bots.
Declaration
public double BulletDamage { get; }
Property Value
Type | Description |
---|---|
double | The bullet damage score. |
BulletKillBonus
The bullet kill-bonus. When a bot kills another bot, it scores an additional 20% points of the total damage it did to that bot.
Declaration
public double BulletKillBonus { get; }
Property Value
Type | Description |
---|---|
double | The bullet kill-bonus. |
FirstPlaces
The number of 1st places for the bot.
Declaration
public double FirstPlaces { get; }
Property Value
Type | Description |
---|---|
double | The number of 1st places. |
LastSurvivorBonus
The last survivor score. The last bot alive scores 10 points or each bot that has been defeated.
Declaration
public double LastSurvivorBonus { get; }
Property Value
Type | Description |
---|---|
double | The last survivor score. |
RamDamage
The ram damage score. Bots score 2 points for each point of damage inflicted by ramming an enemy bot. Ramming is the act deliberately driving forward (not backward) and hitting another bot.
Declaration
public double RamDamage { get; }
Property Value
Type | Description |
---|---|
double | The ram damage score. |
RamKillBonus
The ram kill-bonus. When a bot kills another bot due to ramming, it scores an additional 30% of the total ramming damage it did to that bot.
Declaration
public double RamKillBonus { get; }
Property Value
Type | Description |
---|---|
double | The ram kill-bonus. |
Rank
The rank/placement of the bot, where 1 means 1st place, 4 means 4th place etc.
Declaration
public int Rank { get; }
Property Value
Type | Description |
---|---|
int | The rank of the bot for this battle. |
SecondPlaces
The number of 2nd places for the bot.
Declaration
public double SecondPlaces { get; }
Property Value
Type | Description |
---|---|
double | The number of 2nd places. |
Survival
The accumulated survival score. Every bot still alive score 50 points every time another bot is defeated.
Declaration
public double Survival { get; }
Property Value
Type | Description |
---|---|
double | The survival score. |
ThirdPlaces
The number of 3rd places for the bot.
Declaration
public double ThirdPlaces { get; }
Property Value
Type | Description |
---|---|
double | The number of 3rd places. |
TotalScore
The total score is the sum of all scores and determines the ranking.
Declaration
public double TotalScore { get; }
Property Value
Type | Description |
---|---|
double | The total score. |