Show / Hide Table of Contents

Namespace Robocode.TankRoyale.BotApi

Classes

BaseBot

Abstract bot class that takes care of communication between the bot and the server, and sends notifications through the event handlers. Most bots can inherit from this class to get access to basic methods.

Bot

Abstract bot class provides convenient methods for movement, turning, and firing the gun. Most bots should inherit from this class.

BotException

Represents errors that occur with bot execution.

BotInfo

Bot info contains the properties of a bot.

BotResults

Represents individual bot results.

BotState

Represents the current bot state.

BulletState

Represents the state of a bullet that has been fired by a bot.

Constants

Constants.

DefaultEventPriority

Default event priorities values. The lower value, the higher event priority. So the DeathEvent has the highest priority (10), and WonRoundEvent has the lowest priority (150).

GameSetup

Game setup retrieved when game is started.

GameType

Predefined game types. These game types are described here.

InitialPosition

Initial starting position containing a start coordinate (x,y) and angle.

The initial position is only used when debugging to request the server to let a bot start at a specific position. Note that initial starting positions must be enabled at the server-side; otherwise the initial starting position is ignored.

Interfaces

BotInfo.IBuilder

Builder interface for providing a builder for building BotInfo objects, and which supports method chaining.

Droid

Droid interface to turn your bot into a droid bot, which is used as a specialized team bot. A droid has 20 additional energy points (120 in total from the start), but has no scanner!

Because the droid has no scanner, it is 100% dependent on other team members to perform the scanning on its behalf and communicate crucial information to the bot, e.g., the coordinates of target enemies.

A team of droids plus at least one non-droid team robot can have an edge over another team without droids (and the same number of robots) due to the additional 20 energy points.

IBaseBot

Interface containing the core API for a bot.

IBot

Interface for a bot that extends the core API with convenient methods for movement, turning, and firing the gun.

In this article
Back to top Generated by DocFX