All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.nopinball.NoPinballStub

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----pinball.player.Stub
                   |
                   +----pinball.player.nopinball.NoPinballStub

public class NoPinballStub
extends Stub
The hand is the object furthest from the left part of the image. Since the camera sees the person's right hand on the left side of the frame.


Constructor Index

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

Method Index

 o filter(boolean)
Filter out the persons right hand.
 o findFlippers(int)
Search for the flipper the number of times given.
 o run()
Filter out the object.
 o statistics()
Check the list of statistic events and see what to log.
 o 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.

Constructors

 o NoPinballStub
 public NoPinballStub(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 run
 public void run()
Filter out the object.

Overrides:
run in class Stub
 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 out the persons right hand.

Parameters:
findFlippers - Is the system finding the flippers.
Overrides:
filter in class Stub
 o statistics
 public void statistics()
Check the list of statistic events and see what to log.

Overrides:
statistics in class Stub
 o 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. This also draws the flipper's locations.

Parameters:
g - the graphics area to draw to.
canvasWidth - the width of the canvas.
canvasHeight - the height of the canvas.
Overrides:
strategyDraw in class Stub

All Packages  Class Hierarchy  This Package  Previous  Next  Index