Package | Description |
---|---|
org.bitbrawl.foodfight.controller |
Classes for working with the player controllers, separate from the game
field.
|
org.bitbrawl.foodfight.field |
Classes and interfaces representing objects and properties of 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.
|
Modifier and Type | Method | Description |
---|---|---|
Player |
Field.getPlayer(char symbol) |
Returns the player on this field with the given symbol.
|
Player |
Team.getPlayer(char symbol) |
Gets the player on this team with the given identifying symbol.
|
Modifier and Type | Method | Description |
---|---|---|
Set<Player> |
Field.getPlayers() |
Returns a set containing all players on the field.
|
Set<Player> |
Team.getPlayers() |
Gets the set of all players on this team.
|
Modifier and Type | Method | Description |
---|---|---|
Team |
Field.getTeam(Player player) |
Returns the team for which the given player is playing.
|
Modifier and Type | Method | Description |
---|---|---|
static boolean |
PlayerUtils.canPickup(Player player,
Food food,
Player.Hand hand) |
Determines whether the given player can pick up the given food piece,
with the given hand.
|
int |
PlayerComparator.compare(Player p1,
Player p2) |
|
static Direction |
PlayerUtils.getArmDirection(Player player,
Player.Hand hand) |
Gets the direction of a player's arm.
|
static Vector |
PlayerUtils.getArmLocation(Player player,
Player.Hand hand) |
Gets the location of the player's arm.
|
static boolean |
PlayerUtils.isAgainstTable(Player player,
Table table,
boolean movingForward) |
Determines whether the given player is against the table.
|
static boolean |
PlayerUtils.isValidAction(Field field,
Player player,
Controller.Action action) |
Determines whether the given action is currently valid for the given
player.
|