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