public class RoboSim
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RoboSim.RoboSimExecutionException
Exception class
|
static class |
RoboSim.SimGridAllyDeterminant
FSPPredicate derivative making use of SimGridCell-specific information
|
| Constructor and Description |
|---|
RoboSim(java.lang.String[] combatants,
int initial_robots_per_combatant,
int skill_points,
int length,
int width,
int obstacles)
Constructor for RoboSim:
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
executeSingleTimeStep()
Executes one timestep of the simulation.
|
java.lang.String |
getOccupantPlayer(Robot.GridCell to_convert)
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.
|
Robot.GridCell[][] |
getWorldGrid()
This is so SimulatorGUI can get a copy of world
|
public RoboSim(java.lang.String[] combatants,
int initial_robots_per_combatant,
int skill_points,
int length,
int width,
int obstacles)
throws RoboSim.RoboSimExecutionException
combatants - array of String objects containing the names of
the Robot classes for each combatantinitial_robots_per_combatant - how many robots each team starts
out withskill_points - skill points per combatantlength - length of arenawidth - width of arenaobstacles - number of obstacles on battlefieldRoboSim.RoboSimExecutionExceptionpublic Robot.GridCell[][] getWorldGrid()
public java.lang.String getOccupantPlayer(Robot.GridCell to_convert)
public java.lang.String executeSingleTimeStep()
throws RoboSim.RoboSimExecutionException
RoboSim.RoboSimExecutionException