- get() - Method in class org.bitbrawl.foodfight.util.Direction
-
Returns the measurement of this direction object, in radians, where
Direction.EAST
is 0.0 and measurements increase as they rotate
counter-clockwise.
- get(Player.Hand) - Method in interface org.bitbrawl.foodfight.field.Inventory
-
Gets the type of food that is held in a given hand.
- getArmDirection(Player, Player.Hand) - Static method in class org.bitbrawl.foodfight.util.PlayerUtils
-
Gets the direction of a player's arm.
- getArmLocation(Player, Player.Hand) - Static method in class org.bitbrawl.foodfight.util.PlayerUtils
-
Gets the location of the player's arm.
- getAsDouble() - Method in class org.bitbrawl.foodfight.util.RandomScalar
-
Generates a value from the continuous distribution represented by this
random scalar.
- getClock() - Method in class org.bitbrawl.foodfight.controller.JavaController
-
Gets the clock that this controller can use to determine how much time it
has left to make its moves.
- getCollisions() - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns a set of all of the collisions that occurred on the field on the
previous turn.
- getCount(Event) - Method in interface org.bitbrawl.foodfight.field.Score
-
Returns the total number of times that the given event was scored.
- getDamage() - Method in interface org.bitbrawl.foodfight.field.Collision
-
Gets the total amount of damage inflicted on the players involved in this
collision.
- getDamage() - Method in enum org.bitbrawl.foodfight.field.Food.Type
-
Returns the damage incurred when a player collides with an airborne
food piece of this type.
- getDirection() - Method in class org.bitbrawl.foodfight.util.Vector
-
Returns the direction of this vector.
- getEdge(Direction) - Method in interface org.bitbrawl.foodfight.field.Table
-
Returns the edge of the table on the given side of the table.
- getEnergy() - Method in enum org.bitbrawl.foodfight.field.Food.Type
-
Returns the energy gained by eating food of this type.
- getEnergy() - Method in interface org.bitbrawl.foodfight.field.Player
-
Gets this player's amount of energy.
- getFood() - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns a set containing all of the food on the field.
- getFood() - Method in interface org.bitbrawl.foodfight.field.Table
-
Returns a set of all of the types of food on this table.
- getFood(Food.Type) - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns the food piece on this field with the given type.
- getHeading() - Method in interface org.bitbrawl.foodfight.field.Food
-
Returns the direction of travel of this food piece.
- getHeading() - Method in interface org.bitbrawl.foodfight.field.Player
-
Gets the direction that this player is currently facing.
- getHeight() - Method in interface org.bitbrawl.foodfight.field.Food
-
Returns the distance between the ground plane and this piece of food.
- getHeight() - Method in interface org.bitbrawl.foodfight.field.Player
-
Gets the height of the top of this player's head.
- getInventory() - Method in interface org.bitbrawl.foodfight.field.Player
-
Gets this player's inventory.
- getLocation() - Method in interface org.bitbrawl.foodfight.field.Locatable
-
Returns a vector representing this object's location on the field.
- getLogger() - Method in class org.bitbrawl.foodfight.controller.JavaController
-
Gets the logger that this controller can use to log messages.
- getMagnitude() - Method in class org.bitbrawl.foodfight.util.Vector
-
Returns the magnitude of this vector.
- getMatchType() - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns the type of match being played on this field.
- getMoveMultiplier(double) - Static method in class org.bitbrawl.foodfight.util.PlayerUtils
-
Gets the multiplier for a player's movement, based on their energy.
- getMu() - Method in class org.bitbrawl.foodfight.util.RandomScalar
-
Returns the μ value for this random scalar.
- getNumberOfPlayers() - Method in enum org.bitbrawl.foodfight.field.MatchType
-
Returns the total number of players in matches of this type.
- getNumberOfTeams() - Method in enum org.bitbrawl.foodfight.field.MatchType
-
Returns the number of teams in matches of this type.
- getOpposite() - Method in class org.bitbrawl.foodfight.util.Direction
-
Returns the direction that is the opposite of this one.
- getOpposite() - Method in class org.bitbrawl.foodfight.util.Vector
-
Returns the vector with the same magnitude as this one, but in the
opposite direction.
- getPlayer(char) - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns the player on this field with the given symbol.
- getPlayer(char) - Method in interface org.bitbrawl.foodfight.field.Team
-
Gets the player on this team with the given identifying symbol.
- getPlayers() - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns a set containing all players on the field.
- getPlayers() - Method in interface org.bitbrawl.foodfight.field.Team
-
Gets the set of all players on this team.
- getPoints(Event) - Method in interface org.bitbrawl.foodfight.field.Score
-
Returns the total number of points that the given event has scored.
- getPointValue() - Method in enum org.bitbrawl.foodfight.field.Event
-
Gets the value of this event to a team's score.
- getRadius() - Method in enum org.bitbrawl.foodfight.field.Food.Type
-
Returns the radius of food pieces of this type.
- getScore() - Method in interface org.bitbrawl.foodfight.field.Team
-
Gets this team's score.
- getSigma() - Method in class org.bitbrawl.foodfight.util.RandomScalar
-
Returns the σ value for this random scalar.
- getSymbol() - Method in interface org.bitbrawl.foodfight.field.Player
-
Gets the character that uniquely identifies this player in the game.
- getSymbol() - Method in interface org.bitbrawl.foodfight.field.Team
-
Gets the symbol that uniquely identifies this team.
- getTable() - Method in interface org.bitbrawl.foodfight.field.Team
-
Gets the table that scores points for this team.
- getTeam(char) - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns the team on this field with the given symbol.
- getTeam(Player) - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns the team for which the given player is playing.
- getTeams() - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns a set containing all of the teams on the field.
- getTimeLeft(TimeUnit) - Method in interface org.bitbrawl.foodfight.controller.Clock
-
Returns the amount of time that a controller has left in the game.
- getTotalPoints() - Method in interface org.bitbrawl.foodfight.field.Score
-
Returns the total number of points scored.
- getTurnNumber() - Method in interface org.bitbrawl.foodfight.field.Field
-
Returns the number of the current turn.
- getType() - Method in enum org.bitbrawl.foodfight.field.Event
-
Returns the type of this action, either one-time or ongoing.
- getType() - Method in interface org.bitbrawl.foodfight.field.Food
-
Returns the type of this piece of food.
- getX() - Method in class org.bitbrawl.foodfight.util.Vector
-
Returns the x-coordinate of this vector.
- getY() - Method in class org.bitbrawl.foodfight.util.Vector
-
Returns the y-coordinate of this vector.
- RADIUS - Static variable in interface org.bitbrawl.foodfight.field.Table
-
The distance from the center of any table to any of its edges.
- random() - Static method in class org.bitbrawl.foodfight.util.Direction
-
Returns a randomly-generated direction.
- RandomScalar - Class in org.bitbrawl.foodfight.util
-
A random variable used to add a bit of randomness to various parts of the
game.
- RandomScalar(double, double) - Constructor for class org.bitbrawl.foodfight.util.RandomScalar
-
Creates a random scalar with the given μ and σ.
- RASPBERRY - org.bitbrawl.foodfight.field.Food.Type
-
A raspberry, the least powerful piece of food.
- REACH_DISTANCE - Static variable in interface org.bitbrawl.foodfight.field.Player
-
The maximum distance for a piece of food that can be picked up.
- REACH_RANGE - Static variable in interface org.bitbrawl.foodfight.field.Player
-
The rotational range for a piece of food that can be picked up.
- reflectAcrossX() - Method in class org.bitbrawl.foodfight.util.Direction
-
Reflects this direction across the x-axis, returning the result.
- reflectAcrossY() - Method in class org.bitbrawl.foodfight.util.Direction
-
Reflects this direction across the y-axis, returning the result.
- RESPAWN_RATE - Static variable in interface org.bitbrawl.foodfight.field.Food
-
The probability of new food spawning on a turn with missing food.
- REVERSE_MOVEMENT_SPEED - Static variable in interface org.bitbrawl.foodfight.field.Player
-
The distance a player can move backward on a turn.
- RIGHT - org.bitbrawl.foodfight.field.Player.Hand
-
A player's right hand.
- RIGHT_ARM_DIRECTION - Static variable in interface org.bitbrawl.foodfight.field.Player
-
The direction of a player's right arm relative to their heading.
- Table - Interface in org.bitbrawl.foodfight.field
-
A team's table, where they can score points by putting food.
- Team - Interface in org.bitbrawl.foodfight.field
-
A team of players, and their associated information.
- TEAM - org.bitbrawl.foodfight.field.MatchType
-
A 2v2 team match for four players.
- THROW_HEIGHT - Static variable in interface org.bitbrawl.foodfight.field.Player
-
The height at which thrown food starts.
- THROW_LEFT - org.bitbrawl.foodfight.controller.Controller.Action
-
A throw from the player's left hand.
- THROW_RIGHT - org.bitbrawl.foodfight.controller.Controller.Action
-
A throw from the player's right hand.
- TIE_BREAK - org.bitbrawl.foodfight.field.Event
-
Occurs when a tie must be broken by distance to the center.
- TIME_LIMIT_NANOS - Static variable in interface org.bitbrawl.foodfight.controller.Clock
-
The time limit (in nanoseconds) for all of a controller's moves.
- toString() - Method in enum org.bitbrawl.foodfight.controller.Controller.Action
-
Returns a human-readable name for this action that differs from what
will be returned by
Enum.name()
.
- toString() - Method in enum org.bitbrawl.foodfight.field.Event
-
Returns a human-readable name for this event that differs from what will
be returned by
Enum.name()
.
- toString() - Method in enum org.bitbrawl.foodfight.field.Event.Type
-
Returns a human-readable name for this event type, either "One-time"
or "Ongoing".
- toString() - Method in enum org.bitbrawl.foodfight.field.Food.Type
-
Returns a human-readable name for this food type that differs from
what will be returned by
Enum.name()
.
- toString() - Method in enum org.bitbrawl.foodfight.field.MatchType
-
Returns a human-readable name for this match type, either "Duel",
"Free-for-all", or "Team".
- toString() - Method in enum org.bitbrawl.foodfight.field.Player.Hand
-
Returns a human-readable name for this hand, either "Left hand" or
"Right hand".
- toString() - Method in class org.bitbrawl.foodfight.util.Direction
-
- toString() - Method in class org.bitbrawl.foodfight.util.RandomScalar
-
- toString() - Method in enum org.bitbrawl.foodfight.util.Vector.Deserializer
-
- toString() - Method in enum org.bitbrawl.foodfight.util.Vector.Serializer
-
- toString() - Method in class org.bitbrawl.foodfight.util.Vector
-
- TOTAL_TURNS - Static variable in interface org.bitbrawl.foodfight.field.Field
-
The total number of turns in a match.
- TURN_LEFT - org.bitbrawl.foodfight.controller.Controller.Action
-
A turn in the counter-clockwise direction.
- TURN_RIGHT - org.bitbrawl.foodfight.controller.Controller.Action
-
A turn in the clockwise direction.
- TURN_SPEED - Static variable in interface org.bitbrawl.foodfight.field.Player
-
The per-turn change in rotation (in radians) of a turning player.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.controller.Controller.Action
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.field.Event.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.field.Event
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.field.Food.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.field.MatchType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.field.Player.Hand
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.util.Direction.Deserializer
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.util.Direction.Serializer
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.util.PlayerComparator
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.util.Vector.Deserializer
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.bitbrawl.foodfight.util.Vector.Serializer
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.bitbrawl.foodfight.controller.Controller.Action
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.field.Event.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.field.Event
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.field.Food.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.field.MatchType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.field.Player.Hand
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.util.Direction.Deserializer
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.util.Direction.Serializer
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.util.PlayerComparator
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.util.Vector.Deserializer
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.bitbrawl.foodfight.util.Vector.Serializer
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- Vector - Class in org.bitbrawl.foodfight.util
-
A two-dimensional vector in the horizontal plane of the field.
- Vector.Deserializer - Enum in org.bitbrawl.foodfight.util
-
A deserializer for vectors.
- Vector.Serializer - Enum in org.bitbrawl.foodfight.util
-
A serializer for vectors.