|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
static final double BROADCAST_FIXED_COST
static final double BROADCAST_COST_PER_BYTE
static final int MAP_MIN_HEIGHT
static final int MAP_MAX_HEIGHT
static final int MAP_MIN_WIDTH
static final int MAP_MAX_WIDTH
static final double YIELD_BONUS
static final int EXCEPTION_BYTECODE_PENALTY
static final int NUMBER_OF_INDICATOR_STRINGS
static final int BYTECODE_LIMIT
static final int TEAM_MEMORY_LENGTH
static final int BROADCAST_RADIUS_SQUARED
static final double REGEN_COST
static final double REGEN_AMOUNT
static final int NUMBER_OF_ARCHONS
static final int DISRUPTER_DELAY
static final double DISCONNECTED_NODE_DAMAGE
static final double TIME_LIMIT_DAMAGE
static final double UNIT_UPKEEP
static final double MIN_PRODUCTION
MAX_PRODUCTION
,
PRODUCTION_PENALTY_R2
,
Constant Field Valuesstatic final double MAX_PRODUCTION
MIN_PRODUCTION
,
PRODUCTION_PENALTY_R2
,
Constant Field Valuesstatic final int PRODUCTION_PENALTY_R2
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))
.
MAX_PRODUCTION
,
MIN_PRODUCTION
,
Constant Field Valuesstatic final int WAKE_DELAY
static final int MIN_POWER_NODES
static final int MAX_POWER_NODES
static final int MIN_ROUND_LIMIT
static final int MAX_ROUND_LIMIT
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |