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.
-
MultipleBlipStrategy()
- For extended classes.
-
MultipleBlipStrategy(Buffer, TextArea, Camera)
-
The strategy thread for the player.
-
decision()
- Should you flip or not.
-
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.
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.
MultipleBlipStrategy
public MultipleBlipStrategy()
- For extended classes.
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)
- 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