All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.MainMenu

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----pinball.MainMenu

public class MainMenu
extends Frame
This sets up the window that displays the image. It also has buttons to control the start and stop of the program.


Variable Index

 o analysis
The frame analyzing thread.
 o ball
Ball is out of play.
 o boarder
Excess size for the window.
 o bottom
bottom has the buttons.
 o buffer
The first of the list of information buffers.
 o coin
Insert a coin.
 o exit
Exit the system.
 o gameButtons
The buttons for controlling the game.
 o gameStats
The area on the window to display infomation about the game.
 o grabber
The frame capturing thread.
 o height
Height of the image.
 o launch
Launch the ball.
 o middle
middle is the statistics.
 o pause
Pause the system.
 o picture
The canvas for the image in the window.
 o post
The post strategy thread.
 o Qcam
The camera watching the game.
 o refindFlippers
Refind the flippers.
 o start
Begin the system.
 o startGame
Start the pinball game.
 o strategy
The frame strategy thread.
 o systemButtons
The buttons for controlling the system.
 o top
Top is the image.
 o verbose
Display the changes in the image.
 o width
Width of the image.

Constructor Index

 o MainMenu(Camera, StdPlayer, String)
Create the window and get the camera's settings

Method Index

 o begin()
Create the threads, add the button events and display the window.
 o createWindow(int, int)
Create the image window with canvas for image.

Variables

 o width
 private int width
Width of the image.

 o height
 private int height
Height of the image.

 o Qcam
 private Camera Qcam
The camera watching the game.

 o picture
 private DrawingCanvas picture
The canvas for the image in the window.

 o post
 private Post post
The post strategy thread.

 o grabber
 private FrameGrabber grabber
The frame capturing thread.

 o analysis
 private Analyze analysis
The frame analyzing thread.

 o strategy
 private Strategy strategy
The frame strategy thread.

 o exit
 Button exit
Exit the system.

 o start
 Button start
Begin the system.

 o verbose
 Button verbose
Display the changes in the image.

 o ball
 Button ball
Ball is out of play.

 o launch
 Button launch
Launch the ball.

 o coin
 Button coin
Insert a coin.

 o startGame
 Button startGame
Start the pinball game.

 o refindFlippers
 Button refindFlippers
Refind the flippers.

 o pause
 Button pause
Pause the system.

 o boarder
 private static final int boarder
Excess size for the window.

 o buffer
 private Buffer buffer
The first of the list of information buffers.

 o gameStats
 private TextArea gameStats
The area on the window to display infomation about the game.

 o top
 private Panel top
Top is the image.

 o middle
 private Panel middle
middle is the statistics.

 o bottom
 private Panel bottom
bottom has the buttons.

 o systemButtons
 private Panel systemButtons
The buttons for controlling the system.

 o gameButtons
 private Panel gameButtons
The buttons for controlling the game.

Constructors

 o MainMenu
 public MainMenu(Camera Qcam,
                 StdPlayer player,
                 String stratThread)
Create the window and get the camera's settings

Parameters:
Qcam - The camera.
player - The player of the game.
stratThread - Defines how the strategy is to player. Either local, client or server.

Methods

 o createWindow
 private void createWindow(int width,
                           int height)
Create the image window with canvas for image.

Parameters:
width - The width of the window.
height - The height of the window.
 o begin
 public void begin()
Create the threads, add the button events and display the window.


All Packages  Class Hierarchy  This Package  Previous  Next  Index