A B C D E F G H I K L M N O P R S T V W Y 
All Classes All Packages

A

ACCELERATION - Static variable in class Constants
Acceleration is the increase in speed per turn, which adds 1 unit to the speed per turn when the bot is increasing its speed moving forward.
addAuthor(String) - Method in interface BotInfo.IBuilder
Adds an author of the bot.
addCountryCode(String) - Method in interface BotInfo.IBuilder
Adds a country code for the bot.
addCustomEvent(Condition) - Method in class BaseBot
Adds an event handler that will be automatically triggered IBaseBot.onCustomEvent(dev.robocode.tankroyale.botapi.events.CustomEvent) when the Condition.test() returns true.
addCustomEvent(Condition) - Method in interface IBaseBot
Adds an event handler that will be automatically triggered IBaseBot.onCustomEvent(dev.robocode.tankroyale.botapi.events.CustomEvent) when the Condition.test() returns true.
addGameType(String) - Method in interface BotInfo.IBuilder
Adds a game type that this bot is capable of participating in.
ALICE_BLUE - Static variable in class Color
 
ANTIQUE_WHITE - Static variable in class Color
 
AQUA - Static variable in class Color
 
AQUAMARINE - Static variable in class Color
 
AZURE - Static variable in class Color
 

B

back(double) - Method in class Bot
Moves the bot backward until it has traveled a specific distance from its current position, or it is moving into an obstacle.
back(double) - Method in interface IBot
Moves the bot backward until it has traveled a specific distance from its current position, or it is moving into an obstacle.
BaseBot - Class in dev.robocode.tankroyale.botapi
Abstract bot class that takes care of communication between the bot and the server and sends notifications through the event handlers.
BaseBot() - Constructor for class BaseBot
Constructor for initializing a new instance of the BaseBot class.
BaseBot(BotInfo) - Constructor for class BaseBot
Constructor for initializing a new instance of the BaseBot class.
BaseBot(BotInfo, URI) - Constructor for class BaseBot
Constructor for initializing a new instance of the BaseBot class.
BaseBot(BotInfo, URI, String) - Constructor for class BaseBot
Constructor for initializing a new instance of the BaseBot class.
bearingTo(double, double) - Method in interface IBaseBot
Calculates the bearing (delta angle) between the current direction of the bot´s body and the direction to the point x,y.
BEIGE - Static variable in class Color
 
BISQUE - Static variable in class Color
 
BLACK - Static variable in class Color
 
BLANCHED_ALMOND - Static variable in class Color
 
BLUE - Static variable in class Color
 
BLUE_VIOLET - Static variable in class Color
 
Bot - Class in dev.robocode.tankroyale.botapi
Abstract bot class provides convenient methods for movement, turning, and firing the gun.
Bot() - Constructor for class Bot
 
Bot(BotInfo) - Constructor for class Bot
 
Bot(BotInfo, URI) - Constructor for class Bot
 
Bot(BotInfo, URI, String) - Constructor for class Bot
 
BOT_DEATH - Static variable in class DefaultEventPriority
Event priority for the BotDeathEvent
BotDeathEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when another bot has died.
BotDeathEvent(int, int) - Constructor for class BotDeathEvent
Initializes a new instance of the BotDeathEvent class.
BotEvent - Class in dev.robocode.tankroyale.botapi.events
Bot event occurring during a battle.
BotEvent(int) - Constructor for class BotEvent
Initializes a new instance of the Event class.
BotException - Exception in dev.robocode.tankroyale.botapi
Represents errors that occur with bot execution.
BotException(String) - Constructor for exception BotException
Initializes a new instance of the BotException class with a specified error message.
BotException(String, Exception) - Constructor for exception BotException
Initializes a new instance of the BotException class with a specified error message and a reference to the inner exception that is the cause of this exception.
BotInfo - Class in dev.robocode.tankroyale.botapi
Bot info contains the properties of a bot.
BotInfo(String, String, List<String>, String, String, List<String>, Collection<String>, String, String, InitialPosition) - Constructor for class BotInfo
Initializes a new instance of the BotInfo class.

Note that the recommended method for creating a BotInfo class is to use the BotInfo.IBuilder interface provided with the static BotInfo.builder() method.
BotInfo.IBuilder - Interface in dev.robocode.tankroyale.botapi
Builder interface for providing a builder for building BotInfo objects, and which supports method chaining.
BotResults - Class in dev.robocode.tankroyale.botapi
Represents individual bot results.
BotResults(int, double, double, double, double, double, double, double, int, int, int) - Constructor for class BotResults
Initializes a new instance of the BotInfo class.
BotState - Class in dev.robocode.tankroyale.botapi
Represents the current bot state.
BotState(boolean, double, double, double, double, double, double, double, double, double, double, double, double, int, Color, Color, Color, Color, Color, Color, Color, boolean) - Constructor for class BotState
Initializes a new instance of the BotState class.
BOUNDING_CIRCLE_RADIUS - Static variable in class Constants
The radius of the bounding circle of the bot, which is a constant of 18 units.
broadcastTeamMessage(Object) - Method in class BaseBot
Broadcasts a message to all teammates.

When the message is send, it is serialized into a JSON representation, meaning that all public fields, and only public fields, are being serialized into a JSON representation as a DTO (data transfer object).

The maximum team message size limit is defined by IBaseBot.TEAM_MESSAGE_MAX_SIZE, which is set to 32768 bytes.
broadcastTeamMessage(Object) - Method in interface IBaseBot
Broadcasts a message to all teammates.

When the message is send, it is serialized into a JSON representation, meaning that all public fields, and only public fields, are being serialized into a JSON representation as a DTO (data transfer object).

The maximum team message size limit is defined by IBaseBot.TEAM_MESSAGE_MAX_SIZE, which is set to 32768 bytes.
BROWN - Static variable in class Color
 
build() - Method in interface BotInfo.IBuilder
Builds and returns the BotInfo instance based on the data set and added to this builder so far.
builder() - Static method in class BotInfo
Returns a builder for a convenient way of building a BotInfo object using the builder pattern.

Example of use:
BULLET_FIRED - Static variable in class DefaultEventPriority
Event priority for the BulletFiredEvent
BULLET_HIT_BOT - Static variable in class DefaultEventPriority
Event priority for the BulletHitBotEvent
BULLET_HIT_BULLET - Static variable in class DefaultEventPriority
Event priority for the BulletHitBulletEvent
BULLET_HIT_WALL - Static variable in class DefaultEventPriority
Event priority for the BulletHitWallEvent
BulletFiredEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a bullet has been fired from a bot.
BulletFiredEvent(int, BulletState) - Constructor for class BulletFiredEvent
Initializes a new instance of the BulletFiredEvent class.
BulletHitBotEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a bullet has hit a bot.
BulletHitBotEvent(int, int, BulletState, double, double) - Constructor for class BulletHitBotEvent
Initializes a new instance of the BulletHitBotEvent class.
BulletHitBulletEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a bullet has collided with another bullet.
BulletHitBulletEvent(int, BulletState, BulletState) - Constructor for class BulletHitBulletEvent
Initializes a new instance of the BulletHitBulletEvent class.
BulletHitWallEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a bullet has hit a wall.
BulletHitWallEvent(int, BulletState) - Constructor for class BulletHitWallEvent
Initializes a new instance of the BulletHitWallEvent class.
BulletState - Class in dev.robocode.tankroyale.botapi
Represents the state of a bullet that has been fired by a bot.
BulletState(int, int, double, double, double, double, Color) - Constructor for class BulletState
Initializes a new instance of the BulletState class.
BURLY_WOOD - Static variable in class Color
 

C

CADET_BLUE - Static variable in class Color
 
calcBearing(double) - Method in interface IBaseBot
Calculates the bearing (delta angle) between the input direction and the direction of this bot.
calcBulletSpeed(double) - Method in class BaseBot
Calculates the bullet speed given a firepower.
calcBulletSpeed(double) - Method in interface IBaseBot
Calculates the bullet speed given a firepower.
calcDeltaAngle(double, double) - Method in interface IBaseBot
Calculates the difference between two angles, i.e.
calcGunBearing(double) - Method in interface IBaseBot
Calculates the bearing (delta angle) between the input direction and the direction of the gun.
calcGunHeat(double) - Method in class BaseBot
Calculates gun heat after having fired the gun.
calcGunHeat(double) - Method in interface IBaseBot
Calculates gun heat after having fired the gun.
calcMaxTurnRate(double) - Method in class BaseBot
Calculates the maximum turn rate for a specific speed.
calcMaxTurnRate(double) - Method in interface IBaseBot
Calculates the maximum turn rate for a specific speed.
calcRadarBearing(double) - Method in interface IBaseBot
Calculates the bearing (delta angle) between the input direction and the direction of the radar.
CHARTREUSE - Static variable in class Color
 
