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

A

A - Static variable in class robocraft.common.Team
The Team assigned to robots on Team A.
ALREADY_ACTIVE - Static variable in class robocraft.common.GameActionException
 
ALREADY_MOVING - Static variable in class robocraft.common.GameActionException
 
ATTACKING - Static variable in class robocraft.common.ActionType
The ActionType of an attacking robot.
AbstractRobotPlayer - class robocraft.player.AbstractRobotPlayer.
This is the class that contestants will need to extend and implement (in a file RobotPlayer.java).
AbstractRobotPlayer() - Constructor for class robocraft.player.AbstractRobotPlayer
 
ActionType - class robocraft.common.ActionType.
An ActionType represents a robot action that may occupy a robot for multiple rounds.
add(Direction) - Method in class robocraft.common.MapLocation
returns a new maplocation that is one square in the direction of dir from this.
attackAir(MapLocation) - Method in class robocraft.player.AbstractRobotPlayer
Initiate an attack on the AIR in a specified location.
attackAngle() - Method in class robocraft.common.RobotType
returns the angle of this robot's attack range.
attackCosHalfTheta() - Method in class robocraft.common.RobotType
returns the cosine of half the attack angle.
attackDelay() - Method in class robocraft.common.RobotType
returns the amount of rounds this robot will take to attack.
attackGround(MapLocation) - Method in class robocraft.player.AbstractRobotPlayer
Initiate an attack on the GROUND in a specified location.
attackPower() - Method in class robocraft.common.RobotType
returns the amount of energon this robot will drain from an enemy during an attack.
attackRadiusMax() - Method in class robocraft.common.RobotType
returns the maximum distance from this robot's location to a MapLocation in its attack range.
attackRadiusMin() - Method in class robocraft.common.RobotType
returns the minimum distance from this robot's location to a MapLocation in its attack range.

B

B - Static variable in class robocraft.common.Team
The Team assigned to robots on Team B.
BAD_DIRECTION - Static variable in class robocraft.common.GameActionException
 
BOMBER - Static variable in class robocraft.common.RobotType
 
BROADCAST_COST_PER_BYTE - Static variable in interface robocraft.common.GameConstants
Additional cost per byte of message size
BROADCAST_FIXED_COST - Static variable in interface robocraft.common.GameConstants
Fixed cost to send a message
broadcastMessage(Message) - Method in class robocraft.player.AbstractRobotPlayer
Broadcasts a message to all Robots currently in your broadcast range.
broadcastRadius() - Method in class robocraft.common.RobotType
returns the maximum distance from this robot another robot can be to receive broadcasted messages.
bytecodesPerRound() - Method in class robocraft.common.RobotType
returns the number of bytecodes this robot can process per round.

C

CANT_ATTACK_AIR - Static variable in class robocraft.common.GameActionException
 
CANT_ATTACK_GROUND - Static variable in class robocraft.common.GameActionException
 
CANT_ATTACK_WHILE_MOVING - Static variable in class robocraft.common.GameActionException
 
CANT_CARRY_FLAG - Static variable in class robocraft.common.GameActionException
 
CANT_LAY_MINE - Static variable in class robocraft.common.GameActionException
 
CANT_MOVE_THERE - Static variable in class robocraft.common.GameActionException
 
CANT_SPAWN_THAT - Static variable in class robocraft.common.GameActionException
 
CANT_SPAWN_THERE - Static variable in class robocraft.common.GameActionException
 
Clock - class robocraft.player.Clock.
A Robot's internal clock.
canAttackAir() - Method in class robocraft.common.RobotType
returns whether this robot will inflict damage on an airborne robot at a MapLocation that this robot attacks.
canAttackAir() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
canAttackGround() - Method in class robocraft.common.RobotType
returns whether this robot will inflict damage on a ground robot at a MapLocation that this robot attacks.
canAttackGround() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
canAttackSquare(MapLocation) - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method that does not throw an exception
canAttackSquare(MapLocation) - Method in class robocraft.player.Robot
Return whether a given location is within this robot's ATTACK range, given its current position and direction.
canCarryFlag() - Method in class robocraft.common.RobotType
returns whether this robot can pick up flags.
canLayMine() - Method in class robocraft.common.RobotType
returns whether this robot can lay mines.
canMove(Direction) - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception.
canMove(Direction) - Method in class robocraft.player.Robot
Returns whether this robot can move in the the specified direction, IF it were facing in that direction.
canSenseObject(GameObject) - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
canSenseObject(GameObject) - Method in class robocraft.player.Robot
Return whether a given GameObject is within this robot's SENSOR range, given its current position and direction.
canSenseSquare(MapLocation) - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
canSenseSquare(MapLocation) - Method in class robocraft.player.Robot
Return whether a given location is within this robot's SENSOR range, given its current position and direction.

