All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.nopinball.NoPinballStrategy

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----pinball.player.Strategy
                   |
                   +----pinball.player.nohit.NoHitStrategy
                           |
                           +----pinball.player.nopinball.NoPinballStrategy

public class NoPinballStrategy
extends NoHitStrategy
No pinball machine, so nothing to do.


Constructor Index

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

Method Index

 o draw(Graphics, int, int)
Draw's nothing on the screen.
 o flippersCheck()
Have a decision to move the mouse pointer.

Constructors

 o NoPinballStrategy
 public NoPinballStrategy(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 flippersCheck
 public void flippersCheck()
Have a decision to move the mouse pointer.

Overrides:
flippersCheck in class Strategy
 o draw
 public void draw(Graphics g,
                  int canvasWidth,
                  int canvasHeight)
Draw's nothing on the screen.

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