CHOCOLATE - Static variable in class Color
 
CLASSIC - Static variable in class GameType
Classic (standard) battle with a minimum of 2 bots battling each other on an arena size of 800 x 600 units.
clear() - Method in interface IGraphics
Clears all drawing operations.
clear() - Method in class SvgGraphics
Clears all drawing operations.
clearEvents() - Method in class BaseBot
Clears out any pending events in the bot's event queue immediately.
clearEvents() - Method in interface IBaseBot
Clears out any pending events in the bot's event queue immediately.
Color - Class in dev.robocode.tankroyale.botapi.graphics
Represents an RGBA (red, green, blue, alpha) color for use in the Tank Royale game.
Condition - Class in dev.robocode.tankroyale.botapi.events
The Condition class is used for testing if a specific condition is met.
Condition() - Constructor for class Condition
Constructor for initializing a new instance of the Condition class.
Condition(String) - Constructor for class Condition
Constructor for initializing a new instance of the Condition class.
Condition(String, Callable<Boolean>) - Constructor for class Condition
Constructor for initializing a new instance of the Condition class.
Condition(Callable<Boolean>) - Constructor for class Condition
Constructor for initializing a new instance of the Condition class.
ConnectedEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when bot gets connected to server
ConnectedEvent(URI) - Constructor for class ConnectedEvent
Initializes a new instance of the ConnectedEvent class.
ConnectionErrorEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a connection error occurs.
ConnectionErrorEvent(URI, Throwable) - Constructor for class ConnectionErrorEvent
Initializes a new instance of the ConnectionErrorEvent class.
Constants - Class in dev.robocode.tankroyale.botapi
Constants.
copy(BotInfo) - Method in interface BotInfo.IBuilder
Copies all fields from a BotInfo instance into this builder.
CORAL - Static variable in class Color
 
CORNFLOWER_BLUE - Static variable in class Color
 
CORNSILK - Static variable in class Color
 
CRIMSON - Static variable in class Color
 
CUSTOM - Static variable in class DefaultEventPriority
Event priority for the CustomEvent
CustomEvent - Class in dev.robocode.tankroyale.botapi.events
A custom event occurring when a condition has been met.
CustomEvent(int, Condition) - Constructor for class CustomEvent
Initializes a new instance of the CustomEvent class.
CYAN - Static variable in class Color
 

D

DARK_BLUE - Static variable in class Color
 
DARK_CYAN - Static variable in class Color
 
DARK_GOLDENROD - Static variable in class Color
 
DARK_GRAY - Static variable in class Color
 
DARK_GREEN - Static variable in class Color
 
DARK_KHAKI - Static variable in class Color
 
DARK_MAGENTA - Static variable in class Color
 
DARK_OLIVE_GREEN - Static variable in class Color
 
DARK_ORANGE - Static variable in class Color
 
DARK_ORCHID - Static variable in class Color
 
DARK_RED - Static variable in class Color
 
DARK_SALMON - Static variable in class Color
 
DARK_SEA_GREEN - Static variable in class Color
 
DARK_SLATE_BLUE - Static variable in class Color
 
DARK_SLATE_GRAY - Static variable in class Color
 
DARK_TURQUOISE - Static variable in class Color
 
DARK_VIOLET - Static variable in class Color
 
DEATH - Static variable in class DefaultEventPriority
Event priority for the DeathEvent
DeathEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when your bot has died.
DeathEvent(int) - Constructor for class DeathEvent
Initializes a new instance of the DeathEvent class.
DECELERATION - Static variable in class Constants
Deceleration is the decrease in speed per turn, which subtracts 2 units to the speed per turn when the bot is decreasing its speed moving backward.
DEEP_PINK - Static variable in class Color
 
DEEP_SKY_BLUE - Static variable in class Color
 
DefaultEventPriority - Class in dev.robocode.tankroyale.botapi
Default event priorities values.
dev.robocode.tankroyale.botapi - package dev.robocode.tankroyale.botapi
Contains all public classes and interfaces for the Bot API for Robocode Tank Royale.
dev.robocode.tankroyale.botapi.events - package dev.robocode.tankroyale.botapi.events
Contains all event related classes for the Bot API for Robocode Tank Royale.
dev.robocode.tankroyale.botapi.graphics - package dev.robocode.tankroyale.botapi.graphics
Contains all graphics related classes for the Bot API for Robocode Tank Royale.
DIM_GRAY - Static variable in class Color
 
directionTo(double, double) - Method in interface IBaseBot
Calculates the direction (angle) from the bot´s coordinates to a point x,y.
DisconnectedEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when bot gets disconnected from server.
DisconnectedEvent(URI, boolean, Integer, String) - Constructor for class DisconnectedEvent
Initializes a new instance of the DisconnectedEvent class.
distanceTo(double, double) - Method in interface IBaseBot
Calculates the distance from the bots coordinates to a point x,y.
DODGER_BLUE - Static variable in class Color
 
drawCircle(double, double, double) - Method in interface IGraphics
Draws the outline of a circle.
drawCircle(double, double, double) - Method in class SvgGraphics
Draws the outline of a circle.
drawLine(double, double, double, double) - Method in interface IGraphics
Draws a line from point (x1,y1) to point (x2,y2).
drawLine(double, double, double, double) - Method in class SvgGraphics
Draws a line from point (x1,y1) to point (x2,y2).
drawPolygon(List<Point>) - Method in interface IGraphics
Draws the outline of a polygon defined by a list of points.
drawPolygon(List<Point>) - Method in class SvgGraphics
Draws the outline of a polygon defined by a list of points.
drawRectangle(double, double, double, double) - Method in interface IGraphics
Draws the outline of a rectangle.
drawRectangle(double, double, double, double) - Method in class SvgGraphics
Draws the outline of a rectangle.
drawText(String, double, double) - Method in interface IGraphics
Draws text at the specified position.
drawText(String, double, double) - Method in class SvgGraphics
Draws text at the specified position.
Droid - Interface in dev.robocode.tankroyale.botapi
Droid interface to turn your bot into a droid bot, which is used as a specialized team bot.

E

equals(Object) - Method in class Color
 
equals(Object) - Method in class Point
Determines whether the specified object is equal to the current Point.
equals(Object) - Method in class InitialPosition

F

fillCircle(double, double, double) - Method in interface IGraphics
Fills a circle with the current fill color.
fillCircle(double, double, double) - Method in class SvgGraphics
Fills a circle with the current fill color.
fillPolygon(List<Point>) - Method in interface IGraphics
Fills a polygon defined by a list of points with the current fill color.
fillPolygon(List<Point>) - Method in class SvgGraphics
Fills a polygon defined by a list of points with the current fill color.
fillRectangle(double, double, double, double) - Method in interface IGraphics
Fills a rectangle with the current fill color.
fillRectangle(double, double, double, double) - Method in class SvgGraphics
Fills a rectangle with the current fill color.
fire(double) - Method in class Bot
Fire the gun in the direction as the gun is pointing.
fire(double) - Method in interface IBot
Fire the gun in the direction as the gun is pointing.
FIREBRICK - Static variable in class Color
 
FLORAL_WHITE - Static variable in class Color
 
FOREST_GREEN - Static variable in class Color
 
forward(double) - Method in class Bot
Moves the bot forward until it has traveled a specific distance from its current position, or it is moving into an obstacle.
forward(double) - Method in interface IBot
Moves the bot forward until it has traveled a specific distance from its current position, or it is moving into an obstacle.
fromFile(String) - Static method in class BotInfo
Reads the bot info from a local file on a file system.
The file is assumed to be in JSON format.

See the BotInfo.fromInputStream(java.io.InputStream) to see the required JSON format for the file.
fromInputStream(InputStream) - Static method in class BotInfo
Reads the bot info from an input stream.
The file is assumed to be in JSON format.

Example file in JSON format:
fromResourceFile(String) - Static method in class BotInfo
Reads the bot info from a resource file, e.g.
fromRgb(int, int, int) - Static method in class Color
Creates a color from the specified red, green, and blue values, with an alpha value of 255 (fully opaque).
fromRgba(int) - Static method in class Color
Creates a color from a 32-bit RGBA value.
fromRgba(int, int, int, int) - Static method in class Color
Creates a color from the specified red, green, blue, and alpha values.
fromRgba(Color, int) - Static method in class Color
Creates a color from the specified base color with a new alpha value.
fromString(String) - Static method in class InitialPosition
Creates a new instance of the InitialPosition class from a string.
FUCHSIA - Static variable in class Color
 