D

DEFAULT_DEBUG_ENABLED - Static variable in interface robocraft.common.GameConstants
 
DEFAULT_MAP - Static variable in interface robocraft.common.GameConstants
 
DEFAULT_SERVER_HOST - Static variable in interface robocraft.common.GameConstants
 
DEFAULT_SERVER_PORT - Static variable in interface robocraft.common.GameConstants
 
DEFAULT_SILENCEA - Static variable in interface robocraft.common.GameConstants
 
DEFAULT_SILENCEB - Static variable in interface robocraft.common.GameConstants
 
DEFAULT_TEAMA - Static variable in interface robocraft.common.GameConstants
 
DEFAULT_TEAMB - Static variable in interface robocraft.common.GameConstants
 
Direction - class robocraft.common.Direction.
Direction represents one of the eight directions from a square to an adjacent square.
depositFlag() - Method in class robocraft.player.AbstractRobotPlayer
Deposit the flag you are carrying into the square in front of you.
directionToAdjacent(MapLocation) - Method in class robocraft.common.MapLocation
Return the exact direction towards an adjacent square.
distanceSquaredTo(MapLocation) - Method in class robocraft.common.MapLocation
 

E

EAST - Static variable in class robocraft.common.Direction
 
EXCEPTION_ENERGON_COST - Static variable in interface robocraft.common.GameConstants
Amount of energon you lose for causing a GameActionException
equals(Object) - Method in class robocraft.common.MapLocation
two map locations are equal if and only if both their x and y locations are ==.
equals(Object) - Method in class robocraft.player.GameObject
Test for equality

F

FALCON - Static variable in class robocraft.common.RobotType
 
FALLOUT_FRACTION - Static variable in interface robocraft.common.GameConstants
Fraction of mine damage neighboring squares receive when mine explodes
FLAG - Static variable in class robocraft.common.ObjectType
ObjectType instance referring to a flag object type.
fullEnergon() - Method in class robocraft.common.RobotType
 

G

GENERIC_FAILURE - Static variable in class robocraft.common.GameActionException
 
GameActionException - exception robocraft.common.GameActionException.
This exception is thrown whenever a player attempts to interact with the outside world, whether through using an active ability or simply querying a property, and the interaction is for some reason impossible to complete.
GameActionException(int) - Constructor for class robocraft.common.GameActionException
Gives the GameActionException the error code errorCode.
GameActionException() - Constructor for class robocraft.common.GameActionException
Gives the GameActionException the error code GENERIC_FAILURE.
GameConstants - interface robocraft.common.GameConstants.
 
GameObject - class robocraft.player.GameObject.
GameObject is a reference to an object in the robocraft world.
getAirRobotAtLocation(MapLocation) - Method in class robocraft.player.AbstractRobotPlayer
Sense any Robots IN THE AIR at this location.
getAttackPower() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
getBytecodeNum() - Static method in class robocraft.player.Clock
Returns the number of bytecode instructions since the beginning of the round.
getBytecodesPerRound() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
getBytecodesPerRound() - Static method in class robocraft.player.Clock
Returns the constant number of bytecodes executed by the calling robot's virtual machine each round.
getCurrentAction() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
getCurrentAction() - Method in class robocraft.player.Robot
Returns current action this robot is engaged in, or ActionType.IDLE if robot is not active.
getDirection() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
getDirection() - Method in class robocraft.player.Robot
Returns current direction this robot is facing.
getEnergonLevel() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
getEnergonLevel() - Method in class robocraft.player.Mine
Returns the energon level of this mine.
getEnergonLevel() - Method in class robocraft.player.Robot
Returns current energon level of this robot.
getErrorCode() - Method in class robocraft.common.GameActionException
Returns the error code representing the reason this GameActionException is being thrown.
getFlagTeam() - Static method in class robocraft.player.AbstractRobotPlayer
Returns whether your robot is currently carrying a flag.
getGroundRobotAtLocation(MapLocation) - Method in class robocraft.player.AbstractRobotPlayer
Sense any Robots ON THE GROUND at this location.
getID() - Method in class robocraft.player.GameObject
Return the unique integer ID of this object.
getLocation() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding GameObject method; does not throw an exception
getLocation() - Method in class robocraft.player.GameObject
Return's this object's location.
getMessage() - Method in class robocraft.common.GameActionException
 
