A B C E G H I M O P R S U V X Y

A

addObstacles(int) - Method in class RoboPit
add several obstacles ensuring minimum separation between long sides some will be horizontal, some will be vertical
Arena - Class in <Unnamed>
Arena to include a RoboPit and all its accoutrements
Arena() - Constructor for class Arena
 
Arena1 - Class in <Unnamed>
Arena1 to include a RoboPit and all its accoutrements and enable StupidRobots to launch
Arena1() - Constructor for class Arena1
 
Arena2 - Class in <Unnamed>
Arena2 to include a RoboPit and all its accoutrements and enable RandomRobots to launch
Arena2() - Constructor for class Arena2
 
Arena3 - Class in <Unnamed>
Arena3 to include a RoboPit and all its accoutrements and enable ClingerRobots to launch
Arena3() - Constructor for class Arena3
 

B

begin() - Method in class Arena
 
begin() - Method in class Arena1
 
begin() - Method in class Arena2
 
begin() - Method in class Arena3
 
begin() - Method in class Ex1
 
begin() - Method in class Ex2
 

C

canvas - Variable in class HObstacle
 
canvas - Variable in class RoboPit
 
canvas - Variable in class VObstacle
 
ClingerRobot - Class in <Unnamed>
ClingerRobot moves around its rectangle.
ClingerRobot(Image, DrawingCanvas, Location, Vector<Obstacle>) - Constructor for class ClingerRobot
Constructor for objects of class ClingerRobot like all Robots, just calls parent constructor and starts
clinging - Variable in class ClingerRobot
 
clungTo - Variable in class ClingerRobot
 

E

Ex1 - Class in <Unnamed>
 
Ex1() - Constructor for class Ex1
 
Ex2 - Class in <Unnamed>
 
Ex2() - Constructor for class Ex2
 

G

getObstacles() - Method in class RoboPit
make obstacles available for the robots

H

handleObstacles(Location) - Method in class ClingerRobot
handleObstacles what to do if we hit one of the obstacles
handleObstacles(Location) - Method in class RandomRobot
handleObstacles what to do if we hit one of the obstacles
handleObstacles(Location) - Method in class Robot
abstract handleObstacles what to do if we hit one of the obstacles
handleObstacles(Location) - Method in class StupidRobot
handleObstacles what to do if we hit one of the obstacles StupidRobot does nothing!
HObstacle - Class in <Unnamed>
HObstacle for vertical obstacles to be placed in the RoboPit
HObstacle(double, double, double, double, DrawingCanvas, double) - Constructor for class HObstacle
Constructor for objects of class HObstacle

I

isVertical() - Method in class HObstacle
isVertical() of course not , so
isVertical() - Method in class Obstacle
 
isVertical() - Method in class VObstacle
isVertical() sure I am , so

M

mycanvas - Variable in class Robot
 
myImage - Variable in class Robot
 
myVimage - Variable in class Robot
 

O

Obstacle - Class in <Unnamed>
abstract class Obstacle covers both vertical obstacles VObstacle and horizontal HObstacle both of which extends Obstacle
Obstacle(double, double, double, double, DrawingCanvas) - Constructor for class Obstacle
 
obstacles - Variable in class Robot
 
onMouseClick(Location) - Method in class Arena
onMouseClick
onMouseClick(Location) - Method in class Arena1
onMouseClick
onMouseClick(Location) - Method in class Arena2
onMouseClick
onMouseClick(Location) - Method in class Arena3
onMouseClick

P

PAUSETIME - Static variable in class Robot
 
previouslyClung - Variable in class ClingerRobot
 

R

RandomRobot - Class in <Unnamed>
RandomRobot moves around, bouncing around the rectangle.
RandomRobot(Image, DrawingCanvas, Location, Vector<Obstacle>) - Constructor for class RandomRobot
Constructor for objects of class RandomRobot like all Robots, just calls parent constructor and starts
RoboPit - Class in <Unnamed>
RoboPit A place for robots to wander around in It will be filled up with obstacles with the addObstacles method default size 500*500 with top left corner at (10,10) obstacles will be (SIZE/6)*(SIZE/50) with separation of SIZE/12
RoboPit(DrawingCanvas) - Constructor for class RoboPit
Constructor for objects of class RoboPit
Robot - Class in <Unnamed>
Robot moves around a bunch of obstacles.
Robot(Image, DrawingCanvas, Location, Vector<Obstacle>) - Constructor for class Robot
Constructor for objects of class Robot note -- do not follow the textbook advice to end the constructor with start() It makes it difficult to extend the class Since this is abstract, that would be a disaster!
run() - Method in class Robot
Method run -- invoked by start()

S

sep - Variable in class HObstacle
 
sep - Variable in class VObstacle
 
setSpeed() - Method in class Robot
setSpeed used to set initial speed components xSpeed and ySpeed must make assignment to xSpeed and ySpeed
SIZE - Static variable in class Robot
 
slide(Obstacle) - Method in class ClingerRobot
 
slimmer() - Method in class HObstacle
slimmer()
slimmer() - Method in class Obstacle
slimmer -- to remove the excess thickness used to ensure separation
slimmer() - Method in class VObstacle
 
step() - Method in class Robot
 
StupidRobot - Class in <Unnamed>
StupidRobot moves in a line passing through all obstacles
StupidRobot(Image, DrawingCanvas, Location, Vector<Obstacle>) - Constructor for class StupidRobot
Constructor for objects of class StupidRobot like all Robots, just calls parent constructor and starts

U

unslide(Obstacle) - Method in class ClingerRobot
 

V

VObstacle - Class in <Unnamed>
VObstacle for vertical obstacles to be placed in the RoboPit
VObstacle(double, double, double, double, DrawingCanvas, double) - Constructor for class VObstacle
Constructor for objects of class VObstacle

X

xSpeed - Variable in class Robot
 

Y

ySpeed - Variable in class Robot
 

A B C E G H I M O P R S U V X Y