|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectspaceinvaders.GameProgram
public class GameProgram
Driver program for the SpaceInvaders demonstration of "framework" code and inheritance hierarchy.
| Constructor Summary | |
|---|---|
GameProgram()
|
|
| Method Summary | |
|---|---|
static java.awt.Image |
getImage(java.lang.String name)
Returns an Image object with data loaded from a file in the "user directory" (typically the directory where the Java .class file is located) Pauses the program until image is loaded. |
static java.applet.AudioClip |
getSound(java.lang.String name)
Loads a sound file (see main Java documentation for supported sound formats) File should be in "user directory". |
static void |
main(java.lang.String[] args)
Main function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameProgram()
| Method Detail |
|---|
public static java.awt.Image getImage(java.lang.String name)
name - Name of file with image
public static java.applet.AudioClip getSound(java.lang.String name)
name - Name of file with sound
public static void main(java.lang.String[] args)
args - No command line arguments used
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||