JavaController
public interface Controller
Controller.Action
enum. To
control a player on the field, a competitor needs to override
JavaController
, a class that implements this interface.Modifier and Type | Interface | Description |
---|---|---|
static class |
Controller.Action |
An action that a controller can choose to play on a turn.
|
Modifier and Type | Method | Description |
---|---|---|
Controller.Action |
playAction(Field field,
Team team,
Player player) |
Plays a single turn of the game, given a field, team, and player.
|
Controller.Action playAction(Field field, Team team, Player player)
field
- the field on which the player is playingteam
- the team on which the player is playingplayer
- the player that the controller's actions control