All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.multipleblip.MultipleBlipStrategy

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----pinball.player.Strategy
                   |
                   +----pinball.player.multipleblip.MultipleBlipStrategy

public class MultipleBlipStrategy
extends Strategy
Player which blips if any blip is near the flippers.


Constructor Index

 o MultipleBlipStrategy()
For extended classes.
 o MultipleBlipStrategy(Buffer, TextArea, Camera)
The strategy thread for the player.

Method Index

 o decision()
Should you flip or not.
 o draw(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 MultipleBlipStrategy
 public MultipleBlipStrategy(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.
 o MultipleBlipStrategy
 public MultipleBlipStrategy()
For extended classes.

Methods

 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)
Allows the strategy to draw to the screen any lines or other graphics for the user to see how the strategy operates.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index