Show / Hide Table of Contents

Class BotResults

Represents individual bot results.

Inheritance
object
BotResults
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Robocode.TankRoyale.BotApi
Assembly: api.dll
Syntax
[PublicAPI]
public sealed class BotResults

Constructors

| Edit this page View Source

BotResults(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 Source

BulletDamage

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.

| Edit this page View Source

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.

| Edit this page View Source

FirstPlaces

The number of 1st places for the bot.

Declaration
public double FirstPlaces { get; }
Property Value
Type Description
double

The number of 1st places.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

SecondPlaces

The number of 2nd places for the bot.

Declaration
public double SecondPlaces { get; }
Property Value
Type Description
double

The number of 2nd places.

| Edit this page View Source

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.

| Edit this page View Source

ThirdPlaces

The number of 3rd places for the bot.

Declaration
public double ThirdPlaces { get; }
Property Value
Type Description
double

The number of 3rd places.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX