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.
-
analysis
- The frame analyzing thread.
-
ball
- Ball is out of play.
-
boarder
- Excess size for the window.
-
bottom
- bottom has the buttons.
-
buffer
- The first of the list of information buffers.
-
coin
- Insert a coin.
-
exit
- Exit the system.
-
gameButtons
- The buttons for controlling the game.
-
gameStats
- The area on the window to display infomation about the game.
-
grabber
- The frame capturing thread.
-
height
- Height of the image.
-
launch
- Launch the ball.
-
middle
- middle is the statistics.
-
pause
- Pause the system.
-
picture
- The canvas for the image in the window.
-
post
- The post strategy thread.
-
Qcam
- The camera watching the game.
-
refindFlippers
- Refind the flippers.
-
start
- Begin the system.
-
startGame
- Start the pinball game.
-
strategy
- The frame strategy thread.
-
systemButtons
- The buttons for controlling the system.
-
top
- Top is the image.
-
verbose
- Display the changes in the image.
-
width
- Width of the image.
-
MainMenu()
- For extended classes.
-
MainMenu(Camera, StdPlayer, String)
- Create the window and get the camera's settings
-
begin()
- Create the threads, add the button events and display the window.
width
protected int width
- Width of the image.
height
protected int height
- Height of the image.
Qcam
protected Camera Qcam
- The camera watching the game.
picture
protected DrawingCanvas picture
- The canvas for the image in the window.
post
protected Post post
- The post strategy thread.
grabber
protected FrameGrabber grabber
- The frame capturing thread.
analysis
protected Analyze analysis
- The frame analyzing thread.
strategy
protected Strategy strategy
- The frame strategy thread.
exit
protected Button exit
- Exit the system.
start
protected Button start
- Begin the system.
verbose
protected Button verbose
- Display the changes in the image.
ball
protected Button ball
- Ball is out of play.
launch
protected Button launch
- Launch the ball.
coin
protected Button coin
- Insert a coin.
startGame
protected Button startGame
- Start the pinball game.
refindFlippers
protected Button refindFlippers
- Refind the flippers.
pause
protected Button pause
- Pause the system.
boarder
protected static final int boarder
- Excess size for the window.
buffer
protected Buffer buffer
- The first of the list of information buffers.
gameStats
protected TextArea gameStats
- The area on the window to display infomation about the game.
top
protected Panel top
- Top is the image.
middle
protected Panel middle
- middle is the statistics.
bottom
protected Panel bottom
- bottom has the buttons.
systemButtons
protected Panel systemButtons
- The buttons for controlling the system.
gameButtons
protected Panel gameButtons
- The buttons for controlling the game.
MainMenu
public MainMenu()
- For extended classes.
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.
begin
public void begin()
- Create the threads, add the button events and display the window.
All Packages Class Hierarchy This Package Previous Next Index