FileDocCategorySizeDatePackage
TerrysGame.javaAPI DocExample661Tue Dec 12 18:59:50 GMT 2000com.gamedev.games

TerrysGame

public class TerrysGame extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

	HighScore hs = new HighScore("TerrysGame");

	if (args.length == 0)
	    usage();

	if (args[0].equals("set")) {
	    hs.setHighScore(Integer.parseInt(args[1]));
	} else if (args[0].equals("get")) {
	    System.out.println("score = "+ hs.getHighScore());
	} else {
	    usage();
	}
    
public static voidusage()

	System.out.println("TerrysGame get");
	System.out.println("TerrysGame set <score>");
	System.exit(1);