- battlecode.common - package battlecode.common
-
- BodyInfo - Interface in battlecode.common
-
Stores information about a Object/Body in the game world
- bodyRadius - Variable in enum battlecode.common.RobotType
-
Radius for the robot.
- broadcast(int, int) - Method in interface battlecode.common.RobotController
-
Broadcasts an integer to the team-shared array at index channel.
- BROADCAST_MAX_CHANNELS - Static variable in interface battlecode.common.GameConstants
-
The size of the team-shared array for signaling.
- broadcastBoolean(int, boolean) - Method in interface battlecode.common.RobotController
-
Broadcasts a boolean to the team-shared array at index channel.
- broadcastFloat(int, float) - Method in interface battlecode.common.RobotController
-
Broadcasts a float to the team-shared array at index channel.
- broadcastInt(int, int) - Method in interface battlecode.common.RobotController
-
Broadcasts an int to the team-shared array at index channel.
- buildCooldownTurns - Variable in enum battlecode.common.RobotType
-
Cooldown turns for structure that spawns it.
- buildRobot(RobotType, Direction) - Method in interface battlecode.common.RobotController
-
Builds a robot of the given type in the given direction.
- BULLET_INCOME_UNIT_PENALTY - Static variable in interface battlecode.common.GameConstants
-
The decrease in bullet income per turn per bullet that you have.
- BULLET_SPAWN_OFFSET - Static variable in interface battlecode.common.GameConstants
-
The distance from the outer edge of a robot bullets are spawned.
- BULLET_TREE_BULLET_PRODUCTION_RATE - Static variable in interface battlecode.common.GameConstants
-
The amount of bullets produced from one unit of health per bullet tree.
- BULLET_TREE_CONSTRUCTION_COOLDOWN - Static variable in interface battlecode.common.GameConstants
-
Number of cooldown turns robot must wait between planting trees.
- BULLET_TREE_COST - Static variable in interface battlecode.common.GameConstants
-
The cost in bullets to spawn a bullet tree.
- BULLET_TREE_DECAY_RATE - Static variable in interface battlecode.common.GameConstants
-
The amount of health bullet trees lose per turn from decay.
- BULLET_TREE_MAX_HEALTH - Static variable in interface battlecode.common.GameConstants
-
The max health of bullet trees.
- BULLET_TREE_RADIUS - Static variable in interface battlecode.common.GameConstants
-
The radius of bullet trees.
- bulletCost - Variable in enum battlecode.common.RobotType
-
Cost for creating the robot.
- BulletInfo - Class in battlecode.common
-
Struct that stores basic information that was 'sensed' of a Bullet.
- BulletInfo(int, MapLocation, Direction, float, float) - Constructor for class battlecode.common.BulletInfo
-
- BULLETS_INITIAL_AMOUNT - Static variable in interface battlecode.common.GameConstants
-
The amount of bullets that each team starts with.
- bulletSightRadius - Variable in enum battlecode.common.RobotType
-
Range for sensing bullets.
- bulletSpeed - Variable in enum battlecode.common.RobotType
-
Speed of bullets produced from the robot.
- bytecodeLimit - Variable in enum battlecode.common.RobotType
-
Base bytecode limit of this robot.
- canAttack() - Method in enum battlecode.common.RobotType
-
Returns whether the robot can attack.
- canBuild() - Method in enum battlecode.common.RobotType
-
Returns whether the robot can build trees and all units except Gardeners and Archons.
- canBuildRobot(RobotType, Direction) - Method in interface battlecode.common.RobotController
-
Tests whether the robot can build a robot of the given type in the
given direction.
- canChop(MapLocation) - Method in interface battlecode.common.RobotController
-
Tests whether the robot can chop a tree at the given location.
- canChop(int) - Method in interface battlecode.common.RobotController
-
Tests whether the robot can chop a tree with the given ID.
- canFirePentadShot() - Method in interface battlecode.common.RobotController
-
Tests whether there is enough bullets in your bullet supply to
fire a pentad shot, the robot is of an appropriate type, and the
robot has not attacked in the current turn.
- canFireSingleShot() - Method in interface battlecode.common.RobotController
-
Tests whether there are enough bullets in your bullet supply to
fire a single shot, the robot is of an appropriate type, and the
robot has not attacked in the current turn.
- canFireTriadShot() - Method in interface battlecode.common.RobotController
-
Tests whether there are enough bullets in your bullet supply to
fire a triad shot, the robot is of an appropriate type, and the
robot has not attacked in the current turn.
- canHire() - Method in enum battlecode.common.RobotType
-
Returns whether the robot can hire Gardeners.
- canHireGardener(Direction) - Method in interface battlecode.common.RobotController
-
Tests whether the robot can hire a Gardener in the given direction.
- canInteractWithTree(MapLocation) - Method in interface battlecode.common.RobotController
-
Tests whether there is a tree at the given location and, if so,
if the tree is within one stride of this robot and can therefore be
interacted with through chop(), shake(), or water().
- canInteractWithTree(int) - Method in interface battlecode.common.RobotController
-
Tests whether there is a tree with the given ID and, if so,
if the tree is within one stride of this robot and can therefore be
interacted with through chop(), shake(), or water().
- canMove(Direction) - Method in interface battlecode.common.RobotController
-
Tells whether this robot can move one stride in the given direction,
without taking into account if they have already moved.
- canMove(Direction, float) - Method in interface battlecode.common.RobotController
-
Tests whether this robot can move distance units in the given
direction, without taking into account if they have already moved.
- canMove(MapLocation) - Method in interface battlecode.common.RobotController
-
Tests whether this robot can move to the target MapLocation.
- canPlantTree(Direction) - Method in interface battlecode.common.RobotController
-
Tests whether the robot can build a bullet tree in the given direction.
- canSenseAllOfCircle(MapLocation, float) - Method in interface battlecode.common.RobotController
-
Senses whether all of the given circle is within the robot's sensor range.
- canSenseBullet(int) - Method in interface battlecode.common.RobotController
-
Tests the given bullet exists and it is within this robot's
sensor range.
- canSenseBulletLocation(MapLocation) - Method in interface battlecode.common.RobotController
-
Senses whether the given location is within the robot's bullet sense range.
- canSenseLocation(MapLocation) - Method in interface battlecode.common.RobotController
-
Senses whether the given location is within the robot's sensor range.
- canSensePartOfCircle(MapLocation, float) - Method in interface battlecode.common.RobotController
-
Senses whether any portion of the given circle is within the robot's sensor range.
- canSenseRadius(float) - Method in interface battlecode.common.RobotController
-
Senses whether a point at the given radius is within the robot's sensor range.
- canSenseRobot(int) - Method in interface battlecode.common.RobotController
-
Tests whether the given robot exists and any part of the given robot is
within this robot's sensor range.
- canSenseTree(int) - Method in interface battlecode.common.RobotController
-
Tests whether the given tree exists and any part of the given tree is
within this robot's sensor range.
- canShake(MapLocation) - Method in interface battlecode.common.RobotController
-
Tests whether this robot can shake a tree at the given location.
- canShake(int) - Method in interface battlecode.common.RobotController
-
Tests whether this robot can shake a tree with the given ID.
- canShake() - Method in interface battlecode.common.RobotController
-
Tests whether this robot can shake a tree, taking into
account how many times this robot has shaken this turn.
- canStrike() - Method in interface battlecode.common.RobotController
-
Tests whether a robot is able to strike this turn.
- canWater(MapLocation) - Method in interface battlecode.common.RobotController
-
Tests whether this robot can water a tree at the given location.
- canWater(int) - Method in interface battlecode.common.RobotController
-
Tests whether this robot can water a tree with the given ID.
- canWater() - Method in interface battlecode.common.RobotController
-
Tests whether this robot can water a tree, taking into
account how many times this robot has watered this turn and this
robot's type.
- chop(MapLocation) - Method in interface battlecode.common.RobotController
-
Chops the tree at the given location.
- chop(int) - Method in interface battlecode.common.RobotController
-
Chops the tree with the given ID.
- Clock - Class in battlecode.common
-
Clock is a singleton that allows contestants to introspect the state of their running
code.
- compareTo(MapLocation) - Method in class battlecode.common.MapLocation
-
A comparison function for MapLocations.
- containedBullets - Variable in class battlecode.common.TreeInfo
-
The current amount of bullets contained within the tree.
- containedRobot - Variable in class battlecode.common.TreeInfo
-
The robot contained within the tree that is obtained upon
destroying the tree using the cut() method.
- damage - Variable in class battlecode.common.BulletInfo
-
The damage this bullet deals on impact.
- degreesBetween(Direction) - Method in class battlecode.common.Direction
-
Computes the angle between the given direction and this direction in degrees.
- dir - Variable in class battlecode.common.BulletInfo
-
The direction in which this bullet is moving.
- Direction - Class in battlecode.common
-
This class is an immutable representation of a direction
in the battlecode world.
- Direction(float) - Constructor for class battlecode.common.Direction
-
- Direction(float, float) - Constructor for class battlecode.common.Direction
-
Creates a new Direction instance to represent the direction
in which the vector created by dx and dy points.
- Direction(MapLocation, MapLocation) - Constructor for class battlecode.common.Direction
-
Creates a new Direction instance to represent the direction
in which the vector from start to finish points.
- directionTo(MapLocation) - Method in class battlecode.common.MapLocation
-
Returns the Direction from this MapLocation to location.
- disintegrate() - Method in interface battlecode.common.RobotController
-
Kills your robot and ends the current round.
- distanceSquaredTo(MapLocation) - Method in class battlecode.common.MapLocation
-
Computes the squared distance from this location to the specified
location.
- distanceTo(MapLocation) - Method in class battlecode.common.MapLocation
-
Computes the Euclidean distance from this location to the specified
location.
- doCirclesCollide(MapLocation, float, MapLocation, float) - Static method in class battlecode.common.MapLocation
-
Checks where two given circles collide at any point.
- donate(float) - Method in interface battlecode.common.RobotController
-
Donates the given amount of bullets to the reforestation fund in
exchange for one victory point per ten bullets donated.
- GAME_DEFAULT_ROUNDS - Static variable in interface battlecode.common.GameConstants
-
The default game maxiumum number of rounds.
- GAME_DEFAULT_SEED - Static variable in interface battlecode.common.GameConstants
-
The default game seed.
- 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.
- GENERAL_SPAWN_OFFSET - Static variable in interface battlecode.common.GameConstants
-
The distance, as measured at its minimum value, between the bodies
of a creator robot and the robot/tree it spawns.
- getAngleDegrees() - Method in class battlecode.common.Direction
-
Computes the angle in degrees at which this direction faces.
- getAttackCount() - Method in interface battlecode.common.RobotController
-
Returns the number of times the robot has attacked this turn.
- getAttackCount() - Method in class battlecode.common.RobotInfo
-
Returns the number of times this robot has attacked this turn.
- getBuildCooldownTurns() - Method in interface battlecode.common.RobotController
-
Returns the number of cooldown turns remaining before this unit can build() again.
- 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.
- getContainedBullets() - Method in class battlecode.common.TreeInfo
-
- getContainedRobot() - Method in class battlecode.common.TreeInfo
-
- getControlBits() - Method in interface battlecode.common.RobotController
-
Gets this robot's 'control bits' for debugging purposes.
- getDamage() - Method in class battlecode.common.BulletInfo
-
Returns the damage this bullet deals on impact.
- getDeltaX(float) - Method in class battlecode.common.Direction
-
Computes the signed distance traveled on the x-axis when traveling travelDist
units in this Direction.
- getDeltaY(float) - Method in class battlecode.common.Direction
-
Computes the signed distance traveled on the y-axis when traveling travelDist
units in this Direction.
- getDir() - Method in class battlecode.common.BulletInfo
-
Returns the direction in which this bullet is moving.
- getEast() - Static method in class battlecode.common.Direction
-
Creates a instance of Direction that represents pointing east (right on screen).
- getHealth() - Method in interface battlecode.common.RobotController
-
Returns this robot's current health.
- getHealth() - Method in class battlecode.common.RobotInfo
-
Returns the current health of this robot.
- getHealth() - Method in class battlecode.common.TreeInfo
-
- getID() - Method in interface battlecode.common.BodyInfo
-
Returns the ID of this body.
- getID() - Method in class battlecode.common.BulletInfo
-
- getID() - Method in interface battlecode.common.RobotController
-
Returns the ID of this robot.
- getID() - Method in class battlecode.common.RobotInfo
-
- getID() - Method in class battlecode.common.TreeInfo
-
- getInitialArchonLocations(Team) - Method in interface battlecode.common.RobotController
-
Returns a list of the INITIAL locations of the archons of a particular
team.
- getLocation() - Method in interface battlecode.common.BodyInfo
-
Returns the center location of this body.
- getLocation() - Method in class battlecode.common.BulletInfo
-
- getLocation() - Method in interface battlecode.common.RobotController
-
Returns this robot's current location.
- getLocation() - Method in class battlecode.common.RobotInfo
-
- getLocation() - Method in class battlecode.common.TreeInfo
-
- getMaxHealth() - Method in class battlecode.common.TreeInfo
-
- getMoveCount() - Method in interface battlecode.common.RobotController
-
Returns the number of times the robot has moved this turn.
- getMoveCount() - Method in class battlecode.common.RobotInfo
-
Returns the number of times this robot has moved this turn.
- getNorth() - Static method in class battlecode.common.Direction
-
Creates a instance of Direction that represents pointing north (up on screen).
- getOpponentVictoryPoints() - Method in interface battlecode.common.RobotController
-
Returns your opponent's total victory points.
- getRadius() - Method in interface battlecode.common.BodyInfo
-
Returns the radius of this body.
- getRadius() - Method in class battlecode.common.BulletInfo
-
- getRadius() - Method in class battlecode.common.RobotInfo
-
- getRadius() - Method in class battlecode.common.TreeInfo
-
- getRobotCount() - Method in interface battlecode.common.RobotController
-
Returns the number of robots on your team, including your archons.
- getRoundLimit() - Method in interface battlecode.common.RobotController
-
Returns the number of rounds in the game.
- getRoundNum() - Method in interface battlecode.common.RobotController
-
Returns the current round number, where round 0 is the first round of the
match.
- getSouth() - Static method in class battlecode.common.Direction
-
Creates a instance of Direction that represents pointing south (down on screen).
- getSpeed() - Method in class battlecode.common.BulletInfo
-
Returns the speed of this bullet, in units per turn
- getStartingHealth() - Method in enum battlecode.common.RobotType
-
Returns the starting health of this type of robot.
- getTeam() - Method in interface battlecode.common.RobotController
-
Returns this robot's Team.
- getTeam() - Method in class battlecode.common.RobotInfo
-
Returns the team that this robot is on.
- getTeam() - Method in class battlecode.common.TreeInfo
-
- getTeamBullets() - Method in interface battlecode.common.RobotController
-
Returns the team's total bullet supply.
- getTeamMemory() - Method in interface battlecode.common.RobotController
-
Returns the team memory from the last game of the match.
- getTeamVictoryPoints() - Method in interface battlecode.common.RobotController
-
Returns the team's total victory points.
- getTreeCount() - Method in interface battlecode.common.RobotController
-
Returns the number of trees on your team.
- 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
-
Returns this robot's type (SOLDIER, ARCHON, etc.).
- getType() - Method in class battlecode.common.RobotInfo
-
Returns the type of this robot.
- getVictoryPointCost() - Method in interface battlecode.common.RobotController
-
Returns the current cost of a victory point in bullets.
- getWest() - Static method in class battlecode.common.Direction
-
Creates a instance of Direction that represents pointing west (left on screen).
- ID - Variable in class battlecode.common.BulletInfo
-
The unique ID of the bullet.
- ID - Variable in class battlecode.common.RobotInfo
-
The unique ID of the robot.
- ID - Variable in class battlecode.common.TreeInfo
-
The unique ID of the tree.
- INTERACTION_DIST_FROM_EDGE - Static variable in interface battlecode.common.GameConstants
-
The distance around a robot's edge it can interact with robots/trees (water, shake, chop, etc)
- isBuildable() - Method in enum battlecode.common.RobotType
-
Returns whether the robot is buildable.
- isBuildReady() - Method in interface battlecode.common.RobotController
-
Returns whether the robot's build cooldown has expired.
- isBullet() - Method in interface battlecode.common.BodyInfo
-
Returns whether this body is a bullet.
- isBullet() - Method in class battlecode.common.BulletInfo
-
- isBullet() - Method in class battlecode.common.RobotInfo
-
- isBullet() - Method in class battlecode.common.TreeInfo
-
- isCircleOccupied(MapLocation, float) - Method in interface battlecode.common.RobotController
-
Senses whether there is any robot or tree within a given circle.
- isCircleOccupiedExceptByThisRobot(MapLocation, float) - Method in interface battlecode.common.RobotController
-
Senses whether there is any robot or tree within a given circle, ignoring this robot
if it itself occupies the circle.
- isHireable() - Method in enum battlecode.common.RobotType
-
Returns whether the robot is hireable.
- isLocationOccupied(MapLocation) - Method in interface battlecode.common.RobotController
-
Senses whether there is a robot or tree at the given location.
- isLocationOccupiedByRobot(MapLocation) - Method in interface battlecode.common.RobotController
-
Senses whether there is a robot at the given location.
- isLocationOccupiedByTree(MapLocation) - Method in interface battlecode.common.RobotController
-
Senses whether there is a tree at the given location.
- isPlayer() - Method in enum battlecode.common.Team
-
Returns whether a robot of this team is a player-controlled entity
(team A or team B).
- isRobot() - Method in interface battlecode.common.BodyInfo
-
Returns whether this body is a robot.
- isRobot() - Method in class battlecode.common.BulletInfo
-
- isRobot() - Method in class battlecode.common.RobotInfo
-
- isRobot() - Method in class battlecode.common.TreeInfo
-
- isTree() - Method in interface battlecode.common.BodyInfo
-
Returns whether this body is a tree.
- isTree() - Method in class battlecode.common.BulletInfo
-
- isTree() - Method in class battlecode.common.RobotInfo
-
- isTree() - Method in class battlecode.common.TreeInfo
-
- isWithinBulletSightRadius(RobotInfo) - Method in class battlecode.common.MapLocation
-
Determines whether this location is within the bullet sight radius of the
given robot.
- isWithinDistance(MapLocation, float) - Method in class battlecode.common.MapLocation
-
Determines whether this location is within a specified distance
from target location.
- isWithinSensorRadius(RobotInfo) - Method in class battlecode.common.MapLocation
-
Determines whether this location is within the sensor radius of the
given robot.
- isWithinStrideDistance(RobotInfo) - Method in class battlecode.common.MapLocation
-
Determines whether this location is within one stride of the given robot.
- 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(float, float) - Constructor for class battlecode.common.MapLocation
-
Creates a new MapLocation representing the location
with the given coordinates.
- MAX_ROBOT_ID - Static variable in interface battlecode.common.GameConstants
-
Maximum ID a Robot will have; all bullets will have IDs larger than this
- MAX_ROBOT_RADIUS - Static variable in interface battlecode.common.GameConstants
-
The maximum radius a robot can have.
- maxHealth - Variable in enum battlecode.common.RobotType
-
Maximum health for the robot.
- maxHealth - Variable in class battlecode.common.TreeInfo
-
The current maximum health of the tree.
- move(Direction) - Method in interface battlecode.common.RobotController
-
Moves one stride in the given direction.
- move(Direction, float) - Method in interface battlecode.common.RobotController
-
Moves distance in the given direction.
- move(MapLocation) - Method in interface battlecode.common.RobotController
-
Moves to the target MapLocation.
- moveCount - Variable in class battlecode.common.RobotInfo
-
The number of times this robot has moved in the current turn.
- radians - Variable in class battlecode.common.Direction
-
The radians at which this direction is facing based off of
the unit circle; i.e.
- radiansBetween(Direction) - Method in class battlecode.common.Direction
-
Computes the angle between the given direction and this direction in radians.
- radius - Variable in class battlecode.common.TreeInfo
-
The radius of the tree.
- readBroadcast(int) - Method in interface battlecode.common.RobotController
-
Retrieves the integer stored in the team-shared array at index channel.
- readBroadcastBoolean(int) - Method in interface battlecode.common.RobotController
-
Retrieves the boolean stored in the team-shared array at index channel.
- readBroadcastFloat(int) - Method in interface battlecode.common.RobotController
-
Retrieves the float stored in the team-shared array at index channel.
- readBroadcastInt(int) - Method in interface battlecode.common.RobotController
-
Retrieves the int stored in the team-shared array at index channel.
- resign() - Method in interface battlecode.common.RobotController
-
Causes your team to lose the game.
- 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(int, Team, RobotType, MapLocation, float, int, int) - Constructor for class battlecode.common.RobotInfo
-
- RobotType - Enum in battlecode.common
-
Contains details on various attributes of the different robots.
- rotateLeftDegrees(float) - Method in class battlecode.common.Direction
-
Computes the direction angleDegrees to the left (counter-clockwise)
of this one.
- rotateLeftRads(float) - Method in class battlecode.common.Direction
-
Computes the direction angleRads (radians) to the left (counter-clockwise)
of this one.
- rotateRightDegrees(float) - Method in class battlecode.common.Direction
-
Computes the direction angleDegrees to the right (clockwise) of this
one.
- rotateRightRads(float) - Method in class battlecode.common.Direction
-
Computes the direction angleRads (radians) to the right (clockwise) of
this one.
- 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).
- senseBullet(int) - Method in interface battlecode.common.RobotController
-
Senses information about a particular bullet given its ID.
- senseNearbyBullets() - Method in interface battlecode.common.RobotController
-
Returns all bullets within bullet sense radius.
- senseNearbyBullets(float) - Method in interface battlecode.common.RobotController
-
Returns all bullets that can be sensed within a certain radius of this
robot.
- senseNearbyBullets(MapLocation, float) - Method in interface battlecode.common.RobotController
-
Returns all bullets that can be sensed within a certain
radius of a specified location.
- senseNearbyRobots() - Method in interface battlecode.common.RobotController
-
Returns all robots within sense radius.
- senseNearbyRobots(float) - Method in interface battlecode.common.RobotController
-
Returns all robots that can be sensed within a certain radius of this
robot.
- senseNearbyRobots(float, Team) - Method in interface battlecode.common.RobotController
-
Returns all robots of a given team that can be sensed within a certain
radius of this robot.
- senseNearbyRobots(MapLocation, float, Team) - Method in interface battlecode.common.RobotController
-
Returns all robots of a given team that can be sensed within a certain
radius of a specified location.
- senseNearbyTrees() - Method in interface battlecode.common.RobotController
-
Returns all trees within sense radius.
- senseNearbyTrees(float) - Method in interface battlecode.common.RobotController
-
Returns all trees that can be sensed within a certain radius of this
robot.
- senseNearbyTrees(float, Team) - Method in interface battlecode.common.RobotController
-
Returns all trees of a given team that can be sensed within a certain
radius of this robot.
- senseNearbyTrees(MapLocation, float, Team) - Method in interface battlecode.common.RobotController
-
Returns all trees of a given team that can be sensed within a certain
radius of a specified location.
- 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
-
Senses the robot at the given location, or null if there is no robot
there.
- senseTree(int) - Method in interface battlecode.common.RobotController
-
Senses information about a particular tree given its ID.
- senseTreeAtLocation(MapLocation) - Method in interface battlecode.common.RobotController
-
Senses the tree at the given location, or null if there is no tree
there.
- sensorRadius - Variable in enum battlecode.common.RobotType
-
Range for sensing robots and trees.
- setIndicatorDot(MapLocation, int, int, int) - Method in interface battlecode.common.RobotController
-
Draw a dot on the game map for debugging purposes.
- setIndicatorLine(MapLocation, MapLocation, int, int, int) - Method in interface battlecode.common.RobotController
-
Draw a line on the game map 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".
- shake(MapLocation) - Method in interface battlecode.common.RobotController
-
Shakes the tree at the given location for all the bullets held within
the tree; these bullets will be added to your team's bullet supply.
- shake(int) - Method in interface battlecode.common.RobotController
-
Shakes the tree with the given ID for all the bullets held within
the tree; these bullets will be added to your team's bullet supply.
- SINGLE_SHOT_COST - Static variable in interface battlecode.common.GameConstants
-
The bullet cost to fire a single shot.
- SOUTH - Static variable in class battlecode.common.Direction
-
Direction that represents pointing south (down on screen).
- spawnSource - Variable in enum battlecode.common.RobotType
-
For units, this is the structure that spawns it.
- SPEC_VERSION - Static variable in interface battlecode.common.GameConstants
-
The current spec version the server compiles with.
- speed - Variable in class battlecode.common.BulletInfo
-
The speed of this bullet, in units per turn.
- strideRadius - Variable in enum battlecode.common.RobotType
-
Maximum distance the robot can move per turn.
- strike() - Method in interface battlecode.common.RobotController
-
- subtract(Direction) - Method in class battlecode.common.MapLocation
-
Returns a new MapLocation object representing a location
one unit in distance from this one in the opposite direction
of the given direction.
- subtract(float) - Method in class battlecode.common.MapLocation
-
Returns a new MapLocation object representing a location
one unit in distance from this one in the opposite direction of the
given direction represented in radians.
- subtract(Direction, float) - Method in class battlecode.common.MapLocation
-
Returns a new MapLocation object representing a location
dist units in distance from this one in the opposite direction
of the given direction.
- subtract(float, float) - Method in class battlecode.common.MapLocation
-
Returns a new MapLocation object representing a location
dist units in distance from this one in the opposite direction of the
given direction represented in radians.
- 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.
- 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.
- VICTORY_POINTS_TO_WIN - Static variable in interface battlecode.common.GameConstants
-
The number of victory points required to win the game.
- VP_BASE_COST - Static variable in interface battlecode.common.GameConstants
-
The price, in bullets, of 1 victory point at the start of the game
- VP_INCREASE_PER_ROUND - Static variable in interface battlecode.common.GameConstants
-
The price, in bullets, the victory point cost increases each turn