battlecode.common
Interface GameConstants


public interface GameConstants

Defines constants that affect gameplay.


Field Summary
static int ARTILLERY_SPLASH_RADIUS_SQUARED
          Radius of artillery splash damage in units squared
static double ARTILLERY_SPLASH_RATIO
          Percantage of direct artillery damage that the splash damage does
static int BROADCAST_MAX_CHANNELS
          The maximum read/write-able of radio channel number
static double BROADCAST_READ_COST
          The power cost required to read a message from a single radio channel
static double BROADCAST_SEND_COST
          The power cost required to broadcast a message to a single radio channel
static int BYTECODE_LIMIT
          The base number of bytecodes a robot can execute each round
static double CAPTURE_POWER_COST
          The power cost required to begin an encampement capture
static int CAPTURE_ROUND_DELAY
          The number of rounds required by a SOLDIER to capture an encampment
static int EXCEPTION_BYTECODE_PENALTY
          The bytecode penalty that is imposed each time an exception is thrown
static double GENERATOR_POWER_PRODUCTION
          Additiona power provided by each generator
static double HAT_POWER_COST
          Amount of power required to wear a hat
static double HQ_POWER_PRODUCTION
          Base power production per HQ
static int HQ_SPAWN_DELAY
          Rounds required to spawn a unit at the start of the game
static double HQ_SPAWN_DELAY_CONSTANT
          Constant used to calculate how suppliers factor into the HQ spawn delay
static int MAP_MAX_HEIGHT
          The maximum possible map height.
static int MAP_MAX_WIDTH
          The maxiumum possible map width.
static int MAP_MIN_HEIGHT
          The minimum possible map height.
static int MAP_MIN_WIDTH
          The minumum possible map width.
static int MAP_MINIMUM_ENCAMPMENTS
          A valid map must have at least this many encampment locations.
static double MINE_DAMAGE
          The amount of damage that a mine deals to a robot standing on it per round
static double MINE_DAMAGE_RATIO_ABSORBED_BY_SHIELD
          The percentage of mine damage that shields can absorb
static int MINE_DEFUSE_DEFUSION_DELAY
          The number of rounds required by a soldier to defuse a mine if they have DEFUSION upgrade
static int MINE_DEFUSE_DELAY
          The number of rounds required by a soldier to defuse a mine
static int MINE_LAY_DELAY
          The number of rounds required by a soldier to lay a mine
static int NUMBER_OF_INDICATOR_STRINGS
          The number of indicator strings that a player can associate with a robot
static double POWER_COST_PER_BYTECODE
          The energy to bytecode converstion rate
static double POWER_DECAY_RATE
          The rate at which stockpiled power decays without the FUSION upgrade
static double POWER_DECAY_RATE_FUSION
          The rate at which stockpiled energy decays with the FUSION upgrade
static int ROUND_MAX_LIMIT
          The maximum possible round at which nodes may begin taking end-of-round damage
static int ROUND_MIN_LIMIT
          The minimum possible round at which nodes may begin taking end-of-round damage
static double SHIELD_CAP
          Maximum amount of shields a single robot can carry
static double SHIELD_DECAY_RATE
          Rate at which SHIELDS decay.
static int TEAM_MEMORY_LENGTH
          The number of longs that your team can remember between games.
static double TIME_LIMIT_DAMAGE
          The total amount of damage to be applied to a team's HQ once the round limit is reached
static double UNIT_ENERGON_UPKEEP
          If a team cannot pay a unit's upkeep in power, it pays this cost in energon instead.
static double UNIT_POWER_UPKEEP
          The upkeep cost of a unit per round.
static int VISION_UPGRADE_BONUS
          Extra sight radius bonus to unit vision when VISION is researched
 

Field Detail

MAP_MIN_HEIGHT

static final int MAP_MIN_HEIGHT
The minimum possible map height.

See Also:
Constant Field Values

MAP_MAX_HEIGHT

static final int MAP_MAX_HEIGHT
The maximum possible map height.

See Also:
Constant Field Values

MAP_MIN_WIDTH

static final int MAP_MIN_WIDTH
The minumum possible map width.

See Also:
Constant Field Values

MAP_MAX_WIDTH

static final int MAP_MAX_WIDTH
The maxiumum possible map width.

See Also:
Constant Field Values

MAP_MINIMUM_ENCAMPMENTS

static final int MAP_MINIMUM_ENCAMPMENTS
A valid map must have at least this many encampment locations.

See Also:
Constant Field Values

EXCEPTION_BYTECODE_PENALTY

static final int EXCEPTION_BYTECODE_PENALTY
The bytecode penalty that is imposed each time an exception is thrown

See Also:
Constant Field Values

NUMBER_OF_INDICATOR_STRINGS

static final int NUMBER_OF_INDICATOR_STRINGS
The number of indicator strings that a player can associate with a robot

See Also:
Constant Field Values

BYTECODE_LIMIT

static final int BYTECODE_LIMIT
The base number of bytecodes a robot can execute each round

See Also:
Constant Field Values

TEAM_MEMORY_LENGTH

