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.
-
PenStrategy(Buffer, TextArea, Camera)
-
The strategy thread for the player.
-
decision()
- Should you flip or not.
-
draw(Graphics, int, int)
- Draw nothing.
-
option()
- Setup the options for the strategy.
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.
option
public void option()
- Setup the options for the strategy.
- Overrides:
- option in class Strategy
decision
public void decision()
- Should you flip or not. It never flips.
- Overrides:
- decision in class Strategy
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