Package | Description |
---|---|
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 |
---|---|---|
static Player.Hand |
Player.Hand.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Player.Hand[] |
Player.Hand.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
Food.Type |
Inventory.get(Player.Hand hand) |
Gets the type of food that is held in a given hand.
|
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.
|
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.
|