RoboSim.RoboSimExecutionException Class Reference
Inheritance diagram for RoboSim.RoboSimExecutionException:
Collaboration diagram for RoboSim.RoboSimExecutionException:

Public Member Functions

 RoboSimExecutionException (String message, String player)
 
 RoboSimExecutionException (String message, String player, Robot.GridCell cell)
 
 RoboSimExecutionException (String message, String player, Robot.GridCell cell, Robot.GridCell cell2)
 
 RoboSimExecutionException (String message, String player_, int x1, int y1, int x2, int y2)
 

Public Attributes

String player
 

Detailed Description

Exception class

Definition at line 11 of file RoboSim.java.

Constructor & Destructor Documentation

RoboSim.RoboSimExecutionException.RoboSimExecutionException ( String  message,
String  player 
)

Definition at line 15 of file RoboSim.java.

References RoboSim.RoboSimExecutionException.player.

16  {
17  this(message,player,-1,-1,-1,-1);
18  }
RoboSim.RoboSimExecutionException.RoboSimExecutionException ( String  message,
String  player,
Robot.GridCell  cell 
)

Definition at line 20 of file RoboSim.java.

References RoboSim.RoboSimExecutionException.player.

21  {
22  this(message,player,cell.x_coord,cell.y_coord,-1,-1);
23  }
RoboSim.RoboSimExecutionException.RoboSimExecutionException ( String  message,
String  player,
Robot.GridCell  cell,
Robot.GridCell  cell2 
)

Definition at line 25 of file RoboSim.java.

References RoboSim.RoboSimExecutionException.player.

26  {
27  this(message,player,cell.x_coord,cell.y_coord,cell2.x_coord,cell2.y_coord);
28  }
RoboSim.RoboSimExecutionException.RoboSimExecutionException ( String  message,
String  player_,
int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 30 of file RoboSim.java.

References RoboSim.RoboSimExecutionException.player.

31  {
32  super("Player "+player_+" "+message+(x1!=-1 ? " with robot at coordinates ["+x1+"]["+y1+"]" : "")+(x2!=-1 ? ", coordinates of invalid cell are ["+x2+"]["+y2+"]" : ""));
33  player = player_;
34  }

Member Data Documentation

String RoboSim.RoboSimExecutionException.player

The documentation for this class was generated from the following file: