A B C D E F G H I L M N O P Q 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.
attackGround(MapLocation) - Method in class robocraft.player.AbstractRobotPlayer
Initiate an attack on the GROUND in a specified location.

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
 
BROADCAST_COST_PER_BYTE - Static variable in interface robocraft.common.GameConstants
 
BROADCAST_FIXED_COST - Static variable in interface robocraft.common.GameConstants
 
broadcastMessage(Message) - Method in class robocraft.player.AbstractRobotPlayer
Broadcasts a message to all Robots currently in your broadcast range.

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_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() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
canAttackAir() - Method in class robocraft.player.Robot
Returns whether this robot will inflict damage on an AIRBORNE 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
canAttackGround() - Method in class robocraft.player.Robot
Returns whether this robot will inflict damage on a GROUND robot at a MapLocation that this robot attacks.
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.
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

Direction - class robocraft.common.Direction.
Direction represents one of the eight directions from a square to an adjacent square.
depositEnergon(int) - Method in class robocraft.player.AbstractRobotPlayer
Create a new energon cube in front of you, and deposit some of your energon into it.
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
 
ENERGON_CUBE - Static variable in class robocraft.common.ObjectType
The ObjectType of an energon cube.
EnergonCube - class robocraft.player.EnergonCube.
Reference to an EnergonCube object.
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

FLYERS_CANT_DEPOSIT_ENERGON - Static variable in class robocraft.common.GameActionException
 
FLYER_ATTACK_POWER - Static variable in interface robocraft.common.GameConstants
 
FLYER_BROADCAST_RADIUS - Static variable in interface robocraft.common.GameConstants
 
FLYER_BYTECODES_PER_ROUND - Static variable in interface robocraft.common.GameConstants
 
FLYER_MAX_ENERGON - Static variable in interface robocraft.common.GameConstants
 
FLYER_ROBOT - Static variable in class robocraft.common.ObjectType
The ObjectType of a Flyer robot.
FLYER_ROUNDS_PER_ATTACK - Static variable in interface robocraft.common.GameConstants
 
FLYER_ROUNDS_PER_MOVE - Static variable in interface robocraft.common.GameConstants
 
FLYER_ROUNDS_PER_SPAWN - Static variable in interface robocraft.common.GameConstants
 
FLYER_ROUNDS_PER_WAKE - Static variable in interface robocraft.common.GameConstants
 
FLYER_SENSOR_RADIUS - Static variable in interface robocraft.common.GameConstants
 
FLYER_START_ENERGON - Static variable in interface robocraft.common.GameConstants
 

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.
getAirObjectAtLocation(MapLocation) - Method in class robocraft.player.AbstractRobotPlayer
Sense any GameObjects IN THE AIR at this location.
getAmount() - Method in class robocraft.player.EnergonCube
 
getAttackPower() - Static method in class robocraft.player.AbstractRobotPlayer
wrapper for corresponding Robot method; does not throw an exception
getAttackPower() - Method in class robocraft.player.Robot
Returns the amount of energon this robot will drain from an enemy during an attack.
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.
getBytecodesPerRound() - Method in class robocraft.player.Robot
Returns the number of bytecodes this robot's player can process per 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.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.
getGroundObjectAtLocation(MapLocation) - Method in class robocraft.player.AbstractRobotPlayer
Sense any GameObjects 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.
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.

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.
INDOOR_LAND - Static variable in class robocraft.common.TerrainType
Represents the terrain type of an Indoor Land square, which permits all robots and objects.
INTERNAL_ERROR - Static variable in class robocraft.common.GameActionException
An internal RoboVM or game engine exception has been thrown.
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.
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.
isRobot() - Method in class robocraft.common.ObjectType
Returns whether this ObjectType is a type of robot and not an energon cube.

L

locations - Variable in class robocraft.player.Message
An array of MapLocations to broadcast.

M

MOVING - Static variable in class robocraft.common.ActionType
The ActionType of a moving robot.
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.
moveBackward() - Method in class robocraft.player.AbstractRobotPlayer
Move one square backward.
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
The Team assigned to energon cubes.
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_A_ROBOT - 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_ENERGON - 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.
ONLY_QUEENS_CAN_DO_THAT - Static variable in class robocraft.common.GameActionException
 