getNextMessage() - Method in class robocraft.player.AbstractRobotPlayer
Retrieve the next message waiting in your message queue.
getNumBytes() - Method in class robocraft.player.Message
Returns the number of bytes in this message, which can be used to determine the cost of broadcasting it in energon.
getRType() - Method in class robocraft.player.Robot
Returns the type of robot this is.
getRobot() - Static method in class robocraft.player.AbstractRobotPlayer
Use this method to access your robot
getRoundNum() - Static method in class robocraft.player.Clock
Returns the number of the current round according to the robot's internal clock, which starts at 0 when the robot's program starts running and is incremented when a round ends.
getRoundsUntilIdle() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
getRoundsUntilIdle() - Method in class robocraft.player.Robot
Returns the number of rounds until isActive() will return false.
getTeam() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding GameObject method; does not throw an exception
getTeam() - Method in class robocraft.player.GameObject
This object's team.
getTerrainType(MapLocation) - Method in class robocraft.player.AbstractRobotPlayer
Sense the terrain type at a MapLocation.
getType() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding GameObject method; does not throw an exception
getType() - Method in class robocraft.player.GameObject
Return's this object's type.
getUnitCount(RobotType) - Method in class robocraft.player.AbstractRobotPlayer
Get the number of units of a certain RobotType on your team.

H

hashCode() - Method in class robocraft.common.MapLocation
 
hashCode() - Method in class robocraft.player.GameObject
 

I

IDLE - Static variable in class robocraft.common.ActionType
The ActionType of an idle robot that is free to engage in a new action.
INTERNAL_ERROR - Static variable in class robocraft.common.GameActionException
An internal RoboVM or game engine exception has been thrown.
INVALID_MINE_POWER - Static variable in class robocraft.common.GameActionException
 
INVALID_SQUARE - Static variable in class robocraft.common.GameActionException
 
ints - Variable in class robocraft.player.Message
An array of ints to broadcast.
isActive() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
isActive() - Method in class robocraft.player.Robot
Returns whether this robot is active or not.
isAdjacentTo(MapLocation) - Method in class robocraft.common.MapLocation
Determines whether a given maplocation is "adjacent" to this.
isAirTraversable() - Method in class robocraft.common.TerrainType
Determines whether this terrain permits air objects.
isAirborne() - Method in class robocraft.common.RobotType
returns whether this robot is airborne.
isDiagonal() - Method in class robocraft.common.Direction
Returns whether this direction represents the Direction from one square to an adjacent square that shares only a corner.
isGroundTraversable() - Method in class robocraft.common.TerrainType
Determines whether this terrain permits ground objects.
isMapShrinking() - Method in class robocraft.player.AbstractRobotPlayer
Return whether or not the map is in a state of overtime where it shrinks.
isRobot() - Method in class robocraft.common.ObjectType
Returns whether this ObjectType is a type of robot.

L

LAND - Static variable in class robocraft.common.TerrainType
Represents the terrain type of an Outdoor Land square, which permits all robots and objects.
layMine(double) - Method in class robocraft.player.AbstractRobotPlayer
Create a new mine in front of you, and spend some of your energon on it.
locations - Variable in class robocraft.player.Message
An array of MapLocations to broadcast.

M

MAX_MINE_POWER - Static variable in interface robocraft.common.GameConstants
Maximum amount of energon you can use to build a mine
MINE - Static variable in class robocraft.common.ObjectType
ObjectType instance referring to a mine object type.
MINE_DAMAGE_FACTOR - Static variable in interface robocraft.common.GameConstants
Multiplied by energon in a mine when computing damage
MINE_DELAY_ROUNDS - Static variable in interface robocraft.common.GameConstants
Rounds between mine being triggered and exploding
MINE_LAYING - Static variable in class robocraft.common.ActionType
The ActionType of a robot that is laying a mine.
MIN_MINE_POWER - Static variable in interface robocraft.common.GameConstants
Minimum amount of energon you can use to build a mine
MOVING - Static variable in class robocraft.common.ActionType
The ActionType of a moving robot.
MOVING_DAMAGE_REDUCTION - Static variable in interface robocraft.common.GameConstants
Reduction in damage dealt to moving robots.
MapLocation - class robocraft.common.MapLocation.
MapLocation is just a wrapper for a pair of integer coordinates that indentify a point on the RoboCraft map.
MapLocation(int, int) - Constructor for class robocraft.common.MapLocation
creates a new MapLocation with the given coordinates.
Message - class robocraft.player.Message.
A Message is an object that can be broadcast to other robots.
Message() - Constructor for class robocraft.player.Message
Constructs an instance with a null value in each field.
Mine - class robocraft.player.Mine.
Mine is a GameObject that represents an energon mine in the robocraft world.
maxEnergon() - Method in class robocraft.common.RobotType
returns the maximum energon level of this robot.
mineDelay() - Method in class robocraft.common.RobotType
 
