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.


Constructor Index

 o MovitRobotStub(Buffer, TextArea, Strategy, Camera)
The stub for the strategy.

Method Index

 o backward()
Move backward.
 o clockwise()
Move clockwise.
 o counterClockwise()
Move counterclockwise.
 o filter(boolean)
Filter the image.
 o findFlippers(int)
Search for the flipper the number of times given.
 o forward()
Move forward.
 o halt()
Halt the robot.
 o robotStatus()
Get the robot's status.
 o statistics()
No statistics done.
 o strategyDraw(Graphics, int, int)
Don't draw anything.

Constructors

 o 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.

Methods

 o forward
 public void forward()
Move forward.

 o backward
 public void backward()
Move backward.

 o counterClockwise
 public void counterClockwise()
Move counterclockwise.

 o clockwise
 public void clockwise()
Move clockwise.

 o halt
 public void halt()
Halt the robot.

 o 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
 o filter
 public void filter(boolean findFlippers)
Filter the image.

Parameters:
findFlippers - Is the system finding the flippers.
Overrides:
filter in class Stub
 o statistics
 public void statistics()
No statistics done.

Overrides:
statistics in class Stub
 o strategyDraw
 public void strategyDraw(Graphics g,
                          int wSize,
                          int hSize)
Don't draw anything.

Overrides:
strategyDraw in class Stub
 o robotStatus
 public double robotStatus()
Get the robot's status.

Returns:
status.

All Packages  Class Hierarchy  This Package  Previous  Next  Index