A B C D E F G H I L M N O P R S T U V W X Y 

A

actionDelay - Variable in class battlecode.common.RobotInfo
Action delay of the robot.
add(Direction) - Method in class battlecode.common.MapLocation
Returns a new MapLocation object representing a location one square from this one in the given direction.
add(Direction, int) - Method in class battlecode.common.MapLocation
Returns a new MapLocation object representing a location multiple squares from this one in the given direction.
add(int, int) - Method in class battlecode.common.MapLocation
Returns a new MapLocation object translated from this location by a fixed amount
addMatchObservation(String) - Method in interface battlecode.common.RobotController
Adds a custom observation to the match file, such that when it is analyzed, this observation will appear.
ATTACK_SCARE_RANGE - Static variable in interface battlecode.common.GameConstants
Range in which attacking scares cows (from the target location of the attack)
attackAngle - Variable in enum battlecode.common.RobotType
Not used for 2014 (all angles allowable by default).
attackCosHalfTheta - Variable in enum battlecode.common.RobotType
 
attackDelay - Variable in enum battlecode.common.RobotType
Action delay due to attacks.
attackPower - Variable in enum battlecode.common.RobotType
The amount of damage that this robot does when it attacks.
attackRadiusMaxSquared - Variable in enum battlecode.common.RobotType
The square of the maximum distance that the robot can attack.
attackRadiusMinSquared - Variable in enum battlecode.common.RobotType
The square of the minimum distance that the robot can attack.
attackSquare(MapLocation) - Method in interface battlecode.common.RobotController
Attacks the given location Also applies to NOISETOWER, but does not deal damage in that case Creates a long-range noise at the targeted location
attackSquareLight(MapLocation) - Method in interface battlecode.common.RobotController
NOISETOWER only 'Attacks' the given location Does not deal damage, but creates a short-range noise at the targeted location

B

battlecode.common - package battlecode.common
 
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
BYTECODE_LIMIT - Static variable in interface battlecode.common.GameConstants
The base number of bytecodes a robot can execute each round
BYTECODE_PENALTY - Static variable in interface battlecode.common.GameConstants
Actiondelay per extra bytecode

C

canAttack - Variable in enum battlecode.common.RobotType
Whether or not the robot can attack units.
canAttack(RobotLevel) - Method in enum battlecode.common.RobotType
Returns true if the robot can attack robots at the given level.
canAttackSquare(MapLocation) - Method in interface battlecode.common.RobotController
Returns whether the given location is within the robot's attack range.
canMove(Direction) - Method in interface battlecode.common.RobotController
Tells whether this robot can move in the given direction.
canSenseObject(GameObject) - Method in interface battlecode.common.RobotController
Returns true if the given object is within the robot's sensor range
canSenseSquare(MapLocation) - Method in interface battlecode.common.RobotController
Returns true if the given location is within the robot's sensor range
captureTurns - Variable in enum battlecode.common.RobotType
How many turns it takes to build this building.
Clock - Class in battlecode.common
A robot's internal clock, used for measuring "time" in bytecodes and rounds.
construct(RobotType) - Method in interface battlecode.common.RobotController
After a delay, kills the soldier and spawns a robot of the given building type
constructingRounds - Variable in class battlecode.common.RobotInfo
The number of constructing rounds remaining.
constructingType - Variable in class battlecode.common.RobotInfo
The type of building being constructed.
count - Variable in enum battlecode.common.RobotType
Amount the robot counts towards the total robot count.

D

Direction - Enum in battlecode.common
This enumeration represents a direction from one MapLocation to another.
direction - Variable in class battlecode.common.RobotInfo
The direction this Robot is facing.
directionTo(MapLocation) - Method in class battlecode.common.MapLocation
Returns the Direction from this MapLocation to location.
distanceSquaredTo(MapLocation) - Method in class battlecode.common.MapLocation
Computes the square of the distance from this location to the specified location.
dx - Variable in enum battlecode.common.Direction
 
dy - Variable in enum battlecode.common.Direction
 

E

equals(Object) - Method in class battlecode.common.MapLocation
Two MapLocations are regarded as equal iff their coordinates are the same.
EXCEPTION_BYTECODE_PENALTY - Static variable in interface battlecode.common.GameConstants
The bytecode penalty that is imposed each time an exception is thrown

F

FREE_BYTECODES - Static variable in interface battlecode.common.GameConstants
Number of bytecodes per turn that are not converted into actiondelay

