Package | Description |
---|---|
org.bitbrawl.foodfight.field |
Classes and interfaces representing objects and properties of the game field.
|
Modifier and Type | Field | Description |
---|---|---|
static RandomScalar |
Player.COLLISION_DAMAGE |
The amount of damage done by player-player collisions.
|
static RandomScalar |
Player.DUCK_SPEED |
The per-turn decrease in height of a ducking player.
|
static RandomScalar |
Food.FALL_SPEED |
The vertical distance traveled by an airborne food piece each turn.
|
static RandomScalar |
Player.FORWARD_MOVEMENT_SPEED |
The distance a player can move forward on a turn.
|
static RandomScalar |
Player.REVERSE_MOVEMENT_SPEED |
The distance a player can move backward on a turn.
|
static RandomScalar |
Food.SPEED |
The horizontal distance traveled by an airborne food piece each turn.
|
static RandomScalar |
Player.THROW_HEIGHT |
The height at which thrown food starts.
|
static RandomScalar |
Player.TURN_SPEED |
The per-turn change in rotation (in radians) of a turning player.
|
Modifier and Type | Method | Description |
---|---|---|
RandomScalar |
Food.Type.getDamage() |
Returns the damage incurred when a player collides with an airborne
food piece of this type.
|
RandomScalar |
Food.Type.getEnergy() |
Returns the energy gained by eating food of this type.
|