G

GAINSBORO - Static variable in class Color
 
GameEndedEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when game has just ended.
GameEndedEvent(int, BotResults) - Constructor for class GameEndedEvent
Initializes a new instance of the GameEndedEvent class.
GameSetup - Class in dev.robocode.tankroyale.botapi
Game setup retrieved when game is started.
GameSetup(String, int, int, int, double, int, int, int) - Constructor for class GameSetup
 
GameStartedEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when game has just started.
GameStartedEvent(int, InitialPosition, GameSetup) - Constructor for class GameStartedEvent
Initializes a new instance of the GameStartedEvent class.
GameType - Class in dev.robocode.tankroyale.botapi
Predefined game types.
getA() - Method in class Color
Gets the alpha component value of this color.
getArenaHeight() - Method in class BaseBot
Height of the arena measured in units.
getArenaHeight() - Method in class GameSetup
Returns the height of the arena measured in units.
getArenaHeight() - Method in interface IBaseBot
Height of the arena measured in units.
getArenaWidth() - Method in class BaseBot
Width of the arena measured in units.
getArenaWidth() - Method in class GameSetup
Returns the width of the arena measured in units.
getArenaWidth() - Method in interface IBaseBot
Width of the arena measured in units.
getAuthors() - Method in class BotInfo
Returns the list of authors of the bot, e.g., "John Doe (johndoe@somewhere.io)".
getB() - Method in class Color
Gets the blue component value of this color.
getBodyColor() - Method in class BaseBot
Returns the color of the body.
getBodyColor() - Method in class BotState
Returns the color the body.
getBodyColor() - Method in interface IBaseBot
Returns the color of the body.
getBotState() - Method in class TickEvent
Returns the current state of this bot.
getBullet() - Method in class BulletFiredEvent
Returns the bullet that was fired.
getBullet() - Method in class BulletHitBotEvent
Returns the bullet that hit the bot.
getBullet() - Method in class BulletHitBulletEvent
Returns the bullet that hit another bullet.
getBullet() - Method in class BulletHitWallEvent
Returns the bullet that has hit a wall.
getBullet() - Method in class HitByBulletEvent
Returns the bullet that hit your bot.
getBulletColor() - Method in class BaseBot
Returns the color of the fired bullets.
getBulletColor() - Method in class BotState
Returns the color of the bullets when fired.
getBulletColor() - Method in interface IBaseBot
Returns the color of the fired bullets.
getBulletDamage() - Method in class BotResults
Returns the bullet damage score.
getBulletId() - Method in class BulletState
Returns the unique id of the bullet.
getBulletKillBonus() - Method in class BotResults
Returns the bullet kill-bonus.
getBulletStates() - Method in class BaseBot
Current bullet states.
getBulletStates() - Method in class TickEvent
Returns the Current state of the bullets fired by this bot.
getBulletStates() - Method in interface IBaseBot
Current bullet states.
getColor() - Method in class BulletState
Returns the color of the bullet.
getCondition() - Method in class CustomEvent
Returns the condition that was met to trigger this custom event.
getCountryCodes() - Method in class BotInfo
Returns a list of country code(s) defined by ISO 3166-1 alpha-2, e.g.
getDamage() - Method in class BulletHitBotEvent
Returns the damage inflicted by the bullet.
getDamage() - Method in class HitByBulletEvent
Returns the damage inflicted by the bullet.
getDescription() - Method in class BotInfo
Returns a short description of the bot, preferably a one-liner.
This field is optional.
getDirection() - Method in class BaseBot
Current driving direction of the bot in degrees.
getDirection() - Method in class BotState
Returns the driving direction of the bot in degrees.
getDirection() - Method in class BulletState
Returns the direction of the bullet in degrees.
getDirection() - Method in class ScannedBotEvent
Returns the direction in degrees of the scanned bot.
getDirection() - Method in interface IBaseBot
Current driving direction of the bot in degrees.
getDirection() - Method in class InitialPosition
Returns the shared direction of the body, gun, and radar;
getDistanceRemaining() - Method in class Bot
Returns the distance remaining till the bot has finished moving after having called IBot.setForward(double), IBot.setBack(double), IBot.forward(double), or IBot.back(double).
getDistanceRemaining() - Method in interface IBot
Returns the distance remaining till the bot has finished moving after having called IBot.setForward(double), IBot.setBack(double), IBot.forward(double), or IBot.back(double).
getEnemyCount() - Method in class BaseBot
Number of enemies left in the round.
getEnemyCount() - Method in class BotState
Returns the number of enemy bots left on the battlefield.
getEnemyCount() - Method in interface IBaseBot
Number of enemies left in the round.
getEnergy() - Method in class BaseBot
Current energy level.
getEnergy() - Method in class BotState
Returns the energy level of the bot.
getEnergy() - Method in class BulletHitBotEvent
Returns the remaining energy level of the bot that got hit.
getEnergy() - Method in class HitBotEvent
Returns the remaining energy level of the victim bot.
getEnergy() - Method in class HitByBulletEvent
Returns the remaining energy level after the bullet hit.
getEnergy() - Method in class ScannedBotEvent
Returns the energy level of the scanned bot.
getEnergy() - Method in interface IBaseBot
Current energy level.
getError() - Method in class ConnectionErrorEvent
Returns the error.
getEventPriority(Class<BotEvent>) - Method in class BaseBot
Returns the event priority for a specific event class.
getEventPriority(Class<BotEvent>) - Method in interface IBaseBot
Returns the event priority for a specific event class.
getEvents() - Method in class BaseBot
Returns an ordered list containing all events currently in the bot's event queue.
getEvents() - Method in class TickEvent
Returns the events that occurred for the bot within the turn.
getEvents() - Method in interface IBaseBot
Returns an ordered list containing all events currently in the bot's event queue.
getFirepower() - Method in class BaseBot
Returns the firepower.
getFirepower() - Method in interface IBaseBot
Returns the firepower.
getFirstPlaces() - Method in class BotResults
Returns the number of 1st places for the bot.
getG() - Method in class Color
Gets the green component value of this color.
getGameSetup() - Method in class GameStartedEvent
Returns the game setup for the battle just started.
getGameType() - Method in class BaseBot
Game type, e.g.
getGameType() - Method in class GameSetup
Returns the game type, e.g.
getGameType() - Method in interface IBaseBot
Game type, e.g.
getGameTypes() - Method in class BotInfo
Returns the game type(s) accepted by the bot, e.g., "classic", "melee", "1v1".
getGraphics() - Method in class BaseBot
Gets a graphics object that the bot can paint debug information to.
getGraphics() - Method in interface IBaseBot
Gets a graphics object that the bot can paint debug information to.
getGunColor() - Method in class BaseBot
Returns the color of the gun.
getGunColor() - Method in class BotState
Returns the color of the gun.
getGunColor() - Method in interface IBaseBot
Returns the color of the gun.
getGunCoolingRate() - Method in class BaseBot
Gun cooling rate.
getGunCoolingRate() - Method in class GameSetup
Returns the gun cooling rate.
getGunCoolingRate() - Method in interface IBaseBot
Gun cooling rate.
getGunDirection() - Method in class BaseBot
Current direction of the gun in degrees.
getGunDirection() - Method in class BotState
Returns the gun direction of the bot in degrees.
getGunDirection() - Method in interface IBaseBot
Current direction of the gun in degrees.
getGunHeat() - Method in class BaseBot
Current gun heat.
getGunHeat() - Method in class BotState
Returns the gun heat.
getGunHeat() - Method in interface IBaseBot
Current gun heat.
getGunTurnRate() - Method in class BaseBot
Returns the gun turn rate in degrees per turn.
getGunTurnRate() - Method in class BotState
Returns the turn rate of the gun in degrees per turn (can be positive and negative).
getGunTurnRate() - Method in interface IBaseBot
Returns the gun turn rate in degrees per turn.
getGunTurnRemaining() - Method in class Bot
Returns the remaining turn in degrees till the gun has finished turning after having called IBot.setTurnGunLeft(double), IBot.setTurnGunRight(double), IBot.turnGunLeft(double), or IBot.turnGunRight(double).
getGunTurnRemaining() - Method in interface IBot
Returns the remaining turn in degrees till the gun has finished turning after having called IBot.setTurnGunLeft(double), IBot.setTurnGunRight(double), IBot.turnGunLeft(double), or IBot.turnGunRight(double).
getHitBullet() - Method in class BulletHitBulletEvent
Returns the other bullet that was hit by the bullet.
getHomepage() - Method in class BotInfo
Returns the URL of a web page for the bot.
This field is optional.
getInitialPosition() - Method in class BotInfo
Returns the initial starting position used for debugging only, which must be enabled at the server.
This field is optional.
getInitialPosition() - Method in class GameStartedEvent
Returns the start position of the bot.
getLastSurvivorBonus() - Method in class BotResults
Returns the last survivor score.
getMaxGunTurnRate() - Method in class BaseBot
Returns the maximum gun turn rate in degrees per turn.
getMaxGunTurnRate() - Method in interface IBaseBot
Returns the maximum gun turn rate in degrees per turn.
getMaxInactivityTurns() - Method in class BaseBot
The maximum number of inactive turns allowed the bot will become zapped by the game for being inactive.
getMaxInactivityTurns() - Method in class GameSetup
Returns the Maximum number of inactive turns allowed, where a bot does not take any action before it is zapped by the game.
getMaxInactivityTurns() - Method in interface IBaseBot
The maximum number of inactive turns allowed the bot will become zapped by the game for being inactive.
getMaxRadarTurnRate() - Method in class BaseBot
Returns the maximum radar turn rate in degrees per turn.
getMaxRadarTurnRate() - Method in interface IBaseBot
Returns the maximum radar turn rate in degrees per turn.
getMaxSpeed() - Method in class BaseBot
Returns the maximum speed in units per turn.
getMaxSpeed() - Method in interface IBaseBot
Returns the maximum speed in units per turn.
getMaxTurnRate() - Method in class BaseBot
Returns the maximum turn rate of the bot in degrees per turn.
getMaxTurnRate() - Method in interface IBaseBot
Returns the maximum turn rate of the bot in degrees per turn.
getMessage() - Method in class TeamMessageEvent
Returns the message that was received.
getMyId() - Method in class BaseBot
Unique id of this bot, which is available when the game has started.
getMyId() - Method in class GameStartedEvent
Returns the id used for identifying your bot in the current battle.
getMyId() - Method in interface IBaseBot
Unique id of this bot, which is available when the game has started.
getName() - Method in class BotInfo
Returns the name, e.g., "MyBot".
getName() - Method in class Condition
Returns the name of this condition, if a name has been provided for it.
getNumberOfRounds() - Method in class BaseBot
The number of rounds in a battle.
getNumberOfRounds() - Method in class GameEndedEvent
Returns the number of rounds played.
getNumberOfRounds() - Method in class GameSetup
Returns the number of rounds in a battle.
getNumberOfRounds() - Method in interface IBaseBot
The number of rounds in a battle.
getOwnerId() - Method in class BulletState
Returns the id of the owner bot that fired the bullet.
getPlatform() - Method in class BotInfo
Returns the platform used for running the bot, e.g., "Java Runtime Environment (JRE) 11".
This field is optional.
getPower() - Method in class BulletState
Returns the bullet firepower level.
getProgrammingLang() - Method in class BotInfo
Returns the programming language used for developing the bot, e.g., "Java 11" or "Kotlin 1.7.20".
This field is optional.
getR() - Method in class Color
Gets the red component value of this color.
getRadarColor() - Method in class BaseBot
Returns the color of the radar.
getRadarColor() - Method in class BotState
Returns the color of the radar.
getRadarColor() - Method in interface IBaseBot
Returns the color of the radar.
getRadarDirection() - Method in class BaseBot
Current direction of the radar in degrees.
getRadarDirection() - Method in class BotState
Returns the radar direction of the bot in degrees.
getRadarDirection() - Method in interface IBaseBot
Current direction of the radar in degrees.
getRadarSweep() - Method in class BotState
Returns the radar sweep angle in degrees, i.e.
getRadarTurnRate() - Method in class BaseBot
Returns the radar turn rate in degrees per turn.
getRadarTurnRate() - Method in class BotState
Returns the turn rate of the radar in degrees per turn (can be positive and negative).
getRadarTurnRate() - Method in interface IBaseBot
Returns the radar turn rate in degrees per turn.
getRadarTurnRemaining() - Method in class Bot
Returns the remaining turn in degrees till the radar has finished turning after having called IBot.setTurnRadarLeft(double), IBot.setTurnRadarRight(double), IBot.turnRadarLeft(double), or IBot.turnRadarRight(double).
getRadarTurnRemaining() - Method in interface IBot
Returns the remaining turn in degrees till the radar has finished turning after having called IBot.setTurnRadarLeft(double), IBot.setTurnRadarRight(double), IBot.turnRadarLeft(double), or IBot.turnRadarRight(double).
getRamDamage() - Method in class BotResults
Returns the ram damage score.
getRamKillBonus() - Method in class BotResults
Returns the ram kill-bonus.
getRank() - Method in class BotResults
Returns the rank/placement of the bot, where 1 means 1st place, 4 means 4th place etc.
getReadyTimeout() - Method in class GameSetup
Returns the time limit in microseconds (µs) for sending ready message after having received 'new battle' message.
getReason() - Method in class DisconnectedEvent
Returns a message with the reason for closing the connection, if such reason exists.
getResults() - Method in class GameEndedEvent
Returns the results of the battle.
getResults() - Method in class RoundEndedEvent
Returns the accumulated bot results at the end of the round.
getRoundNumber() - Method in class BaseBot
Current round number.
getRoundNumber() - Method in class RoundEndedEvent
Returns the round number.
getRoundNumber() - Method in class RoundStartedEvent
Returns the round number.
getRoundNumber() - Method in class TickEvent
Returns the current round number.
getRoundNumber() - Method in interface IBaseBot
Current round number.
getScanColor() - Method in class BaseBot
Returns the color of the scan arc.
getScanColor() - Method in class BotState
Returns the color of the scan arc.
getScanColor() - Method in interface IBaseBot
Returns the color of the scan arc.
getScannedBotId() - Method in class ScannedBotEvent
Returns the id of the bot that was scanned.
getScannedByBotId() - Method in class ScannedBotEvent
Returns the id of the bot did the scanning.
getSecondPlaces() - Method in class BotResults
Returns the number of 2nd places for the bot.
getSenderId() - Method in class TeamMessageEvent
Returns the ID of the teammate that sent the message.
getSpeed() - Method in class BaseBot
The current speed measured in units per turn.
getSpeed() - Method in class BotState
Returns the speed measured in units per turn.
getSpeed() - Method in class BulletState
Returns the speed of the bullet measured in units per turn.
getSpeed() - Method in class ScannedBotEvent
Returns the Speed measured in units per turn of the scanned bot.
getSpeed() - Method in interface IBaseBot
The current speed measured in units per turn.
getStatusCode() - Method in class DisconnectedEvent
Returns a status code that indicates the reason for closing the connection, if such status code exists.
getSurvival() - Method in class BotResults
Returns the accumulated survival score.
getTargetSpeed() - Method in class BaseBot
Returns the target speed in units per turn.
getTargetSpeed() - Method in interface IBaseBot
Returns the target speed in units per turn.
getTeammateIds() - Method in class BaseBot
Returns the ids of all teammates.
getTeammateIds() - Method in interface IBaseBot
Returns the ids of all teammates.
getThirdPlaces() - Method in class BotResults
Returns the number of 3rd places for the bot.
getTimeLeft() - Method in class BaseBot
The number of microseconds left of this turn before the bot will skip the turn.
getTimeLeft() - Method in interface IBaseBot
The number of microseconds left of this turn before the bot will skip the turn.
getTotalScore() - Method in class BotResults
Returns the total score is the sum of all scores and determines the ranking.
getTracksColor() - Method in class BaseBot
Returns the color of the tracks.
getTracksColor() - Method in class BotState
Returns the color of the tracks.
getTracksColor() - Method in interface IBaseBot
Returns the color of the tracks.
getTurnNumber() - Method in class BaseBot
Current turn number.
getTurnNumber() - Method in class BotEvent
Returns the turn number when this event occurred.
getTurnNumber() - Method in class RoundEndedEvent
Returns the turn number.
getTurnNumber() - Method in interface IBaseBot
Current turn number.
getTurnRate() - Method in class BaseBot
Returns the turn rate of the bot in degrees per turn.
getTurnRate() - Method in class BotState
Returns the turn rate of the body in degrees per turn (can be positive and negative).
getTurnRate() - Method in interface IBaseBot
Returns the turn rate of the bot in degrees per turn.
getTurnRemaining() - Method in class Bot
Returns the remaining turn in degrees till the bot has finished turning after having called IBot.setTurnLeft(double), IBot.setTurnRight(double), IBot.turnLeft(double), or IBot.turnRight(double).
getTurnRemaining() - Method in interface IBot
Returns the remaining turn in degrees till the bot has finished turning after having called IBot.setTurnLeft(double), IBot.setTurnRight(double), IBot.turnLeft(double), or IBot.turnRight(double).
getTurnTimeout() - Method in class BaseBot
The turn timeout is important as the bot needs to take action by calling IBaseBot.go() before the turn timeout occurs.
getTurnTimeout() - Method in class GameSetup
Returns the timeout in microseconds (µs) for sending intent after having received 'tick' message.
getTurnTimeout() - Method in interface IBaseBot
The turn timeout is important as the bot needs to take action by calling IBaseBot.go() before the turn timeout occurs.
getTurretColor() - Method in class BaseBot
Returns the color of the gun turret.
getTurretColor() - Method in class BotState
Returns the color of the gun turret.
getTurretColor() - Method in interface IBaseBot
Returns the color of the gun turret.
getVariant() - Method in class BaseBot
The game variant, which is "Tank Royale".
getVariant() - Method in interface IBaseBot
The game variant, which is "Tank Royale".
getVersion() - Method in class BaseBot
Game version, e.g.
getVersion() - Method in class BotInfo
Returns the version, e.g., "1.0".
getVersion() - Method in interface IBaseBot
Game version, e.g.
getVictimId() - Method in class BotDeathEvent
Returns the id of the bot that has died.
getVictimId() - Method in class BulletHitBotEvent
Returns the id of the victim bot that got hit.
getVictimId() - Method in class HitBotEvent
Returns the id of the other bot that your bot has collided with.
getX() - Method in class BaseBot
Current X coordinate of the center of the bot.
getX() - Method in class BotState
Returns the X coordinate of the bot, which is in the center of the bot.
getX() - Method in class BulletState
Returns the X coordinate of the bullet.
getX() - Method in class HitBotEvent
Returns the X coordinate of victim bot.
getX() - Method in class ScannedBotEvent
Returns the X coordinate of the scanned bot.
getX() - Method in class Point
Gets the x-coordinate of this Point.
getX() - Method in interface IBaseBot
Current X coordinate of the center of the bot.
getX() - Method in class InitialPosition
Returns the x coordinate;
getY() - Method in class BaseBot
Current Y coordinate of the center of the bot.
getY() - Method in class BotState
Returns the Y coordinate of the bot, which is in the center of the bot.
getY() - Method in class BulletState
Returns the Y coordinate of the bullet.
getY() - Method in class HitBotEvent
Returns the Y coordinate of victim bot.
getY() - Method in class ScannedBotEvent
Returns the Y coordinate of the scanned bot.
getY() - Method in class Point
Gets the y-coordinate of this Point.
getY() - Method in interface IBaseBot
Current Y coordinate of the center of the bot.
getY() - Method in class InitialPosition
Returns the y coordinate;
GHOST_WHITE - Static variable in class Color
 
go() - Method in class BaseBot
Commits the current commands (actions), which finalizes the current turn for the bot.
go() - Method in interface IBaseBot
Commits the current commands (actions), which finalizes the current turn for the bot.
GOLD - Static variable in class Color
 
GOLDENROD - Static variable in class Color
 
GRAY - Static variable in class Color
 
GREEN - Static variable in class Color
 
GREEN_YELLOW - Static variable in class Color
 
gunBearingTo(double, double) - Method in interface IBaseBot
Calculates the bearing (delta angle) between the current direction of the bot´s gun and the direction to the point x,y.

H

hashCode() - Method in class Color
 
hashCode() - Method in class Point
Returns the hash code for this Point.
hashCode() - Method in class InitialPosition
HIT_BOT - Static variable in class DefaultEventPriority
Event priority for the HitBotEvent
HIT_BY_BULLET - Static variable in class DefaultEventPriority
Event priority for the HitByBulletEvent
HIT_WALL - Static variable in class DefaultEventPriority
Event priority for the HitWallEvent
HitBotEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a bot has collided with another bot.
HitBotEvent(int, int, double, double, double, boolean) - Constructor for class HitBotEvent
Initializes a new instance of the BotHitBotEvent class.
HitByBulletEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a bullet has hit your bot.
HitByBulletEvent(int, BulletState, double, double) - Constructor for class HitByBulletEvent
Initializes a new instance of the HitByBulletEvent class.
HitWallEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when your bot has hit a wall.
HitWallEvent(int) - Constructor for class HitWallEvent
Initializes a new instance of the BotHitWallEvent class.
HONEYDEW - Static variable in class Color
 