G

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.
GameObject - Interface in battlecode.common
A GameObject instance represents an object in the game world.
getActionDelay() - Method in interface battlecode.common.RobotController
Gets the robot's current action delay.
getAllMapLocationsWithinRadiusSq(MapLocation, int) - Static method in class battlecode.common.MapLocation
 
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.
getConstructingRounds() - Method in interface battlecode.common.RobotController
Returns the number of turns left in the current construction.
getConstructingType() - Method in interface battlecode.common.RobotController
Returns the RobotType of the structure the robot is constructing.
getControlBits() - Method in interface battlecode.common.RobotController
Gets this robot's 'control bits' for debugging purposes.
getHealth() - Method in interface battlecode.common.RobotController
Gets the robot's current health (hitpoints).
getHeight() - Method in enum battlecode.common.RobotLevel
Returns an integral height-wise ordering of the height type.
getID() - Method in interface battlecode.common.GameObject
Gives the globally unique integer ID of this GameObject
getLocation() - Method in interface battlecode.common.RobotController
Gets the robot's current location.
getMapHeight() - Method in interface battlecode.common.RobotController
 
getMapWidth() - Method in interface battlecode.common.RobotController
 
getRobot() - Method in interface battlecode.common.RobotController
Use this method to access your robot.
getRobotLevel() - Method in interface battlecode.common.GameObject
Gives the level at which this object appears.
getRoundNum() - Static method in class battlecode.common.Clock
Returns the current round number, where round 0 is the first round of the match.
getTeam() - Method in interface battlecode.common.GameObject
Gives this GameObject's team
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.
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.)

H

hashCode() - Method in class battlecode.common.MapLocation
hashCode() - Method in class battlecode.common.RobotInfo
 
HAT_MILK_COST - Static variable in interface battlecode.common.GameConstants
Amount of milk required to wear a hat
HEAL_RATE - Static variable in interface battlecode.common.GameConstants
Amount of health a regenerating robot or structure heals per turn
HEAL_TURN_DELAY - Static variable in interface battlecode.common.GameConstants
Number of turns after taking damage before a robot or structure begins regenerating
health - Variable in class battlecode.common.RobotInfo
The energon of this Robot.
HQ_CLOAK_RADIUS - Static variable in interface battlecode.common.GameConstants
The radius (squared) around the HQ within which allied soldiers cannot be sensed by the enemy.
HQ_SPAWN_DELAY_CONSTANT_1 - Static variable in interface battlecode.common.GameConstants
Constant used to calculate the HQ spawn delay
HQ_SPAWN_DELAY_CONSTANT_2 - Static variable in interface battlecode.common.GameConstants
Constant used to calculate the HQ spawn delay

I

isActive() - Method in interface battlecode.common.RobotController
Returns if the robot is active (able to move, construct, and attack)
isAdjacentTo(MapLocation) - Method in class battlecode.common.MapLocation
Determines whether this location is adjacent to the specified location.
isBuilding - Variable in enum battlecode.common.RobotType
Whether the robot must be built.
isConstructing() - Method in interface battlecode.common.RobotController
Returns whether the robot is currently constructing a structure.
isConstructing - Variable in class battlecode.common.RobotInfo
Whether the robot is constructing anything.
isDiagonal() - Method in enum battlecode.common.Direction
Determines whether or not this direction is a diagonal one.
isTraversableAtHeight(RobotLevel) - Method in enum battlecode.common.TerrainTile
Returns true if robots at the given height can traverse this terrain tile.

L

level - Variable in enum battlecode.common.RobotType
The robot's level.
location - Variable in class battlecode.common.RobotInfo
The location of this Robot.

M

main(String[]) - Static method in class battlecode.common.MapEditor
 
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.
MapEditor - Class in battlecode.common
Not valid for Battlecode 2014.
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.
MAX_EFFICIENT_COWS - Static variable in interface battlecode.common.GameConstants
The number of cows within a PASTR that can be milked with perfect efficiency.
MAX_ROBOTS - Static variable in interface battlecode.common.GameConstants
The maximum number of robots you are allowed.
maxHealth - Variable in enum battlecode.common.RobotType
The maximum amount of health the robot can have.
MILK_GAIN_FACTOR - Static variable in interface battlecode.common.GameConstants
Factor of WIN_QTY milk that is gained after destroying an enemy PASTR
MILK_PENALTY_FACTOR - Static variable in interface battlecode.common.GameConstants
Factor of WIN_QTY milk that is given to your opponent if your PASTR self destructs
MILKING_INEFFICIENCY - Static variable in interface battlecode.common.GameConstants
For a quantity of cows above the maximum efficient cows number X in a PASTR, we only get X^(this constant) milk.
MIN_DISTANCE_BETWEEN_SPAWN_POINTS - Static variable in interface battlecode.common.GameConstants
The minimum distance between spawn points on the map.
move(Direction) - Method in interface battlecode.common.RobotController
Move in the given direction if possible Creates a short-range noise at the destination location
MOVEMENT_SCARE_RANGE - Static variable in interface battlecode.common.GameConstants
Range in which non-sneaking movement scares cows (from the destination location of the movement)
MovementType - Enum in battlecode.common
Representing the different types of movement.

