All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.movitrobot.MovitRobotStub
java.lang.Object
|
+----java.lang.Thread
|
+----pinball.player.Stub
|
+----pinball.player.movitrobot.MovitRobotStub
- public class MovitRobotStub
- extends Stub
Control the robot.
-
MovitRobotStub(Buffer, TextArea, Strategy, Camera)
- The stub for the strategy.
-
backward()
- Move backward.
-
clockwise()
- Move clockwise.
-
counterClockwise()
- Move counterclockwise.
-
filter(boolean)
- Filter the image.
-
findFlippers(int)
- Search for the flipper the number of times given.
-
forward()
- Move forward.
-
halt()
- Halt the robot.
-
robotStatus()
- Get the robot's status.
-
statistics()
- No statistics done.
-
strategyDraw(Graphics, int, int)
- Don't draw anything.
MovitRobotStub
public MovitRobotStub(Buffer buffer,
TextArea gameStats,
Strategy strategy,
Camera camera)
- The stub for the strategy.
- Parameters:
- buffer - The first buffer for the information buffers.
- gameStats - the area on the screen to write stats info.
- strategy - the strategy thread.
- camera - the camera for the system.
forward
public void forward()
- Move forward.
backward
public void backward()
- Move backward.
counterClockwise
public void counterClockwise()
- Move counterclockwise.
clockwise
public void clockwise()
- Move clockwise.
halt
public void halt()
- Halt the robot.
findFlippers
public void findFlippers(int quantity)
- Search for the flipper the number of times given.
- Parameters:
- quantity - number of times to look for the flippers.
- Overrides:
- findFlippers in class Stub
filter
public void filter(boolean findFlippers)
- Filter the image.
- Parameters:
- findFlippers - Is the system finding the flippers.
- Overrides:
- filter in class Stub
statistics
public void statistics()
- No statistics done.
- Overrides:
- statistics in class Stub
strategyDraw
public void strategyDraw(Graphics g,
int wSize,
int hSize)
- Don't draw anything.
- Overrides:
- strategyDraw in class Stub
robotStatus
public double robotStatus()
- Get the robot's status.
- Returns:
- status.
All Packages Class Hierarchy This Package Previous Next Index