moveBackward() - Method in class robocraft.player.AbstractRobotPlayer
Move one square backward.
moveDelayDiagonal() - Method in class robocraft.common.RobotType
returns the number of rounds this robot will take to move in a diagonal Direction.
moveDelayOrthogonal() - Method in class robocraft.common.RobotType
returns the number of rounds this robot will take to move in an orthogonal (non-diagonal) Direction.
moveForward() - Method in class robocraft.player.AbstractRobotPlayer
Move this robot forward one square in its current direction.

N

NEUTRAL - Static variable in class robocraft.common.Team
Neither team.
NONE - Static variable in class robocraft.common.Direction
Represents "no direction" for the purposes of methods dealing with Directions that need such a representation.
NORTH - Static variable in class robocraft.common.Direction
 
NORTH_EAST - Static variable in class robocraft.common.Direction
 
NORTH_WEST - Static variable in class robocraft.common.Direction
 
NOT_AIRBORNE - Static variable in class robocraft.common.GameActionException
 
NOT_A_ROBOT - Static variable in class robocraft.common.GameActionException
 
NOT_CARRYING_FLAG - Static variable in class robocraft.common.GameActionException
 
NOT_ENOUGH_ENERGON - Static variable in class robocraft.common.GameActionException
 

O

OBJECT_DOESNT_EXIST - Static variable in class robocraft.common.GameActionException
 
OBJECT_NOT_FLAG - Static variable in class robocraft.common.GameActionException
 
OBJECT_NOT_MINE - Static variable in class robocraft.common.GameActionException
 
OFF_MAP - Static variable in class robocraft.common.TerrainType
Represents the terrain type of squares which are outside the bounds of the map.
OMNI - Static variable in class robocraft.common.Direction
Represents "every direction" for the purposes of methods dealing with Directions that need such a representation.
OUT_OF_ATTACK_RANGE - Static variable in class robocraft.common.GameActionException
 
OUT_OF_SENSOR_RANGE - Static variable in class robocraft.common.GameActionException
 
ObjectType - class robocraft.common.ObjectType.
ObjectType represents the type of a non-Robot GameObject.
ObjectType(String, boolean) - Constructor for class robocraft.common.ObjectType
 
opponent() - Method in class robocraft.common.Team
return the oppononent of this team (Team.A opponent is Team.B and vice versa).
opposite() - Method in class robocraft.common.Direction
Returns the opposite of a directional Direction.

P

pickupFlag() - Method in class robocraft.player.AbstractRobotPlayer
Grab the flag in front of you.

R

ROBOT_TYPE_LIMIT - Static variable in interface robocraft.common.GameConstants
Max number of robots each team can have of a single RobotType at a given time
ROBOT_TYPE_LIMIT_EXCEEDED - Static variable in class robocraft.common.GameActionException
 
ROUNDS_PER_SHRINK - Static variable in interface robocraft.common.GameConstants
Number of rounds between shrink events when a match goes into overtime.
ROUND_ENERGON_BONUS - Static variable in interface robocraft.common.GameConstants
Amount of energon you get every round, unconditionally
Robot - class robocraft.player.Robot.
reference to Robot GameObject.
RobotType - class robocraft.common.RobotType.
RobotType represents the type of Robot objects that can exist in the game.
randomNeighbor() - Method in class robocraft.common.MapLocation
returns a random neigboring map location l where l.isAdjacentTo(this)
robocraft.common - package robocraft.common
 
robocraft.player - package robocraft.player
 
rotateLeft() - Method in class robocraft.common.Direction
Returns a Direction that is the result of rotating this Direction 45 degrees to the left.
rotateRight() - Method in class robocraft.common.Direction
Returns a Direction that is the result of rotating this Direction 45 degrees to the right.
run() - Method in class robocraft.player.AbstractRobotPlayer
This is the main entry point into the player.

S

SENTRY - Static variable in class robocraft.common.RobotType
 
SERVER_PORT - Static variable in interface robocraft.common.GameConstants
No longer used for anything.
SOUTH - Static variable in class robocraft.common.Direction
 
