All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.pen.PenStrategy

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----pinball.player.Strategy
                   |
                   +----pinball.player.pen.PenStrategy

public class PenStrategy
extends Strategy
The computer analyzes pen drawing and find the angle.


Constructor Index

 o PenStrategy(Buffer, TextArea, Camera)
The strategy thread for the player.

Method Index

 o decision()
Should you flip or not.
 o draw(Graphics, int, int)
Draw nothing.
 o option()
Setup the options for the strategy.

Constructors

 o PenStrategy
 public PenStrategy(Buffer buffer,
                    TextArea gameStats,
                    Camera camera)
The strategy thread for the player.

Parameters:
buffer - the first buffer in the series of buffers for the system.
gameStats - the area to write the game stats to.
camera - the camera for the system.

Methods

 o option
 public void option()
Setup the options for the strategy.

Overrides:
option in class Strategy
 o decision
 public void decision()
Should you flip or not. It never flips.

Overrides:
decision in class Strategy
 o draw
 public void draw(Graphics g,
                  int canvasWidth,
                  int canvasHeight)
Draw nothing.

Parameters:
g - the graphics to draw to.
cavasWidth - the width of the canvas.
canvcasHeight - the hight of the canvas.
Overrides:
draw in class Strategy

All Packages  Class Hierarchy  This Package  Previous  Next  Index