A B C D E F G H L M P R S V W X Y 

A

act(WorldAPI, Robot.Robot_Status, byte[][]) - Method in class DefenderBot
 
act(WorldAPI, Robot.Robot_Status, byte[][]) - Method in class DemoBot
 
act(WorldAPI, Robot.Robot_Status, byte[][]) - Method in class ManualBot
 
act(WorldAPI, Robot.Robot_Status, byte[][]) - Method in interface Robot
Each turn, this method is called to allow your robot to act.
addElement(int[], int) - Static method in class ArrayUtility
Add element to array
ArrayUtility - Class in <Unnamed>
This class provides methods that duplicate the functionality of ArrayList but without the space and lookup overhead of double indirection.
ArrayUtility() - Constructor for class ArrayUtility
 
attack - Variable in class Robot.Robot_Specs
Attack skill.

B

build(int) - Method in interface WorldAPI
 

C

capsule_power - Variable in class Robot.GridCell
power of capsule, if there is a capsule in the cell.
capsuleAttack(int, Robot.GridCell) - Method in interface WorldAPI
Capsule attack: attack with a capsule
capsules - Variable in class Robot.Robot_Status
Current number and power of capsules.
Each capsule is represented by an element of the array.
The value of the element of the array is equal to the power of the capsule.
In-progress capsules are not represented; use getInvestedBuildPower() for that.
charge - Variable in class Robot.Robot_Specs
Charge skill.
charge - Variable in class Robot.Robot_Status
current charge.
charge(int, Robot.GridCell) - Method in interface WorldAPI
Spend power to charge an adjacent ally robot.
clone() - Method in class Robot.GridCell
override clone and make it public (to implement Cloneable)
clone() - Method in class Robot.Robot_Specs
override clone and make it public (to implement Cloneable)
clone() - Method in class Robot.Robot_Status
Overrides clone: see Java language documentation for explanation
contents - Variable in class Robot.GridCell
contents of cell.
createRobot(WorldAPI, int, byte[]) - Method in class DefenderBot
 
createRobot(WorldAPI, int, byte[]) - Method in class DemoBot
 
createRobot(WorldAPI, int, byte[]) - Method in class ManualBot
 
createRobot(WorldAPI, int, byte[]) - Method in interface Robot
Entry point for your robot on its creation

D

defend(int) - Method in interface WorldAPI
Defend: increase defense
DefenderBot - Class in <Unnamed>
DefenderBot: Robot implementation which just sits there and never moves or attacks.
DefenderBot() - Constructor for class DefenderBot
 
defense - Variable in class Robot.Robot_Specs
Defense skill.
defense_boost - Variable in class Robot.Robot_Status
current defense boost
deleteElement(int[], int) - Static method in class ArrayUtility
Delete array element
DemoBot - Class in <Unnamed>
DemoBot: Demo Robot implementation for OffenseBot
DemoBot() - Constructor for class DemoBot
 
drop_capsule(Robot.GridCell, int) - Method in interface WorldAPI
drop_capsule: drop a capsule (for an ally to pick up, presumably)

E

executeSingleTimeStep() - Method in class RoboSim
Executes one timestep of the simulation.

F

findNearestAlly(Robot.GridCell, Robot.GridCell[][]) - Static method in class Robot.RobotUtility
Find nearest neighbor:
Finds the nearest ally to cell, approximately as the crow flies.
findShortestPath(Robot.GridCell, Robot.GridCell, Robot.GridCell[][]) - Static method in class Robot.RobotUtility
Shortest path calculator:
Finds the shortest path from one grid cell to another.

This uses Dijkstra's algorithm to attempt to find the shortest path from one grid cell to another.
fort_orientation - Variable in class Robot.GridCell
orientation of fort, if there is a fort in the cell.

G

getBuildStatus() - Method in interface WorldAPI
Tells us what we're in the middle of building.
getBuildTarget() - Method in interface WorldAPI
 
getInvestedBuildPower() - Method in interface WorldAPI
 
getOccupantPlayer(Robot.GridCell) - Method in class RoboSim
SimulatorGUI needs to see who owns the robots in the cells This is a hack to allow this by downcasting the passed GridCell to SimGridCell and extracting the data.
getVisibleNeighborhood() - Method in interface WorldAPI
Gets a copy of the portion of the world visible to the robot.
getWorld(int) - Method in interface WorldAPI
Gets a copy of the entire world.
getWorldGrid() - Method in class RoboSim
This is so SimulatorGUI can get a copy of world

H

health - Variable in class Robot.Robot_Status
current health.

L

linearSearch(int[], int) - Static method in class ArrayUtility
Linear search: Find first occurrence of value in array, return index

M

main(String[]) - Static method in class SimulatorGUI
 
ManualBot - Class in <Unnamed>
 
ManualBot() - Constructor for class ManualBot
 
meleeAttack(int, Robot.GridCell) - Method in interface WorldAPI
Melee attack: attack an adjacent grid cell
move(int, Robot.Direction) - Method in interface WorldAPI
move: move robot

P

pick_up_capsule(Robot.GridCell) - Method in interface WorldAPI
pick_up_capsule: pick up a capsule
player - Variable in exception RoboSim.RoboSimExecutionException
 
