|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.security.GameConsole
public class GameConsole
This class represents a game console that can play many games.
| Constructor Summary | |
|---|---|
GameConsole()
|
|
| Method Summary | |
|---|---|
Game |
loadGame(String gameName,
String gameURL)
Loads a Game from a given URL. |
static void |
main(String[] args)
The command line contains the name of the game and a URL from where to load it. |
String |
readPreferences(Game game)
Called from the Game to read a game's preferences file. |
boolean |
writePreferences(Game game,
String prefs)
Called from the Game to write a game's preferences file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameConsole()
| Method Detail |
|---|
public boolean writePreferences(Game game,
String prefs)
true if the preferences were sucessfully
written (note that we don't want the name of the preferences file
escaping!)public String readPreferences(Game game)
null if the preferences could not be read
public Game loadGame(String gameName,
String gameURL)
throws Exception
Game from a given URL.
Exceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||