SOUTH_EAST - Static variable in class robocraft.common.Direction
 
SOUTH_WEST - Static variable in class robocraft.common.Direction
 
SPAWNING - Static variable in class robocraft.common.ActionType
The ActionType of a robot in the process of spawning a new robot.
SQUARE_NOT_EMPTY - Static variable in class robocraft.common.GameActionException
 
SQUARE_NOT_FREE - Static variable in class robocraft.common.GameActionException
 
senseEnemyFlag() - Method in class robocraft.player.AbstractRobotPlayer
Returns the location of the enemy team's flag.
senseMineAhead() - Method in class robocraft.player.AbstractRobotPlayer
Get the Mine in the square in front of you, if you are carrying a flag.
senseNearbyAirRobots() - Method in class robocraft.player.AbstractRobotPlayer
Get an array of all Robots IN THE AIR in your current sensor range, excepting the calling robot.
senseNearbyGroundRobots() - Method in class robocraft.player.AbstractRobotPlayer
Get an array of all Robots ON THE GROUND in your current sensor range, excepting the calling robot.
senseTeamFlag() - Method in class robocraft.player.AbstractRobotPlayer
Get the location of your team flag.
sensorAngle() - Method in class robocraft.common.RobotType
returns the angle of this robot's sensor range.
sensorCosHalfTheta() - Method in class robocraft.common.RobotType
returns the cosine of half the sensor angle.
sensorRadius() - Method in class robocraft.common.RobotType
returns the maximum distance from this robot's location to a MapLocation in its sensor range.
setDirection(Direction) - Method in class robocraft.player.AbstractRobotPlayer
Set your robot's direction.
spawn(RobotType) - Method in class robocraft.player.AbstractRobotPlayer
Create a new Robot in front of you.
spawnCost() - Method in class robocraft.common.RobotType
returns the amount of energon needed by another robot to spawn this robot.
spawnDelay() - Method in class robocraft.common.RobotType
returns the number of rounds for which this robot is active after spawning.
startEnergon() - Method in class robocraft.common.RobotType
returns the initial energon level of this robot.
strings - Variable in class robocraft.player.Message
An array of Strings to broadcast.
subtract(Direction) - Method in class robocraft.common.MapLocation
returns a new maplocation that is one square in the direction opposite of dir from this.

T

TANK - Static variable in class robocraft.common.RobotType
 
TEAM_TOTAL_LIMIT - Static variable in interface robocraft.common.GameConstants
Max number of robots each team can have total at a given time
TEAM_TOTAL_LIMIT_EXCEEDED - Static variable in class robocraft.common.GameActionException
 
Team - class robocraft.common.Team.
Every GameObject has a designated team which is one of Team A, Team B, or Neutral.
TerrainType - class robocraft.common.TerrainType.
TerrainType represents the type of terrain assigned to a given map square.
toString() - Method in class robocraft.common.ActionType
Returns a textual representation of the ActionType.
toString() - Method in class robocraft.common.Direction
Returns a textual representation of the Direction.
toString() - Method in class robocraft.common.MapLocation
returns a string representation that looks like [x,y]
toString() - Method in class robocraft.common.ObjectType
Returns a String such as "Sentry" or "Falcon".
toString() - Method in class robocraft.common.Team
Returns one of the three Strings "Team A", "Team B", or "Neutral".
toString() - Method in class robocraft.common.TerrainType
Returns the name of the terrain type.
toString() - Method in class robocraft.player.GameObject
String representation of this object.
transferEnergon(double) - Method in class robocraft.player.AbstractRobotPlayer
Transfer a specified amount of energon to the robot in front of you.

W

WAKING - Static variable in class robocraft.common.ActionType
The ActionType of a newly created robot that cannot perform other actions until it is "awake".
WATER - Static variable in class robocraft.common.TerrainType
Represents the terrain type of a Water square, which does not permit ground objects.
WEST - Static variable in class robocraft.common.Direction
 
wakeDelay() - Method in class robocraft.common.RobotType
returns the number of rounds for which this robot is active after being spawned.

X

x() - Method in class robocraft.common.MapLocation
 

Y

YIELD_ENERGON_BONUS - Static variable in interface robocraft.common.GameConstants
Amount of energon you get for calling yield()
y() - Method in class robocraft.common.MapLocation
 
yield() - Method in class robocraft.player.AbstractRobotPlayer
Ends the current round and gives your robot a slight energon bonus (defined in robocraft.common.GameConstants.YIELD_ENERGON_BONUS).

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