- BASH_RADIUS_SQUARED - Static variable in interface battlecode.common.GameConstants
-
Bash radius of a basher.
- battlecode.common - package battlecode.common
-
- BEAVER_MINE_MAX - Static variable in interface battlecode.common.GameConstants
-
The maximum amount of ore that a BEAVER can mine.
- BEAVER_MINE_RATE - Static variable in interface battlecode.common.GameConstants
-
The fraction of ore that a BEAVER gets from a square.
- breakpoint() - Method in interface battlecode.common.RobotController
-
If breakpoints are enabled, calling this method causes the game engine to
pause execution at the end of this round, until the user decides to
resume execution.
- broadcast(int, int) - Method in interface battlecode.common.RobotController
-
Broadcasts a message to the global message board.
- BROADCAST_MAX_CHANNELS - Static variable in interface battlecode.common.GameConstants
-
The maximum read/write-able of radio channel number
- build(Direction, RobotType) - Method in interface battlecode.common.RobotController
-
Builds a structure in the given direction, queued for the end of the turn.
- builder - Variable in class battlecode.common.RobotInfo
-
For structures being built, this will be the location of the unit building the structure (null if N/A).
- buildingLocation - Variable in class battlecode.common.RobotInfo
-
For units that are building a structure, this will be the location of the structure being built (null if N/A).
- buildTurns - Variable in enum battlecode.common.RobotType
-
Number of turns to spawn or build.
- bytecodeLimit - Variable in enum battlecode.common.RobotType
-
Base bytecode limit of this robot (halved if the robot does not have sufficient supply upkeep).
- BYTECODES_PER_SUPPLY - Static variable in interface battlecode.common.GameConstants
-
Bytecodes executed per unit of supply.
- canAttack() - Method in enum battlecode.common.RobotType
-
Returns whether the robot can attack.
- canAttackLocation(MapLocation) - Method in interface battlecode.common.RobotController
-
Returns whether the given location is within the robot's attack range.
- canBuild(Direction, RobotType) - Method in interface battlecode.common.RobotController
-
Returns whether the robot can build a structure of the given type in the given direction, without taking delays into account.
- canBuild() - Method in enum battlecode.common.RobotType
-
Returns whether the robot can build.
- canLaunch(Direction) - Method in interface battlecode.common.RobotController
-
Returns whether the direction is valid for launching (LAUNCHER only).
- canLaunch() - Method in enum battlecode.common.RobotType
-
Returns whether the robot can launch missiles.
- canMine() - Method in interface battlecode.common.RobotController
-
Returns whether the robot is able to mine, without taking delays into account.
- canMine() - Method in enum battlecode.common.RobotType
-
Returns whether the robot can mine.
- canMove(Direction) - Method in interface battlecode.common.RobotController
-
Tells whether this robot can move in the given direction, without taking any sort of delays into account.
- canMove() - Method in enum battlecode.common.RobotType
-
Returns whether the robot can move.
- canSenseLocation(MapLocation) - Method in interface battlecode.common.RobotController
-
Returns true if the given location is within the robot's sensor range, or within the sensor range of some ally.
- canSenseRobot(int) - Method in interface battlecode.common.RobotController
-
Returns true if the given robot is within the robot's sensor range.
- canSpawn(Direction, RobotType) - Method in interface battlecode.common.RobotController
-
Returns whether the spawn action is valid, without taking delays into account.
- canSpawn() - Method in enum battlecode.common.RobotType
-
Returns whether the robot can spawn.
- castFlash(MapLocation) - Method in interface battlecode.common.RobotController
-
Casts Flash at the given location (COMMANDER only).
- checkDependencyProgress(RobotType) - Method in interface battlecode.common.RobotController
-
Gets the current progress of a dependency (relevant for building structures).
- Clock - Class in battlecode.common
-
A robot's internal clock, used for measuring "time" in bytecodes and rounds.
- CommanderSkillType - Enum in battlecode.common
-
This enumeration represents the unique skills possessed by the Commander robot.
- compareTo(MapLocation) - Method in class battlecode.common.MapLocation
-
A comparison function for MapLocations.
- cooldownDelay - Variable in enum battlecode.common.RobotType
-
Cooldown delay: the amount of contribution to core delay from an attack.
- coreDelay - Variable in class battlecode.common.RobotInfo
-
The current core delay of the robot.
- GameActionException - Exception in battlecode.common
-
An exception caused by a robot's interaction with the game world.
- GameActionException(GameActionExceptionType, String) - Constructor for exception battlecode.common.GameActionException
-
Creates a GameActionException with the given type and message.
- GameActionExceptionType - Enum in battlecode.common
-
Enumerates the possible errors in GameWorld interactions that cause a GameActionException to be thrown.
- GameConstants - Interface in battlecode.common
-
Defines constants that affect gameplay.
- getAllMapLocationsWithinRadiusSq(MapLocation, int) - Static method in class battlecode.common.MapLocation
-
Returns an array of all MapLocations within a certain radius squared
of a specified location (cannot be called with radiusSquared greater than 100).
- getBytecodeNum() - Static method in class battlecode.common.Clock
-
Returns the number of bytecodes the current robot has executed since the beginning
of the current round.
- getBytecodesLeft() - Static method in class battlecode.common.Clock
-
Returns the number of bytecodes this robot has left in this round.
- getControlBits() - Method in interface battlecode.common.RobotController
-
Gets this robot's 'control bits' for debugging purposes.
- getCoreDelay() - Method in interface battlecode.common.RobotController
-
Returns the amount of core delay a robot has accumulated.
- getFlashCooldown() - Method in interface battlecode.common.RobotController
-
Returns the current cooldown of FLASH (COMMANDER only).
- getHealth() - Method in interface battlecode.common.RobotController
-
Gets the robot's current health.
- getID() - Method in interface battlecode.common.RobotController
-
Use this method to access your ID.
- getLocation() - Method in interface battlecode.common.RobotController
-
Gets the robot's current location.
- getMissileCount() - Method in interface battlecode.common.RobotController
-
Returns how many missiles the robot has.
- getRoundLimit() - Method in interface battlecode.common.RobotController
-
Gets the number of rounds in the game.
- getRoundNum() - Static method in class battlecode.common.Clock
-
Returns the current round number, where round 0 is the first round of the match.
- getSupplyLevel() - Method in interface battlecode.common.RobotController
-
Gets the robot's current supply level.
- getTeam() - Method in interface battlecode.common.RobotController
-
Gets the Team of this robot.
- getTeamMemory() - Method in interface battlecode.common.RobotController
-
Returns the team memory from the last game of the match.
- getTeamOre() - Method in interface battlecode.common.RobotController
-
Gets the team's total ore.
- getType() - Method in exception battlecode.common.GameActionException
-
Gives the type of gameworld interaction that caused this GameActionException, which
was specified when this instance was constructed.
- getType() - Method in interface battlecode.common.RobotController
-
Gets this robot's type (SOLDIER, HQ, etc.).
- getWeaponDelay() - Method in interface battlecode.common.RobotController
-
Returns the amount of weapon delay a robot has accumulated.
- getXP() - Method in interface battlecode.common.RobotController
-
Gets the experience a robot has.
- hasBuildRequirements(RobotType) - Method in interface battlecode.common.RobotController
-
Returns whether you have the ore and the dependencies to build the given robot, and that the robot can build structures.
- hasCommander() - Method in interface battlecode.common.RobotController
-
Returns whether the team currently has a commander.
- hashCode() - Method in class battlecode.common.MapLocation
- hashCode() - Method in class battlecode.common.RobotInfo
-
- hasLearnedSkill(CommanderSkillType) - Method in interface battlecode.common.RobotController
-
Returns whether the robot has learned a skill (only relevant if used by a COMMANDER).
- hasSpawnRequirements(RobotType) - Method in interface battlecode.common.RobotController
-
Checks to make sure you have the ore requirements to spawn, and that the structure can actually spawn the specified RobotType.
- health - Variable in class battlecode.common.RobotInfo
-
The current health of the robot.
- HEAVY_HANDS_ATTACK_DELAY - Static variable in interface battlecode.common.GameConstants
-
Attack delay incurred by using the 'heavy hands' skill.
- HEAVY_HANDS_MOVEMENT_DELAY - Static variable in interface battlecode.common.GameConstants
-
Movement delay incurred by using the 'heavy hands' skill.
- HQ_BUFFED_ATTACK_DELAY - Static variable in interface battlecode.common.GameConstants
-
The attack delay of a buffed HQ (5 towers).
- HQ_BUFFED_ATTACK_RADIUS_SQUARED - Static variable in interface battlecode.common.GameConstants
-
The attack radius of a buffed HQ (2 towers).
- HQ_BUFFED_DAMAGE_MULTIPLIER_LEVEL_1 - Static variable in interface battlecode.common.GameConstants
-
The damage multiplier for a buffed HQ (3 towers).
- HQ_BUFFED_DAMAGE_MULTIPLIER_LEVEL_2 - Static variable in interface battlecode.common.GameConstants
-
The damage multiplier for a buffed HQ (6 towers).
- HQ_BUFFED_DAMAGE_RATIO_LEVEL_1 - Static variable in interface battlecode.common.GameConstants
-
The fraction of damage taken per attack for a buffed HQ (1 tower).
- HQ_BUFFED_DAMAGE_RATIO_LEVEL_2 - Static variable in interface battlecode.common.GameConstants
-
The fraction of damage taken per attack for a 4-tower buffed HQ (4 towers).
- HQ_BUFFED_DAMAGE_RATIO_LEVEL_3 - Static variable in interface battlecode.common.GameConstants
-
The fraction of damage taken per attack for a 6-tower buffed HQ (6 towers).
- HQ_BUFFED_SPLASH_RADIUS_SQUARED - Static variable in interface battlecode.common.GameConstants
-
Splash radius of a buffed HQ (5 towers).
- HQ_BUFFED_SPLASH_RATE - Static variable in interface battlecode.common.GameConstants
-
The fraction of damage done by splash on a buffed HQ (5 towers).
- HQ_ORE_INCOME - Static variable in interface battlecode.common.GameConstants
-
The amount of ore the HQ gets for free each turn.
- MAP_MAX_HEIGHT - Static variable in interface battlecode.common.GameConstants
-
The maximum possible map height.
- MAP_MAX_WIDTH - Static variable in interface battlecode.common.GameConstants
-
The maxiumum possible map width.
- MAP_MIN_HEIGHT - Static variable in interface battlecode.common.GameConstants
-
The minimum possible map height.
- MAP_MIN_WIDTH - Static variable in interface battlecode.common.GameConstants
-
The minumum possible map width.
- MapLocation - Class in battlecode.common
-
This class is an immutable representation of two-dimensional coordinates
in the battlecode world.
- MapLocation(int, int) - Constructor for class battlecode.common.MapLocation
-
Creates a new MapLocation representing the location
with the given coordinates.
- maxHealth - Variable in enum battlecode.common.RobotType
-
Maximum health for the robot.
- mine() - Method in interface battlecode.common.RobotController
-
Mines the current square for ore.
- MINER_MINE_MAX - Static variable in interface battlecode.common.GameConstants
-
The maximum amount of ore that a MINER can mine.
- MINER_MINE_MAX_UPGRADED - Static variable in interface battlecode.common.GameConstants
-
The maximum amount of ore that an upgraded MINER can mine (NOT USED!).
- MINER_MINE_RATE - Static variable in interface battlecode.common.GameConstants
-
The fraction of ore that a MINER gets from a square.
- MINIMUM_MINE_AMOUNT - Static variable in interface battlecode.common.GameConstants
-
The minimum amount that is mined on a square with no ore.
- MINING_LOADING_DELAY - Static variable in interface battlecode.common.GameConstants
-
The loading delay from mining.
- MINING_MOVEMENT_DELAY - Static variable in interface battlecode.common.GameConstants
-
The movement delay gained from mining.
- MISSILE_LIFESPAN - Static variable in interface battlecode.common.GameConstants
-
After this many turns, a missile automatically detonates.
- MISSILE_MAX_COUNT - Static variable in interface battlecode.common.GameConstants
-
The maximum number of missiles a launcher can have at a time.
- MISSILE_MAXIMUM_DAMAGE - Static variable in interface battlecode.common.GameConstants
-
Maximum damage a missile can take.
- MISSILE_RADIUS_SQUARED - Static variable in interface battlecode.common.GameConstants
-
Missile explosion splash radius.
- MISSILE_SPAWN_FREQUENCY - Static variable in interface battlecode.common.GameConstants
-
The rate at which a launcher spawns missiles.
- missileCount - Variable in class battlecode.common.RobotInfo
-
The missile count of the robot.
- move(Direction) - Method in interface battlecode.common.RobotController
-
Queues a move in the given direction to be performed at the end of this turn.
- movementDelay - Variable in enum battlecode.common.RobotType
-
Movement delay: the amount of contribution to core delay from a movement.
- senseEnemyHQLocation() - Method in interface battlecode.common.RobotController
-
Returns location of the enemy team's HQ (unconstrained by sensor range or distance).
- senseEnemyTowerLocations() - Method in interface battlecode.common.RobotController
-
Returns the locations of surviving enemy towers, unconstrained by sensor range or distance.
- senseHQLocation() - Method in interface battlecode.common.RobotController
-
Returns location of the allied team's HQ (unconstrained by sensor range or distance).
- senseNearbyRobots() - Method in interface battlecode.common.RobotController
-
Returns all robots that can be sensed on the map.
- senseNearbyRobots(int) - Method in interface battlecode.common.RobotController
-
Returns all robots that can be sensed within a certain radius of the robot.
- senseNearbyRobots(int, Team) - Method in interface battlecode.common.RobotController
-
Returns all robots of a given team that can be sensed within a certain radius of the robot.
- senseNearbyRobots(MapLocation, int, Team) - Method in interface battlecode.common.RobotController
-
Returns all robots of a givin team that can be sensed within a certain radius of a specified location.
- senseOre(MapLocation) - Method in interface battlecode.common.RobotController
-
Returns the amount of ore at a given location (to within sensor capabilities).
- senseRobot(int) - Method in interface battlecode.common.RobotController
-
Senses information about a particular robot given its ID.
- senseRobotAtLocation(MapLocation) - Method in interface battlecode.common.RobotController
-
Returns the robot at the given location, or null
if there is no object there.
- senseTerrainTile(MapLocation) - Method in interface battlecode.common.RobotController
-
Senses the terrain at the given location.
- senseTowerLocations() - Method in interface battlecode.common.RobotController
-
Returns the locations of your own towers, unconstrained by sensor range or distance.
- sensorRadiusSquared - Variable in enum battlecode.common.RobotType
-
Range^2 for sensing.
- setIndicatorDot(MapLocation, int, int, int) - Method in interface battlecode.common.RobotController
-
Draws a dot on the game map, for debugging purposes.
- setIndicatorLine(MapLocation, MapLocation, int, int, int) - Method in interface battlecode.common.RobotController
-
Draws a line on the game map, for debugging purposes.
- setIndicatorString(int, String) - Method in interface battlecode.common.RobotController
-
Sets one of this robot's 'indicator strings' for debugging purposes.
- setTeamMemory(int, long) - Method in interface battlecode.common.RobotController
-
Sets the team's "memory", which is saved for the next game in the
match.
- setTeamMemory(int, long, long) - Method in interface battlecode.common.RobotController
-
Sets this team's "memory".
- spawn(Direction, RobotType) - Method in interface battlecode.common.RobotController
-
Queues a spawn action to be performed at the end of this robot's turn.
- spawnSource - Variable in enum battlecode.common.RobotType
-
For units, this is the structure that spawns it.
- strengthWeight - Variable in enum battlecode.common.RobotType
-
How relatively strong the unit is.
- subtract(Direction) - Method in class battlecode.common.MapLocation
-
Returns a new MapLocation object representing a location
one square from this one in the opposite of the given direction.
- SUPPLY_DECAY - Static variable in interface battlecode.common.GameConstants
-
The rate at which supply decays each turn.
- SUPPLY_GEN_BASE - Static variable in interface battlecode.common.GameConstants
-
Constants for the HQ supply generation formula.
- SUPPLY_GEN_EXPONENT - Static variable in interface battlecode.common.GameConstants
-
- SUPPLY_GEN_MULTIPLIER - Static variable in interface battlecode.common.GameConstants
-
- SUPPLY_TRANSFER_RADIUS_SQUARED - Static variable in interface battlecode.common.GameConstants
-
The maximum distance over which supplies can be transferred.
- supplyLevel - Variable in class battlecode.common.RobotInfo
-
The current supply level of the robot.
- supplyUpkeep - Variable in enum battlecode.common.RobotType
-
Base supply upkeep (not including bytecode supply upkeep).
- valueOf(String) - Static method in enum battlecode.common.CommanderSkillType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum battlecode.common.DependencyProgress
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum battlecode.common.Direction
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum battlecode.common.GameActionExceptionType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in class battlecode.common.MapLocation
-
- valueOf(String) - Static method in enum battlecode.common.RobotType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum battlecode.common.Team
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum battlecode.common.TerrainTile
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum battlecode.common.CommanderSkillType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum battlecode.common.DependencyProgress
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum battlecode.common.Direction
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum battlecode.common.GameActionExceptionType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum battlecode.common.RobotType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum battlecode.common.Team
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum battlecode.common.TerrainTile
-
Returns an array containing the constants of this enum type, in
the order they are declared.