HOT_PINK - Static variable in class Color
 

I

IBaseBot - Interface in dev.robocode.tankroyale.botapi
Interface containing the core API for a bot.
IBot - Interface in dev.robocode.tankroyale.botapi
Interface for a bot that extends the core API with convenient methods for movement, turning, and firing the gun.
IEvent - Interface in dev.robocode.tankroyale.botapi.events
Interface for an event.
IGraphics - Interface in dev.robocode.tankroyale.botapi.graphics
Interface for graphics context that provides methods for drawing graphics primitives.
INDIAN_RED - Static variable in class Color
 
INDIGO - Static variable in class Color
 
InitialPosition - Class in dev.robocode.tankroyale.botapi
Initial starting position containing a start coordinate (x,y) and the shared direction of the body, gun, and radar.
InitialPosition(Double, Double, Double) - Constructor for class InitialPosition
Initializes a new instance of the InitialPosition class.
isAdjustGunForBodyTurn() - Method in class BaseBot
Checks if the gun is set to adjust for the bot turning, i.e.
isAdjustGunForBodyTurn() - Method in interface IBaseBot
Checks if the gun is set to adjust for the bot turning, i.e.
isAdjustRadarForBodyTurn() - Method in class BaseBot
Checks if the radar is set to adjust for the body turning, i.e.
isAdjustRadarForBodyTurn() - Method in interface IBaseBot
Checks if the radar is set to adjust for the body turning, i.e.
isAdjustRadarForGunTurn() - Method in class BaseBot
Checks if the radar is set to adjust for the gun turning, i.e.
isAdjustRadarForGunTurn() - Method in interface IBaseBot
Checks if the radar is set to adjust for the gun turning, i.e.
isCritical() - Method in class BotEvent
Indicates if this event is critical, and hence should not be removed from event queue when it gets old.
isCritical() - Method in class DeathEvent
Indicates if this event is critical, and hence should not be removed from event queue when it gets old.
isCritical() - Method in class SkippedTurnEvent
Indicates if this event is critical, and hence should not be removed from event queue when it gets old.
isCritical() - Method in class WonRoundEvent
Indicates if this event is critical, and hence should not be removed from event queue when it gets old.
isDebuggingEnabled() - Method in class BaseBot
Flag indicating if graphical debugging is enabled and hence if IBaseBot.getGraphics() can be used for debug painting.
isDebuggingEnabled() - Method in class BotState
Checks if graphical debugging is enabled.
isDebuggingEnabled() - Method in interface IBaseBot
Flag indicating if graphical debugging is enabled and hence if IBaseBot.getGraphics() can be used for debug painting.
isDisabled() - Method in class BaseBot
Specifies if the bot is disabled, i.e., when the energy is zero.
isDisabled() - Method in interface IBaseBot
Specifies if the bot is disabled, i.e., when the energy is zero.
isDroid() - Method in class BotState
Checks if the bot is a droid or not.
isRammed() - Method in class HitBotEvent
Checks if the other bot got rammed by your bot.
isRemote() - Method in class DisconnectedEvent
Checks if closing the connection was initiated by the remote host.
isRunning() - Method in class Bot
Checks if this bot is running.
isRunning() - Method in interface IBot
Checks if this bot is running.
isStopped() - Method in class BaseBot
Checks if the movement has been stopped.
isStopped() - Method in interface IBaseBot
Checks if the movement has been stopped.
isTeammate(int) - Method in class BaseBot
Checks if the provided bot id is a teammate or not.
isTeammate(int) - Method in interface IBaseBot
Checks if the provided bot id is a teammate or not.
IVORY - Static variable in class Color
 

K

KHAKI - Static variable in class Color
 

L

LAVENDER - Static variable in class Color
 
LAVENDER_BLUSH - Static variable in class Color
 
LAWN_GREEN - Static variable in class Color
 
LEMON_CHIFFON - Static variable in class Color
 
LIGHT_BLUE - Static variable in class Color
 
LIGHT_CORAL - Static variable in class Color
 
LIGHT_CYAN - Static variable in class Color
 
LIGHT_GOLDENROD_YELLOW - Static variable in class Color
 
LIGHT_GRAY - Static variable in class Color
 
LIGHT_GREEN - Static variable in class Color
 
