All Packages Class Hierarchy This Package Previous Next Index
Class taxman.Taxman
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----taxman.Taxman
- public class Taxman
- extends Applet
- implements MediaObserver
This applet is the main layout manager for the Taxman
game. All the control an setup is done in smaller
classes but this one loads files from the server
and lays out the big picture.
-
Taxman()
- The constructor creates a new game but does not
UI work.
-
init()
- Initializes and sets up all UI components.
-
itemLoaded(MediaRecord)
- Updates the screen when each image is loaded.
-
loadingFinished(MediaRecord[])
-
-
main(String[])
- Testing function.
Taxman
public Taxman()
- The constructor creates a new game but does not
UI work.
init
public void init()
- Initializes and sets up all UI components.
It also loads the media (graphics and audio) files
- Overrides:
- init in class Applet
itemLoaded
public void itemLoaded(MediaRecord mr)
- Updates the screen when each image is loaded.
- Parameters:
- mr - The media record that was last loaded
loadingFinished
public void loadingFinished(MediaRecord mr[])
main
public static void main(String args[])
- Testing function. It creates a frame and runs the applet
in that frame.
All Packages Class Hierarchy This Package Previous Next Index