static final int TEAM_MEMORY_LENGTH
The number of longs that your team can remember between games.

See Also:
Constant Field Values

TIME_LIMIT_DAMAGE

static final double TIME_LIMIT_DAMAGE
The total amount of damage to be applied to a team's HQ once the round limit is reached

See Also:
Constant Field Values

UNIT_POWER_UPKEEP

static final double UNIT_POWER_UPKEEP
The upkeep cost of a unit per round. Note that units pay even more than this base cost to execute bytecodes

See Also:
Constant Field Values

UNIT_ENERGON_UPKEEP

static final double UNIT_ENERGON_UPKEEP
If a team cannot pay a unit's upkeep in power, it pays this cost in energon instead.

See Also:
Constant Field Values

ROUND_MIN_LIMIT

static final int ROUND_MIN_LIMIT
The minimum possible round at which nodes may begin taking end-of-round damage

See Also:
Constant Field Values

ROUND_MAX_LIMIT

static final int ROUND_MAX_LIMIT
The maximum possible round at which nodes may begin taking end-of-round damage

See Also:
Constant Field Values

ARTILLERY_SPLASH_RADIUS_SQUARED

static final int ARTILLERY_SPLASH_RADIUS_SQUARED
Radius of artillery splash damage in units squared

See Also:
Constant Field Values

ARTILLERY_SPLASH_RATIO

static final double ARTILLERY_SPLASH_RATIO
Percantage of direct artillery damage that the splash damage does

See Also:
Constant Field Values

SHIELD_DECAY_RATE

static final double SHIELD_DECAY_RATE
Rate at which SHIELDS decay. This number will be subtracted from each unit's shield pool after its turn.

See Also:
Constant Field Values

VISION_UPGRADE_BONUS

static final int VISION_UPGRADE_BONUS
Extra sight radius bonus to unit vision when VISION is researched

See Also:
Constant Field Values

HQ_POWER_PRODUCTION

static final double HQ_POWER_PRODUCTION
Base power production per HQ

See Also:
Constant Field Values

GENERATOR_POWER_PRODUCTION

static final double GENERATOR_POWER_PRODUCTION
Additiona power provided by each generator

See Also:
Constant Field Values

SHIELD_CAP

static final double SHIELD_CAP
Maximum amount of shields a single robot can carry

See Also:
Constant Field Values

POWER_COST_PER_BYTECODE

static final double POWER_COST_PER_BYTECODE
The energy to bytecode converstion rate

See Also:
Constant Field Values

BROADCAST_MAX_CHANNELS

static final int BROADCAST_MAX_CHANNELS
The maximum read/write-able of radio channel number

See Also:
Constant Field Values

BROADCAST_SEND_COST

static final double BROADCAST_SEND_COST
The power cost required to broadcast a message to a single radio channel

See Also:
Constant Field Values

BROADCAST_READ_COST

static final double BROADCAST_READ_COST
The power cost required to read a message from a single radio channel

See Also:
Constant Field Values

MINE_LAY_DELAY

static final int MINE_LAY_DELAY
The number of rounds required by a soldier to lay a mine

See Also:
Constant Field Values

MINE_DEFUSE_DELAY

static final int MINE_DEFUSE_DELAY
The number of rounds required by a soldier to defuse a mine

See Also:
Constant Field Values

MINE_DEFUSE_DEFUSION_DELAY

static final int MINE_DEFUSE_DEFUSION_DELAY
The number of rounds required by a soldier to defuse a mine if they have DEFUSION upgrade

See Also:
Constant Field Values

CAPTURE_POWER_COST

static final double CAPTURE_POWER_COST
The power cost required to begin an encampement capture

See Also:
Constant Field Values

CAPTURE_ROUND_DELAY

static final int CAPTURE_ROUND_DELAY
The number of rounds required by a SOLDIER to capture an encampment

See Also:
Constant Field Values

MINE_DAMAGE

static final double MINE_DAMAGE
The amount of damage that a mine deals to a robot standing on it per round

See Also:
Constant Field Values

MINE_DAMAGE_RATIO_ABSORBED_BY_SHIELD

static final double MINE_DAMAGE_RATIO_ABSORBED_BY_SHIELD
The percentage of mine damage that shields can absorb

See Also:
Constant Field Values

POWER_DECAY_RATE

static final double POWER_DECAY_RATE
The rate at which stockpiled power decays without the FUSION upgrade

See Also:
Constant Field Values

POWER_DECAY_RATE_FUSION

static final double POWER_DECAY_RATE_FUSION
The rate at which stockpiled energy decays with the FUSION upgrade

See Also:
Constant Field Values

HQ_SPAWN_DELAY

static final int HQ_SPAWN_DELAY
Rounds required to spawn a unit at the start of the game

See Also:
Constant Field Values

HQ_SPAWN_DELAY_CONSTANT

static final double HQ_SPAWN_DELAY_CONSTANT
Constant used to calculate how suppliers factor into the HQ spawn delay

See Also:
Constant Field Values

HAT_POWER_COST

static final double HAT_POWER_COST
Amount of power required to wear a hat

See Also:
Constant Field Values