LIGHT_PINK - Static variable in class Color
 
LIGHT_SALMON - Static variable in class Color
 
LIGHT_SEA_GREEN - Static variable in class Color
 
LIGHT_SKY_BLUE - Static variable in class Color
 
LIGHT_SLATE_GRAY - Static variable in class Color
 
LIGHT_STEEL_BLUE - Static variable in class Color
 
LIGHT_YELLOW - Static variable in class Color
 
LIME - Static variable in class Color
 
LIME_GREEN - Static variable in class Color
 
LINEN - Static variable in class Color
 

M

MAGENTA - Static variable in class Color
 
MAROON - Static variable in class Color
 
MAX_AUTHOR_LENGTH - Static variable in class BotInfo
Maximum number of characters accepted for an author name.
MAX_BULLET_SPEED - Static variable in class Constants
The maximum bullet speed is 19.7 units per turn.
MAX_DESCRIPTION_LENGTH - Static variable in class BotInfo
Maximum number of characters accepted for the description.
MAX_FIREPOWER - Static variable in class Constants
The maximum firepower, which is 3.
MAX_GAME_TYPE_LENGTH - Static variable in class BotInfo
Maximum number of characters accepted for a game type.
MAX_GUN_TURN_RATE - Static variable in class Constants
The maximum gun turn rate, which is a constant of 20 degrees per turn.
MAX_HOMEPAGE_LENGTH - Static variable in class BotInfo
Maximum number of characters accepted for the link to the homepage.
MAX_NAME_LENGTH - Static variable in class BotInfo
Maximum number of characters accepted for the name.
MAX_NUMBER_OF_AUTHORS - Static variable in class BotInfo
Maximum number of authors accepted.
MAX_NUMBER_OF_COUNTRY_CODES - Static variable in class BotInfo
Maximum number of country codes accepted.
MAX_NUMBER_OF_GAME_TYPES - Static variable in class BotInfo
Maximum number of game types accepted.
MAX_NUMBER_OF_TEAM_MESSAGES_PER_TURN - Static variable in interface IBaseBot
The maximum number of team messages that can be sent per turn, which is 10 messages.
MAX_PLATFORM_LENGTH - Static variable in class BotInfo
Maximum number of characters accepted for the platform name.
MAX_PROGRAMMING_LANG_LENGTH - Static variable in class BotInfo
Maximum number of characters accepted for the programming language name.
MAX_RADAR_TURN_RATE - Static variable in class Constants
The maximum radar turn rate, which is a constant of 45 degrees per turn.
MAX_SPEED - Static variable in class Constants
The maximum absolute speed, which is 8 units per turn.
MAX_TURN_RATE - Static variable in class Constants
The maximum possible driving turn rate, which is max.
MAX_VERSION_LENGTH - Static variable in class BotInfo
Maximum number of characters accepted for the version.
MEDIUM_AQUAMARINE - Static variable in class Color
 
MEDIUM_BLUE - Static variable in class Color
 
MEDIUM_ORCHID - Static variable in class Color
 
MEDIUM_PURPLE - Static variable in class Color
 
MEDIUM_SEA_GREEN - Static variable in class Color
 
MEDIUM_SLATE_BLUE - Static variable in class Color
 
MEDIUM_SPRING_GREEN - Static variable in class Color
 
MEDIUM_TURQUOISE - Static variable in class Color
 
MEDIUM_VIOLET_RED - Static variable in class Color
 
MELEE - Static variable in class GameType
Melee battle with a minimum of 10 bots battling each other on an arena of 1000 x 1000 units.
MIDNIGHT_BLUE - Static variable in class Color
 
MIN_BULLET_SPEED - Static variable in class Constants
The minimum bullet speed is 11 units per turn.
MIN_FIREPOWER - Static variable in class Constants
The minimum firepower, which is 0.1.
MINT_CREAM - Static variable in class Color
 
MISTY_ROSE - Static variable in class Color
 
MOCCASIN - Static variable in class Color
 

N

NAVAJO_WHITE - Static variable in class Color
 
NAVY - Static variable in class Color
 