N

NEUTRALS_TURN_DECAY - Static variable in interface battlecode.common.GameConstants
Cow value decay per turn
NOISE_SCARE_RANGE_LARGE - Static variable in interface battlecode.common.GameConstants
Range in which NOISETOWER normal attacks scare cows
NOISE_SCARE_RANGE_SMALL - Static variable in interface battlecode.common.GameConstants
Range in which NOISETOWER light attacks scare cows
NUMBER_OF_INDICATOR_STRINGS - Static variable in interface battlecode.common.GameConstants
The number of indicator strings that a player can associate with a robot
numRounds - Variable in enum battlecode.common.Upgrade
 

O

opponent() - Method in enum battlecode.common.Team
Determines the team that is the opponent of this team.
OPPONENT_MILK_SENSE_ACCURACY - Static variable in interface battlecode.common.GameConstants
Accuracy of milk quantity of your opponent when sensing.
opposite() - Method in enum battlecode.common.Direction
Computes the direction opposite this one.

P

PASTR_RANGE - Static variable in interface battlecode.common.GameConstants
Range in which a PASTR contains and milks cows

R

readBroadcast(int) - Method in interface battlecode.common.RobotController
Retrieves the message stored at the given radio channel.
resign() - Method in interface battlecode.common.RobotController
Causes your team to lose the game.
ROAD_ACTION_DELAY_FACTOR - Static variable in interface battlecode.common.GameConstants
Factor at which movement-related and sneaking-related actiondelay is discounted on a road
Robot - Interface in battlecode.common
A Robot instance represents a robot in the game world.
robot - Variable in class battlecode.common.RobotInfo
The robot that was sensed.
ROBOT_MILK_PERCENTAGE - Static variable in interface battlecode.common.GameConstants
Factor at which SOLDIERs herd milk
RobotController - Interface in battlecode.common
A RobotController allows contestants to make their robot sense and interact with the game world.
RobotInfo - Class in battlecode.common
Struct that stores basic information that was 'sensed' of another Robot.
RobotInfo(Robot, MapLocation, double, Direction, RobotType, Team, double, boolean, RobotType, int) - Constructor for class battlecode.common.RobotInfo
 
RobotLevel - Enum in battlecode.common
Not used in 2014 because all robots are at the same level.
RobotType - Enum in battlecode.common
Contains details on various attributes of the different robots.
rotateLeft() - Method in enum battlecode.common.Direction
Computes the direction 45 degrees to the left (counter-clockwise) of this one.
rotateRight() - Method in enum battlecode.common.Direction
Computes the direction 45 degrees to the right (clockwise) of this one.
ROUND_MAX_LIMIT - Static variable in interface battlecode.common.GameConstants
The maximum possible round at which the game may be forced to end
ROUND_MIN_LIMIT - Static variable in interface battlecode.common.GameConstants
The minimum possible round at which the game may be forced to end
roundsUntilActive() - Method in interface battlecode.common.RobotController
Returns the number of rounds until the robot is active again

S

