Warlight API summary

Here are the most important classes, fields and methods in the Warlight API. For more details, read the Javadoc and/or look at the source code.

All fields and methods listed below are public unless noted otherwise.

Player numbers are as follows:

map classes

enum WorldRegion

Return the WorldRegion with the given id.

enum WorldContinent

Return the WorldContinent with the given id.

game state classes

enum Phase { STARTING_REGIONS, PLACE_ARMIES, ATTACK_TRANSFER };

class Region

class Continent

class GameMap

class GameState

bot classes

interface Action

    A set of commands that form a player's turn and can be applied to a GameState.

class ChooseAction implements Action

A command to choose a starting region.

class PlaceArmiesMove

A command to place armies at the beginning of a turn.

class PlaceArmiesAction implements Action

A set of placement commands.

class AttackTransferMove

A command to move or attack.

class AttackTransferAction implements Action

A set of movement commands.

interface Bot

utility classes

class FightAttackersResults