power - Variable in class Robot.Robot_Specs
Power skill.
power - Variable in class Robot.Robot_Status
remaining power for turn

R

rangedAttack(int, Robot.GridCell) - Method in interface WorldAPI
Ranged attack: attack nonadjacent grid cell within certain range
repair(int) - Method in interface WorldAPI
Spend power to repair yourself.
RoboSim - Class in <Unnamed>
 
RoboSim(String[], int, int, int, int, int) - Constructor for class RoboSim
Constructor for RoboSim:
RoboSim.RoboSimExecutionException - Exception in <Unnamed>
Exception class
RoboSim.RoboSimExecutionException(String, String) - Constructor for exception RoboSim.RoboSimExecutionException
 
RoboSim.RoboSimExecutionException(String, String, Robot.GridCell) - Constructor for exception RoboSim.RoboSimExecutionException
 
RoboSim.RoboSimExecutionException(String, String, Robot.GridCell, Robot.GridCell) - Constructor for exception RoboSim.RoboSimExecutionException
 
RoboSim.RoboSimExecutionException(String, String, int, int, int, int) - Constructor for exception RoboSim.RoboSimExecutionException
 
RoboSim.SimGridAllyDeterminant - Class in <Unnamed>
FSPPredicate derivative making use of SimGridCell-specific information
RoboSim.SimGridAllyDeterminant(Robot.GridCell) - Constructor for class RoboSim.SimGridAllyDeterminant
 
Robot - Interface in <Unnamed>
 
Robot.AttackNotice - Class in <Unnamed>
Class representing information about a particular attack or attempted attack you suffered the previous round.
Robot.AttackNotice() - Constructor for class Robot.AttackNotice
 
Robot.AttackResult - Enum in <Unnamed>
Represents result of attack: missed, hit, destroyed target
Robot.AttackType - Enum in <Unnamed>
Attack type: melee, ranged, or capsule
Robot.BuildStatus - Enum in <Unnamed>
Represents what a robot is currently building
Robot.Direction - Enum in <Unnamed>
Represents orientation in simulator's world.
Robot.GridCell - Class in <Unnamed>
Represents cell in grid of simulator's world.
Robot.GridCell() - Constructor for class Robot.GridCell
 
Robot.GridObject - Enum in <Unnamed>
Represents object located in particular GridCell.
Robot.Robot_Specs - Class in <Unnamed>
Represents skill point allocation of Robot.
Robot.Robot_Specs() - Constructor for class Robot.Robot_Specs
 
Robot.Robot_Status - Class in <Unnamed>
Represents current status of Robot, passed to Robot.act() method to let robot know its current health, charge, and capsules.
Robot.Robot_Status() - Constructor for class Robot.Robot_Status
Constructor because I'd rather not capsules ever be null
Robot.RobotUtility - Class in <Unnamed>
RobotUtility class
Provides utilities for students to use in Robot implementations.
Robot.RobotUtility() - Constructor for class Robot.RobotUtility
 
Robot.RobotUtility.FSPPredicate - Class in <Unnamed>
FSPPredicate class: used internally in nearest path methods
Robot.RobotUtility.FSPPredicate() - Constructor for class Robot.RobotUtility.FSPPredicate
 

S

scanEnemy(Robot.Robot_Specs, Robot.Robot_Status, Robot.GridCell) - Method in interface WorldAPI
Scans an enemy (or ally), retrieving information about the robot.
scanner - Static variable in class ManualBot
 
sendMessage(byte[], int) - Method in interface WorldAPI
Sends a message to an ally or allies.
setBuildTarget(Robot.BuildStatus, Robot.GridCell) - Method in interface WorldAPI
Tells the simulator the robot is beginning to build something in an adjacent cell (or, for capsules, inside itself).
In order to mark a capsule or robot as "done", call this method with both parameters null.
setBuildTarget(Robot.BuildStatus, Robot.GridCell, byte[]) - Method in interface WorldAPI
Tells the simulator the robot is beginning to build something in an adjacent cell (or, for capsules, inside itself).
In order to mark a capsule or robot as "done", call this method with both parameters null.
SimulatorGUI - Class in <Unnamed>
 
SimulatorGUI(int, int, int, int, int) - Constructor for class SimulatorGUI
 

V

validCell(Robot.GridCell) - Method in class RoboSim.SimGridAllyDeterminant
 
validCell(Robot.GridCell) - Method in class Robot.RobotUtility.FSPPredicate
 
valueOf(String) - Static method in enum Robot.AttackResult
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum Robot.AttackType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum Robot.BuildStatus
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum Robot.Direction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum Robot.GridObject
Returns the enum constant of this type with the specified name.
values() - Static method in enum Robot.AttackResult
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum Robot.AttackType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum Robot.BuildStatus
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum Robot.Direction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum Robot.GridObject
Returns an array containing the constants of this enum type, in the order they are declared.

W

WorldAPI - Interface in <Unnamed>
WorldAPI Interface:
Provides callbacks into Simulator so your Robot can take actions in the virtual world.
The underlying class type is an inner class defined inside the simulator which is opaque to your robot.

X

x_coord - Variable in class Robot.GridCell
X-coordinate of cell.

Y

y_coord - Variable in class Robot.GridCell
Y-coordinate of cell.
A B C D E F G H L M P R S V W X Y