battlecode.common
Interface GameConstants


public interface GameConstants

Defines constants that affect gameplay.


Field Summary
static double BROADCAST_COST_PER_BYTE
          Additional cost per byte of message size
static double BROADCAST_FIXED_COST
          Fixed cost to send a message
static int BROADCAST_RADIUS_SQUARED
          The square of the maximum distance a message can travel.
static int BYTECODE_LIMIT
          The base number of bytecodes a robot can execute each round
static double DISCONNECTED_NODE_DAMAGE
          The amount of damage dealt each turn to a node that is not connected to its team's power core.
static int DISRUPTER_DELAY
          The increase in a unit's attack timeout when it is hit by a DISRUPTER.
static int EXCEPTION_BYTECODE_PENALTY
          The bytecode penalty that is imposed each time an exception is thrown
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 MAX_POWER_NODES
          The maximum number of power nodes that can appear on a map.
static double MAX_PRODUCTION
          The maximum amount of flux that an archon can produce in a turn.
static int MAX_ROUND_LIMIT
          The maximum possible round at which nodes may begin taking end-of-round damage
static int MIN_POWER_NODES
          The minimum number of power nodes that can appear on a map.
static double MIN_PRODUCTION
          The minimum amount of flux that an archon can produce in a turn.
static int MIN_ROUND_LIMIT
          The minimum possible round at which nodes may begin taking end-of-round damage
static int NUMBER_OF_ARCHONS
          The number of archons each team starts with.
static int NUMBER_OF_INDICATOR_STRINGS
          The number of indicator strings that a player can associate with a robot
static int PRODUCTION_PENALTY_R2
          An archon's production will decrease if it is within this distance squared of an allied archon.
static double REGEN_AMOUNT
          The amount of energon gained when a unit regenerates.
static double REGEN_COST
          The cost in flux to regenerate.
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 divided evenly among each team's power nodes each turn once the time limit is reached.
static double UNIT_UPKEEP
          The upkeep cost per turn for each unit that is not an archon or tower.
static int WAKE_DELAY
          The number of turns before a newly spawned robot can move or attack.
static double YIELD_BONUS
          The maximum fraction of upkeep that can be regained by yielding
 

Field Detail

BROADCAST_FIXED_COST

static final double BROADCAST_FIXED_COST
Fixed cost to send a message

See Also:
Constant Field Values

BROADCAST_COST_PER_BYTE

static final double BROADCAST_COST_PER_BYTE
Additional cost per byte of message size

See Also:
Constant Field Values

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

YIELD_BONUS

static final double YIELD_BONUS
The maximum fraction of upkeep that can be regained by yielding

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

BROADCAST_RADIUS_SQUARED

static final int BROADCAST_RADIUS_SQUARED
The square of the maximum distance a message can travel.

See Also:
Constant Field Values

REGEN_COST

static final double REGEN_COST
The cost in flux to regenerate.

See Also:
Constant Field Values

REGEN_AMOUNT

static final double REGEN_AMOUNT
The amount of energon gained when a unit regenerates.

See Also:
Constant Field Values

NUMBER_OF_ARCHONS

static final int NUMBER_OF_ARCHONS
The number of archons each team starts with.

See Also:
Constant Field Values

DISRUPTER_DELAY

static final int DISRUPTER_DELAY
The increase in a unit's attack timeout when it is hit by a DISRUPTER.

See Also:
Constant Field Values

DISCONNECTED_NODE_DAMAGE

static final double DISCONNECTED_NODE_DAMAGE
The amount of damage dealt each turn to a node that is not connected to its team's power core.

See Also:
Constant Field Values

TIME_LIMIT_DAMAGE

static final double TIME_LIMIT_DAMAGE
The total amount of damage to be divided evenly among each team's power nodes each turn once the time limit is reached.

See Also:
Constant Field Values

UNIT_UPKEEP

static final double UNIT_UPKEEP
The upkeep cost per turn for each unit that is not an archon or tower.

See Also:
Constant Field Values

MIN_PRODUCTION

static final double MIN_PRODUCTION
The minimum amount of flux that an archon can produce in a turn.

See Also:
MAX_PRODUCTION, PRODUCTION_PENALTY_R2, Constant Field Values

MAX_PRODUCTION

static final double MAX_PRODUCTION
The maximum amount of flux that an archon can produce in a turn.

See Also:
MIN_PRODUCTION, PRODUCTION_PENALTY_R2, Constant Field Values

PRODUCTION_PENALTY_R2

static final int PRODUCTION_PENALTY_R2
An archon's production will decrease if it is within this distance squared of an allied archon. If d is the minimum distance squared to an allied archon, then the amount of flux produced is GameConstants.MIN_PRODUCTION+(GameConstants.MAX_PRODUCTION-GameConstants.MIN_PRODUCTION)*Math.min(1.,Math.sqrt((double)d/GameConstants.PRODUCTION_PENALTY_R2)).

See Also:
MAX_PRODUCTION, MIN_PRODUCTION, Constant Field Values

WAKE_DELAY

static final int WAKE_DELAY
The number of turns before a newly spawned robot can move or attack.

See Also:
Constant Field Values

MIN_POWER_NODES

static final int MIN_POWER_NODES
The minimum number of power nodes that can appear on a map.

See Also:
Constant Field Values

MAX_POWER_NODES

static final int MAX_POWER_NODES
The maximum number of power nodes that can appear on a map.

See Also:
Constant Field Values

MIN_ROUND_LIMIT

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

See Also:
Constant Field Values

MAX_ROUND_LIMIT

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

See Also:
Constant Field Values