SELF_DESTRUCT_BASE_DAMAGE - Static variable in interface battlecode.common.GameConstants
Flat damage dealt by a self destruct
SELF_DESTRUCT_DAMAGE_FACTOR - Static variable in interface battlecode.common.GameConstants
Factor at which robot's health is converted to damage
selfDestruct() - Method in interface battlecode.common.RobotController
Kills your robot and deals area damage within distanceSquared 2 equal to GameConstants.SELF_DESTRUCT_BASE_DAMAGE plus the robot's current hp multiplied by GameConstants.SELF_DESTRUCT_DAMAGE_FACTOR.
senseBroadcastingRobotLocations() - Method in interface battlecode.common.RobotController
Returns an array of all the locations of the robots that have broadcasted in the last round (unconstrained by sensor range or distance)
senseBroadcastingRobotLocations(Team) - Method in interface battlecode.common.RobotController
Returns an array of all the locations of the robots that have broadcasted in the last round, filtered by team (unconstrained by sensor range or distance)
senseBroadcastingRobots() - Method in interface battlecode.common.RobotController
Returns an array of all the robots that have broadcasted in the last round (unconstrained by sensor range or distance)
senseBroadcastingRobots(Team) - Method in interface battlecode.common.RobotController
Returns an array of all the robots that have broadcasted in the last round, filtered by team (unconstrained by sensor range or distance)
senseCowGrowth() - Method in interface battlecode.common.RobotController
Gives a representation of the cow growths of each location of the map (unconstrained by sensor range or distance)
senseCowsAtLocation(MapLocation) - Method in interface battlecode.common.RobotController
Returns the number of cows currently at a given location.
senseEnemyHQLocation() - Method in interface battlecode.common.RobotController
Returns location of the enemy team's HQ (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)
senseLocationOf(GameObject) - Method in interface battlecode.common.RobotController
Sense the location of the given object.
senseNearbyGameObjects(Class<T>) - Method in interface battlecode.common.RobotController
Returns all game objects of a given type nearby the robot
senseNearbyGameObjects(Class<T>, int) - Method in interface battlecode.common.RobotController
Returns all game objects of a given type nearby the robot
senseNearbyGameObjects(Class<T>, int, Team) - Method in interface battlecode.common.RobotController
Returns all game objects of a given type nearby the robot of a given team
senseNearbyGameObjects(Class<T>, MapLocation, int, Team) - Method in interface battlecode.common.RobotController
Senses all game objects of a given type within a given search area specified by the parameters (constrainted by sensor range and distance)
senseObjectAtLocation(MapLocation) - Method in interface battlecode.common.RobotController
Returns the object at the given location, or null if there is no object there.
sensePastrLocations(Team) - Method in interface battlecode.common.RobotController
Returns the locations of PASTRS filtered by a team (unconstrained by sensor range or distance)
senseRobotCount() - Method in interface battlecode.common.RobotController
Gets the team's current robot count (with weighting).
senseRobotInfo(Robot) - Method in interface battlecode.common.RobotController
Sense the RobotInfo for the given robot.
senseTeamMilkQuantity(Team) - Method in interface battlecode.common.RobotController
Sense the milk level for a given team.
senseTerrainTile(MapLocation) - Method in interface battlecode.common.RobotController
Senses the terrain at the given location.
sensorAngle - Variable in enum battlecode.common.RobotType
Not used for 2014 (all angles allowable by default).
sensorCosHalfTheta - Variable in enum battlecode.common.RobotType
 
sensorRadiusSquared - Variable in enum battlecode.common.RobotType
The square of the maximum distance that the robot can sense.
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".
sneak(Direction) - Method in interface battlecode.common.RobotController
Sneak in the given direction if possible
SOLDIER_ATTACK_ACTION_DELAY - Static variable in interface battlecode.common.GameConstants
Actiondelay gained every time a SOLDIER attacks.
SOLDIER_DIAGONAL_MOVEMENT_ACTION_DELAY_FACTOR - Static variable in interface battlecode.common.GameConstants
Factor of increase for actiondelay for diagonal movement
SOLDIER_HEAL_RATE - Static variable in interface battlecode.common.GameConstants
DEPRECATED.
SOLDIER_HEAL_TURN_DELAY - Static variable in interface battlecode.common.GameConstants
DEPRECATED.
SOLDIER_MOVE_ACTION_DELAY - Static variable in interface battlecode.common.GameConstants
Actiondelay gained every time a SOLDIER moves (runs)
SOLDIER_SNEAK_ACTION_DELAY - Static variable in interface battlecode.common.GameConstants
Actiondelay gained every time a SOLDIER sneaks
spawn(Direction) - Method in interface battlecode.common.RobotController
HQ ONLY.
splashPower - Variable in enum battlecode.common.RobotType
Splash damage of attack.
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.

T

team - Variable in class battlecode.common.RobotInfo
The team of this Robot.
Team - Enum in battlecode.common
This enum represents the team of a GameObject; each GameObject has exactly one team.
TEAM_MEMORY_LENGTH - Static variable in interface battlecode.common.GameConstants
The number of longs that your team can remember between games.
TerrainTile - Enum in battlecode.common
Represents data of the terrain of a location on the map.
toString() - Method in class battlecode.common.MapLocation
type - Variable in class battlecode.common.RobotInfo
The type of this Robot.

U

Upgrade - Enum in battlecode.common
Not used for Battlecode 2014

V

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.MovementType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum battlecode.common.RobotLevel
Returns the enum constant of this type with the specified name.
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.
valueOf(String) - Static method in enum battlecode.common.Upgrade
Returns the enum constant of this type with the specified name.
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.MovementType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum battlecode.common.RobotLevel
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.
values() - Static method in enum battlecode.common.Upgrade
Returns an array containing the constants of this enum type, in the order they are declared.

W

wearHat() - Method in interface battlecode.common.RobotController
Puts a hat on the robot.
win() - Method in interface battlecode.common.RobotController
 
WIN_QTY - Static variable in interface battlecode.common.GameConstants
Amount of milk necessary for victory

X

x - Variable in class battlecode.common.MapLocation
The x-coordinate.

Y

y - Variable in class battlecode.common.MapLocation
The y-coordinate.
yield() - Method in interface battlecode.common.RobotController
Ends the current round.
A B C D E F G H I L M N O P R S T U V W X Y