All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.pen.PenStub
java.lang.Object
|
+----java.lang.Thread
|
+----pinball.player.Stub
|
+----pinball.player.pen.PenStub
- public class PenStub
- extends Stub
Uses lines to control the system.
-
PenStub(Buffer, TextArea, Strategy, Camera)
- The stub for the strategy.
-
filter(boolean)
- Filter out the persons right hand.
-
findFlippers(int)
- Search for the flipper the number of times given.
-
reverseImage(byte[], int, int)
- Reverse the image from the camera.
-
statistics()
- Check the list of statistic events and see what to log.
-
strategyDraw(Graphics, int, int)
- Allows the strategy to draw to the screen any lines or other graphics
for the user to see how the strategy operates.
PenStub
public PenStub(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.
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
reverseImage
public void reverseImage(byte pixels[],
int w,
int h)
- Reverse the image from the camera.
- Parameters:
- pixels - the pixels from the camera.
- w - the width of the image.
- h - the hight of the image.
filter
public void filter(boolean findFlippers)
- Filter out the persons right hand.
- Parameters:
- findFlippers - Is the system finding the flippers.
- Overrides:
- filter in class Stub
statistics
public void statistics()
- Check the list of statistic events and see what to log.
- Overrides:
- statistics in class Stub
strategyDraw
public void strategyDraw(Graphics g,
int wSize,
int hSize)
- Allows the strategy to draw to the screen any lines or other graphics
for the user to see how the strategy operates.
- Overrides:
- strategyDraw in class Stub
All Packages Class Hierarchy This Package Previous Next Index