All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.Post

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----pinball.player.Post

public class Post
extends Thread
This is where the picture is displayed to. It does the drawing of the image, ball location, flippers, flipper zone, in play and out of play area.


Variable Index

 o buffer
The current information buffer.
 o buffinfo
The information in the buffer.
 o canvas
Area to draw to.
 o framerate
Frame from for image display.
 o stub
Stub from the strategy.

Constructor Index

 o Post()
Used in the extended classed.
 o Post(Buffer)
Initalize the DrawingBoard.

Method Index

 o canvas(int, int)
Create the canvas drawn to.
 o getCanvas()
Get the canvas drawn to.
 o run()
Keep looking at the images and draw them at the frame rate from GameOptions.
 o setupStub()
Setup the stub in the drawing canvas.
 o toString()
Get the name of the object.

Variables

 o buffer
 protected Buffer buffer
The current information buffer.

 o buffinfo
 protected BufferInfo buffinfo
The information in the buffer.

 o framerate
 protected int framerate
Frame from for image display.

 o canvas
 protected DrawingCanvas canvas
Area to draw to.

 o stub
 protected Stub stub
Stub from the strategy. Used for drawing lines on the screen for analysis.

Constructors

 o Post
 public Post(Buffer buffer)
Initalize the DrawingBoard.

Parameters:
buffer - the first in the series of infomation buffers.
 o Post
 public Post()
Used in the extended classed.

Methods

 o toString
 public String toString()
Get the name of the object.

Parameters:
name - of the object.
Overrides:
toString in class Thread
 o canvas
 public DrawingCanvas canvas(int x,
                             int y)
Create the canvas drawn to.

Parameters:
x - Width of canvas.
y - Height of canvas.
Returns:
the canvas to drawn on.
 o getCanvas
 public DrawingCanvas getCanvas()
Get the canvas drawn to.

Returns:
the canvas drawn to.
 o run
 public void run()
Keep looking at the images and draw them at the frame rate from GameOptions.

Overrides:
run in class Thread
 o setupStub
 public void setupStub()
Setup the stub in the drawing canvas.


All Packages  Class Hierarchy  This Package  Previous  Next  Index