public class GameConstants
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
BALL_COST
Reputation needed to buy a ball.
|
static float |
BASE_POINTS
Amount of points received whenever a pitcher starts its turn at a base.
|
static int |
CONSTRUCTION_TURNS
Turns that units take since their construction until they can move and attack.
|
static int |
EXCEPTION_ENERGY_PENALTY
Energy consumed whenever a unit is penalized.
|
static float |
INFLATION_FACTOR
Amount of inflation added every round.
|
static float |
INITIAL_REPUTATION
Reputation of each team at the start of the game.
|
static int |
MAX_ENERGY
Maximum amount of energy that a unit can spend each round.
|
static int |
MAX_ID
Maximum ID for units.
|
static int |
MAX_MAP_SIZE
Maximum map size.
|
static int |
MAX_ROUNDS
Total number of rounds in a game.
|
static int |
MAX_STRENGTH
Maximum amount of tiles that a ball or unit can move when batted by a batter.
|
static int |
MIN_MAP_SIZE
Minimum map size.
|
static float |
POINTS_HITTING_HQ
Whenever an HQ is hit with a ball, the opposing team gets this many points.
|
static float |
POINTS_THRESHOLD
If a team gets this many points, it automatically wins.
|
static float |
REPUTATION_ROUND
Amount of reputation received each round.
|
static float |
REPUTATION_STADIUM
Amount of reputation received whenever a pitcher begins its turn at a stadium.
|
static int |
SHARED_ARRAY_LENGTH
Length of the shared array.
|
static float[][] |
UNIT_STATS
Array containing the original stats of each unit type.
|
| Constructor and Description |
|---|
GameConstants() |
| Modifier and Type | Method and Description |
|---|---|
static float |
getInflation(int round)
Returns the total inflation at a given round.
|
public static final int MAX_ROUNDS
public static final float INITIAL_REPUTATION
public static final float REPUTATION_ROUND
public static final float REPUTATION_STADIUM
public static final float INFLATION_FACTOR
public static final float BASE_POINTS
public static final int CONSTRUCTION_TURNS
public static final int MAX_ENERGY
public static final int EXCEPTION_ENERGY_PENALTY
public static final int MAX_MAP_SIZE
public static final int MIN_MAP_SIZE
public static final int MAX_ID
public static final int SHARED_ARRAY_LENGTH
public static final float POINTS_THRESHOLD
public static final float POINTS_HITTING_HQ
public static final float BALL_COST
public static final int MAX_STRENGTH
public static final float[][] UNIT_STATS