Package | Description |
---|---|
org.bitbrawl.foodfight.controller |
Classes for working with the player controllers, separate from the game
field.
|
org.bitbrawl.foodfight.util |
Useful classes that do not directly represent field objects.
|
Modifier and Type | Method | Description |
---|---|---|
Controller.Action |
Controller.playAction(Field field,
Team team,
Player player) |
Plays a single turn of the game, given a field, team, and player.
|
static Controller.Action |
Controller.Action.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Controller.Action[] |
Controller.Action.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
static boolean |
PlayerUtils.isValidAction(Field field,
Player player,
Controller.Action action) |
Determines whether the given action is currently valid for the given
player.
|