OUTDOOR_LAND - Static variable in class robocraft.common.TerrainType
Represents the terrain type of an Outdoor Land square, which permits all robots and objects.
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 GameObject.
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

pickupEnergon() - Method in class robocraft.player.AbstractRobotPlayer
Grab some energon from the EnergonCube in front of you.

Q

QUEENS_CANT_REPLICATE - Static variable in class robocraft.common.GameActionException
 
QUEEN_ATTACK_POWER - Static variable in interface robocraft.common.GameConstants
 
QUEEN_BROADCAST_RADIUS - Static variable in interface robocraft.common.GameConstants
 
QUEEN_BYTECODES_PER_ROUND - Static variable in interface robocraft.common.GameConstants
 
QUEEN_MAX_ENERGON - Static variable in interface robocraft.common.GameConstants
 
QUEEN_ROBOT - Static variable in class robocraft.common.ObjectType
The ObjectType of a Queen robot.
QUEEN_ROUNDS_PER_ATTACK - Static variable in interface robocraft.common.GameConstants
 
QUEEN_ROUNDS_PER_MOVE - Static variable in interface robocraft.common.GameConstants
 
QUEEN_ROUNDS_PER_SPAWN - Static variable in interface robocraft.common.GameConstants
 
QUEEN_ROUNDS_PER_WAKE - Static variable in interface robocraft.common.GameConstants
 
QUEEN_SENSOR_RADIUS - Static variable in interface robocraft.common.GameConstants
 
QUEEN_START_ENERGON - Static variable in interface robocraft.common.GameConstants
 

R

Robot - class robocraft.player.Robot.
reference to Robot GameObject.
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

SHOOTER_ATTACK_DISTANCE - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_ATTACK_POWER - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_ATTACK_RANGE - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_BROADCAST_RADIUS - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_BYTECODES_PER_ROUND - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_MAX_ENERGON - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_ROBOT - Static variable in class robocraft.common.ObjectType
The ObjectType of a Shooter robot.
SHOOTER_ROUNDS_PER_ATTACK - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_ROUNDS_PER_MOVE - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_ROUNDS_PER_SPAWN - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_ROUNDS_PER_WAKE - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_SENSOR_DISTANCE - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_SENSOR_RANGE - Static variable in interface robocraft.common.GameConstants
 
SHOOTER_START_ENERGON - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_ATTACK_POWER - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_BROADCAST_RADIUS - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_BYTECODES_PER_ROUND - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_MAX_ENERGON - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_ROBOT - Static variable in class robocraft.common.ObjectType
The ObjectType of a Soldier robot.
SOLDIER_ROUNDS_PER_ATTACK - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_ROUNDS_PER_MOVE - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_ROUNDS_PER_SPAWN - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_ROUNDS_PER_WAKE - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_SENSOR_DISTANCE - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_SENSOR_RANGE - Static variable in interface robocraft.common.GameConstants
 
SOLDIER_START_ENERGON - Static variable in interface robocraft.common.GameConstants
 
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.
SPAWN_LIMIT - Static variable in interface robocraft.common.GameConstants
 
SQUARE_NOT_EMPTY - Static variable in class robocraft.common.GameActionException
 
senseEnemyQueen() - Method in class robocraft.player.AbstractRobotPlayer
Special ability for queens to get the location of the enemy queen.
senseNearbyObjects() - Method in class robocraft.player.AbstractRobotPlayer
Get an array of all GameObjects in your current sensor range, excepting the calling robot.
setDirection(Direction) - Method in class robocraft.player.AbstractRobotPlayer
Set your robot's direction.
spawn(ObjectType) - Method in class robocraft.player.AbstractRobotPlayer
Create a new Robot in front of you.
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

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 "Soldier" or "EnergonCube".
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.

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".
WALL - Static variable in class robocraft.common.TerrainType
Represents the terrain type of a Wall square, which does not permit ground robots or energon cubes.
WATER - Static variable in class robocraft.common.TerrainType
Represents the terrain type of a Water square, which does not permit ground robots or energon cubes.
WEST - Static variable in class robocraft.common.Direction
 

X

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

Y

YIELD_ENERGON_BONUS - Static variable in interface robocraft.common.GameConstants
 
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 Q R S T W X Y