NextTurnCondition - Class in dev.robocode.tankroyale.botapi.events
Prebuilt condition that can be used for waiting for the next turn.
NextTurnCondition(IBaseBot) - Constructor for class NextTurnCondition
Constructor for initializing a new instance of the NextTurnCondition class.
normalizeAbsoluteAngle(double) - Method in interface IBaseBot
Normalizes an angle to an absolute angle into the range [0,360[
normalizeRelativeAngle(double) - Method in interface IBaseBot
Normalizes an angle to a relative angle in the range [-180, 180).

O

OLD_LACE - Static variable in class Color
 
OLIVE - Static variable in class Color
 
OLIVE_DRAB - Static variable in class Color
 
onBotDeath(BotDeathEvent) - Method in interface IBaseBot
The event handler triggered when another bot has died.
onBulletFired(BulletFiredEvent) - Method in interface IBaseBot
The event handler triggered when the bot has fired a bullet.
onBulletHit(BulletHitBotEvent) - Method in interface IBaseBot
The event handler triggered when the bot has hit another bot with a bullet.
onBulletHitBullet(BulletHitBulletEvent) - Method in interface IBaseBot
The event handler triggered when a bullet fired from the bot has collided with another bullet.
onBulletHitWall(BulletHitWallEvent) - Method in interface IBaseBot
The event handler triggered when a bullet has hit a wall.
onConnected(ConnectedEvent) - Method in interface IBaseBot
The event handler triggered when connected to the server.
onConnectionError(ConnectionErrorEvent) - Method in interface IBaseBot
The event handler triggered when a connection error occurs.
onCustomEvent(CustomEvent) - Method in interface IBaseBot
The event handler triggered when some condition has been met.
onDeath(DeathEvent) - Method in interface IBaseBot
The event handler triggered when this bot has died.
onDisconnected(DisconnectedEvent) - Method in interface IBaseBot
The event handler triggered when disconnected from the server.
ONE_VS_ONE - Static variable in class GameType
One versus one (1-vs-1) battle between exactly two bots alone on an arena of 1000 x 1000 units.
onGameEnded(GameEndedEvent) - Method in interface IBaseBot
The event handler triggered when a game has ended.
onGameStarted(GameStartedEvent) - Method in interface IBaseBot
The event handler triggered when a game has started.
onHitBot(HitBotEvent) - Method in interface IBaseBot
The event handler triggered when the bot has collided with another bot.
onHitByBullet(HitByBulletEvent) - Method in interface IBaseBot
The event handler triggered when the bot has been hit by a bullet.
onHitWall(HitWallEvent) - Method in interface IBaseBot
The event handler triggered when the bot has hit a wall.
onRoundEnded(RoundEndedEvent) - Method in interface IBaseBot
The event handler triggered when a round has ended.
onRoundStarted(RoundStartedEvent) - Method in interface IBaseBot
The event handler triggered when a new round has started.
onScannedBot(ScannedBotEvent) - Method in interface IBaseBot
The event handler triggered when the bot has skipped a turn.
onSkippedTurn(SkippedTurnEvent) - Method in interface IBaseBot
Handles the event triggered when the bot skips a turn.
onTeamMessage(TeamMessageEvent) - Method in interface IBaseBot
The event handler triggered when the bot has received a message from a teammate.
onTick(TickEvent) - Method in interface IBaseBot
The event handler triggered when a game tick event occurs, i.e., when a new turn in a round has started.
onWonRound(WonRoundEvent) - Method in interface IBaseBot
The event handler triggered when the bot has won a round.
ORANGE - Static variable in class Color
 
ORANGE_RED - Static variable in class Color
 
ORCHID - Static variable in class Color
 

P

PALE_GOLDENROD - Static variable in class Color
 
PALE_GREEN - Static variable in class Color
 
PALE_TURQUOISE - Static variable in class Color
 
PALE_VIOLET_RED - Static variable in class Color
 
PAPAYA_WHIP - Static variable in class Color
 
PEACH_PUFF - Static variable in class Color
 
PERU - Static variable in class Color
 
PINK - Static variable in class Color
 
PLUM - Static variable in class Color
 
Point - Class in dev.robocode.tankroyale.botapi.graphics
Represents an ordered pair of x and y coordinates that define a point in a two-dimensional plane.
Point(double, double) - Constructor for class Point
Initializes a new instance of the Point class with the specified coordinates.
POWDER_BLUE - Static variable in class Color
 
PURPLE - Static variable in class Color
 

R

radarBearingTo(double, double) - Method in interface IBaseBot
Calculates the bearing (delta angle) between the current direction of the bot´s radar and the direction to the point x,y.
RED - Static variable in class Color
 
removeCustomEvent(Condition) - Method in class BaseBot
Removes triggering a custom event handler for a specific condition that was previously added with IBaseBot.addCustomEvent(dev.robocode.tankroyale.botapi.events.Condition).
removeCustomEvent(Condition) - Method in interface IBaseBot
Removes triggering a custom event handler for a specific condition that was previously added with IBaseBot.addCustomEvent(dev.robocode.tankroyale.botapi.events.Condition).
rescan() - Method in class Bot
Scan (again) with the radar.
rescan() - Method in interface IBot
Scan (again) with the radar.
resume() - Method in class Bot
Resume the movement prior to calling the IBaseBot.setStop() or IBot.stop() method.
resume() - Method in interface IBot
Resume the movement prior to calling the IBaseBot.setStop() or IBot.stop() method.
ROSY_BROWN - Static variable in class Color
 
RoundEndedEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a round has just ended.
RoundEndedEvent(int, int, BotResults) - Constructor for class RoundEndedEvent
Initializes a new instance of the RoundEndedEvent class.
RoundStartedEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a new round has just started.
RoundStartedEvent(int) - Constructor for class RoundStartedEvent
Initializes a new instance of the RoundStartedEvent class.
ROYAL_BLUE - Static variable in class Color
 
run() - Method in interface IBot
The run() method is used for running a program for the bot like:

S

SADDLE_BROWN - Static variable in class Color
 
SALMON - Static variable in class Color
 
SANDY_BROWN - Static variable in class Color
 
SCAN_RADIUS - Static variable in class Constants
The radius of the radar's scan beam, which is a constant of 1200 units.
SCANNED_BOT - Static variable in class DefaultEventPriority
Event priority for the ScannedBotEvent
ScannedBotEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a bot has scanned another bot.
ScannedBotEvent(int, int, int, double, double, double, double, double) - Constructor for class ScannedBotEvent
Initializes a new instance of the ScannedBotEvent class.
SEA_GREEN - Static variable in class Color
 
SEA_SHELL - Static variable in class Color
 
sendTeamMessage(int, Object) - Method in class BaseBot
Sends a message to a specific teammate.

When the message is sent, it is serialized into a JSON representation, meaning that all public fields, and only public fields, are being serialized into a JSON representation as a DTO (data transfer object).

The maximum team message size limit is defined by IBaseBot.TEAM_MESSAGE_MAX_SIZE, which is set to 32768 bytes.
sendTeamMessage(int, Object) - Method in interface IBaseBot
Sends a message to a specific teammate.

When the message is sent, it is serialized into a JSON representation, meaning that all public fields, and only public fields, are being serialized into a JSON representation as a DTO (data transfer object).

The maximum team message size limit is defined by IBaseBot.TEAM_MESSAGE_MAX_SIZE, which is set to 32768 bytes.
setAdjustGunForBodyTurn(boolean) - Method in class BaseBot
Sets the gun to adjust for the bot´s turn when setting the gun turn rate.
setAdjustGunForBodyTurn(boolean) - Method in interface IBaseBot
Sets the gun to adjust for the bot´s turn when setting the gun turn rate.
setAdjustRadarForBodyTurn(boolean) - Method in class BaseBot
Sets the radar to adjust for the body's turn when setting the radar turn rate.
setAdjustRadarForBodyTurn(boolean) - Method in interface IBaseBot
Sets the radar to adjust for the body's turn when setting the radar turn rate.
setAdjustRadarForGunTurn(boolean) - Method in class BaseBot
Sets the radar to adjust for the gun's turn when setting the radar turn rate.
setAdjustRadarForGunTurn(boolean) - Method in interface IBaseBot
Sets the radar to adjust for the gun's turn when setting the radar turn rate.
setAuthors(List<String>) - Method in interface BotInfo.IBuilder
Sets the names(s) of the author(s) of the bot.
setBack(double) - Method in class Bot
Set the bot to move backward until it has traveled a specific distance from its current position, or it is moving into an obstacle.
setBack(double) - Method in interface IBot
Set the bot to move backward until it has traveled a specific distance from its current position, or it is moving into an obstacle.
setBodyColor(Color) - Method in class BaseBot
Sets the color of the body.
setBodyColor(Color) - Method in interface IBaseBot
Sets the color of the body.
setBulletColor(Color) - Method in class BaseBot
Sets the color of the fired bullets.
setBulletColor(Color) - Method in interface IBaseBot
Sets the color of the fired bullets.
setCountryCodes(List<String>) - Method in interface BotInfo.IBuilder
Sets the country codes for the bot.
setDescription(String) - Method in interface BotInfo.IBuilder
Sets a short description of the bot.
setEventPriority(Class<BotEvent>, int) - Method in class BaseBot
Changes the event priority for an event class.
setEventPriority(Class<BotEvent>, int) - Method in interface IBaseBot
Changes the event priority for an event class.
setFillColor(Color) - Method in interface IGraphics
Sets the color used for filling shapes.
setFillColor(Color) - Method in class SvgGraphics
Sets the color used for filling shapes.
setFire(double) - Method in class BaseBot
Sets the gun to fire in the direction that the gun is pointing with the specified firepower.
setFire(double) - Method in interface IBaseBot
Sets the gun to fire in the direction that the gun is pointing with the specified firepower.
setFireAssist(boolean) - Method in class BaseBot
Enables or disables fire assistance explicitly.
setFireAssist(boolean) - Method in interface IBaseBot
Enables or disables fire assistance explicitly.
setFont(String, double) - Method in interface IGraphics
Sets the font used for drawing text.
setFont(String, double) - Method in class SvgGraphics
Sets the font used for drawing text.
setForward(double) - Method in class Bot
Set the bot to move forward until it has traveled a specific distance from its current position, or it is moving into an obstacle.
setForward(double) - Method in interface IBot
Set the bot to move forward until it has traveled a specific distance from its current position, or it is moving into an obstacle.
setGameTypes(Set<String>) - Method in interface BotInfo.IBuilder
Sets the game types that this bot is capable of participating in.
setGunColor(Color) - Method in class BaseBot
Sets the color of the gun.
setGunColor(Color) - Method in interface IBaseBot
Sets the color of the gun.
setGunTurnRate(double) - Method in class BaseBot
Sets the turn rate of the gun, which can be positive and negative.
setGunTurnRate(double) - Method in class Bot
Sets the turn rate of the gun, which can be positive and negative.
setGunTurnRate(double) - Method in interface IBaseBot
Sets the turn rate of the gun, which can be positive and negative.
setHomepage(String) - Method in interface BotInfo.IBuilder
Sets a link to the homepage for the bot.
setInitialPosition(InitialPosition) - Method in interface BotInfo.IBuilder
Sets the initial position of this bot.
setInterruptible(boolean) - Method in class BaseBot
Call this method during an event handler to control continuing or restarting the event handler, when a new event occurs again for the same event handler while processing an earlier event.
setInterruptible(boolean) - Method in interface IBaseBot
Call this method during an event handler to control continuing or restarting the event handler, when a new event occurs again for the same event handler while processing an earlier event.
setMaxGunTurnRate(double) - Method in class BaseBot
Sets the maximum turn rate which applies to turn the gun to the left or right.
setMaxGunTurnRate(double) - Method in interface IBaseBot
Sets the maximum turn rate which applies to turn the gun to the left or right.
setMaxRadarTurnRate(double) - Method in class BaseBot
Sets the maximum turn rate which applies to turn the radar to the left or right.
setMaxRadarTurnRate(double) - Method in interface IBaseBot
Sets the maximum turn rate which applies to turn the radar to the left or right.
setMaxSpeed(double) - Method in class BaseBot
Sets the maximum speed which applies when moving forward and backward.
setMaxSpeed(double) - Method in interface IBaseBot
Sets the maximum speed which applies when moving forward and backward.
setMaxTurnRate(double) - Method in class BaseBot
Sets the maximum turn rate which applies to turn the bot to the left or right.
setMaxTurnRate(double) - Method in interface IBaseBot
Sets the maximum turn rate which applies to turn the bot to the left or right.
setName(String) - Method in interface BotInfo.IBuilder
Sets the bot name.
setPlatform(String) - Method in interface BotInfo.IBuilder
Sets the name of the platform that this bot is build for.
setProgrammingLang(String) - Method in interface BotInfo.IBuilder
Sets the name of the programming language used for developing this bot.
setRadarColor(Color) - Method in class BaseBot
Sets the color of the radar.
setRadarColor(Color) - Method in interface IBaseBot
Sets the color of the radar.
setRadarTurnRate(double) - Method in class BaseBot
Sets the turn rate of the radar, which can be positive and negative.
setRadarTurnRate(double) - Method in class Bot
Sets the turn rate of the radar, which can be positive and negative.
setRadarTurnRate(double) - Method in interface IBaseBot
Sets the turn rate of the radar, which can be positive and negative.
setRescan() - Method in class BaseBot
Sets the bot to rescan with the radar.
setRescan() - Method in interface IBaseBot
Sets the bot to rescan with the radar.
setResume() - Method in class BaseBot
Sets the bot to resume movement after having been stopped, e.g.
setResume() - Method in interface IBaseBot
Sets the bot to resume movement after having been stopped, e.g.
setScanColor(Color) - Method in class BaseBot
Sets the color of the scan arc.
setScanColor(Color) - Method in interface IBaseBot
Sets the color of the scan arc.
setStop() - Method in class BaseBot
Sets the bot to stop all movement including turning the gun and radar.
setStop() - Method in interface IBaseBot
Sets the bot to stop all movement including turning the gun and radar.
setStop(boolean) - Method in class BaseBot
Sets the bot to stop all movement including turning the gun and radar.
setStop(boolean) - Method in interface IBaseBot
Sets the bot to stop all movement including turning the gun and radar.
setStrokeColor(Color) - Method in interface IGraphics
Sets the color used for drawing outlines.
setStrokeColor(Color) - Method in class SvgGraphics
Sets the color used for drawing outlines.
setStrokeWidth(double) - Method in interface IGraphics
Sets the width of the stroke used for drawing outlines.
setStrokeWidth(double) - Method in class SvgGraphics
Sets the width of the stroke used for drawing outlines.
setTargetSpeed(double) - Method in class BaseBot
Sets the new target speed for the bot in units per turn.
setTargetSpeed(double) - Method in class Bot
Sets the new target speed for the bot in units per turn.
setTargetSpeed(double) - Method in interface IBaseBot
Sets the new target speed for the bot in units per turn.
setTracksColor(Color) - Method in class BaseBot
Sets the color of the tracks.
setTracksColor(Color) - Method in interface IBaseBot
Sets the color of the tracks.
setTurnGunLeft(double) - Method in class Bot
Set the gun to turn to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnGunLeft(double) - Method in interface IBot
Set the gun to turn to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnGunRight(double) - Method in class Bot
Set the gun to turn to the right (following the decreasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnGunRight(double) - Method in interface IBot
Set the gun to turn to the right (following the decreasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnLeft(double) - Method in class Bot
Set the bot to turn to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnLeft(double) - Method in interface IBot
Set the bot to turn to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnRadarLeft(double) - Method in class Bot
Set the radar to turn to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnRadarLeft(double) - Method in interface IBot
Set the radar to turn to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnRadarRight(double) - Method in class Bot
Set the radar to turn to the right (following the decreasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnRadarRight(double) - Method in interface IBot
Set the radar to turn to the right (following the decreasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnRate(double) - Method in class BaseBot
Sets the turn rate of the bot, which can be positive and negative.
setTurnRate(double) - Method in class Bot
Sets the turn rate of the bot, which can be positive and negative.
setTurnRate(double) - Method in interface IBaseBot
Sets the turn rate of the bot, which can be positive and negative.
setTurnRight(double) - Method in class Bot
Set the bot to turn to the right (following the decreasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurnRight(double) - Method in interface IBot
Set the bot to turn to the right (following the decreasing degrees of the unit circle) until it turned the specified amount of degrees.
setTurretColor(Color) - Method in class BaseBot
Sets the color of the gun turret.
setTurretColor(Color) - Method in interface IBaseBot
Sets the color of the gun turret.
setVersion(String) - Method in interface BotInfo.IBuilder
Sets the bot version.
SIENNA - Static variable in class Color
 
SILVER - Static variable in class Color
 
SKIPPED_TURN - Static variable in class DefaultEventPriority
Event priority for the SkippedTurnEvent
SkippedTurnEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when the bot has skipped a turn, meaning that no intent has reached the server for a specific turn.
SkippedTurnEvent(int) - Constructor for class SkippedTurnEvent
Initializes a new instance of the SkippedTurnEvent class.
SKY_BLUE - Static variable in class Color
 
SLATE_BLUE - Static variable in class Color
 
SLATE_GRAY - Static variable in class Color
 
SNOW - Static variable in class Color
 
SPRING_GREEN - Static variable in class Color
 
start() - Method in class BaseBot
The method used to start running the bot.
start() - Method in interface IBaseBot
The method used to start running the bot.
STEEL_BLUE - Static variable in class Color
 
stop() - Method in class Bot
Stop all movement including turning the gun and radar.
stop() - Method in interface IBot
Stop all movement including turning the gun and radar.
stop(boolean) - Method in class Bot
Stop all movement including turning the gun and radar.
stop(boolean) - Method in interface IBot
Stop all movement including turning the gun and radar.
SvgGraphics - Class in dev.robocode.tankroyale.botapi.graphics
Implementation of IGraphics that generates SVG markup.
SvgGraphics() - Constructor for class SvgGraphics
 

T

TAN - Static variable in class Color
 
TEAL - Static variable in class Color
 
TEAM_MESSAGE - Static variable in class DefaultEventPriority
Event priority for the TeamMessageEvent.
TEAM_MESSAGE_MAX_SIZE - Static variable in interface IBaseBot
The maximum size of a team message, which is 32 KB (32.786 bytes).
TeamMessageEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a bot has received a message from a teammate.
TeamMessageEvent(int, Object, int) - Constructor for class TeamMessageEvent
Initializes a new instance of the TeamMessageEvent class.
test() - Method in class Condition
You can choose to override this method to let the game use it for testing your condition each turn.
test() - Method in class NextTurnCondition
This method tests if the turn number has changed since we created this condition.
THISTLE - Static variable in class Color
 
TICK - Static variable in class DefaultEventPriority
Event priority for the TickEvent
TickEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring whenever a new turn in a round has started.
TickEvent(int, int, BotState, Collection<BulletState>, Collection<BotEvent>) - Constructor for class TickEvent
Initializes a new instance of the TickEvent class.
toHexColor() - Method in class Color
Converts the color to its hexadecimal representation.
TOMATO - Static variable in class Color
 
toRgba() - Method in class Color
Converts this Color object to a 32-bit RGBA value.
toString() - Method in class Color
 
toString() - Method in class Point
Returns a string that represents the current Point.
toString() - Method in class InitialPosition
toSvg() - Method in interface IGraphics
Generates the SVG representation of all drawing operations.
toSvg() - Method in class SvgGraphics
Generates the SVG representation of all drawing operations.
TRANSPARENT - Static variable in class Color
 
turnGunLeft(double) - Method in class Bot
Turn the gun to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
turnGunLeft(double) - Method in interface IBot
Turn the gun to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
turnGunRight(double) - Method in class Bot
Turn the gun to the right (following the decreasing degrees of the unit circle) until it turned the specified amount of degrees.
turnGunRight(double) - Method in interface IBot
Turn the gun to the right (following the decreasing degrees of the unit circle) until it turned the specified amount of degrees.
turnLeft(double) - Method in class Bot
Turn the bot to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
turnLeft(double) - Method in interface IBot
Turn the bot to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
turnRadarLeft(double) - Method in class Bot
Turn the radar to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
turnRadarLeft(double) - Method in interface IBot
Turn the radar to the left (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
turnRadarRight(double) - Method in class Bot
Turn the radar to the right (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
turnRadarRight(double) - Method in interface IBot
Turn the radar to the right (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
turnRight(double) - Method in class Bot
Turn the bot to the right (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
turnRight(double) - Method in interface IBot
Turn the bot to the right (following the increasing degrees of the unit circle) until it turned the specified amount of degrees.
TURQUOISE - Static variable in class Color
 

V

VIOLET - Static variable in class Color
 

W

waitFor(Condition) - Method in class Bot
Blocks until a condition is met, i.e.
waitFor(Condition) - Method in interface IBot
Blocks until a condition is met, i.e.
WHEAT - Static variable in class Color
 
WHITE - Static variable in class Color
 
WHITE_SMOKE - Static variable in class Color
 
WON_ROUND - Static variable in class DefaultEventPriority
Event priority for the WonRoundEvent
WonRoundEvent - Class in dev.robocode.tankroyale.botapi.events
Event occurring when a bot has won the round.
WonRoundEvent(int) - Constructor for class WonRoundEvent
Initializes a new instance of the WonRoundEvent class.

Y

YELLOW - Static variable in class Color
 
YELLOW_GREEN - Static variable in class Color
 
A B C D E F G H I K L M N O P R S T V W Y 
All Classes All Packages