A user selects which player is going to be used for the system.
For the camera driver to work, and thereby the whole system working, you need to be root for the system to be in local or server mode. Client mode does not use the camera and can run by any user.
When the player is started it checks the command line arguments to see which mode it will be in. The following modes are available: local, client, or server mode.
The modes are indicated by these command line arguments:
-s for server mode.
-c for client mode.
Local mode requires no option.
There are also provisions to capture record the events of the system.
-l will record events only. -L will record both the events and the images
from the camera.. -lpath or -Lpath will setup the log file under the path
given. The path is the location to store the log files. You must end the
path with a '/', or the location will not be correct.
Also, there is a flipper file that stores the locations of the flippers. To use a flipper file the command line argument is -Ffilename, where filename is the name of the flipper locations file. If the file is found, the system reads the locations. If the file does not exist, the flipper locations are found and are stored to that file.
After the player's mode is selected, the player starts JavaQcam
.
JavaQcam
initializes the remainder of the system.
JavaQcam
initializes the Camera
.
Camera
is initialized, it reads in a configuration
file from:GameOptions
.
JavaQcam
checks the command line arguments.
PinballLog
, and flipper's
file if specified.
Options
menu is displayed.
GameOptions
.
Camera
into it's operation mode. The mode depends on
the log file's status.
MainMenu
.
MainMenu
.
The MainMenu has the DrawingCanvas
that displays the image from
the camera (if displaying images is selected), a Textfield
for
statistics information, and Buttons
to control the system.
Buffers
for the system.