|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.arcade.util.GameResources
public class GameResources
Class used to load and access all game resources (title, description, screenshot, etc).
Constructor Summary | |
---|---|
GameResources()
Read all available games from GameResources.txt and put them into a map for accessing. |
Method Summary | |
---|---|
static java.util.Set<java.lang.String> |
getAllTitles()
Get a set of all the game titles. |
static java.lang.String |
getClass(java.lang.String title)
Get a game's class so it can be run. |
static java.lang.String |
getDescription(java.lang.String title)
Get a game's description given its title. |
static int |
getGameID(java.lang.String title)
Get a game's ID given its title. |
static java.lang.String |
getInstructions(java.lang.String title)
Get a game's instructions given its title. |
static int |
getMaxPlayers(java.lang.String title)
|
static java.awt.Image |
getScreenShot(java.lang.String title)
Get a game's screen shot given its title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameResources()
Method Detail |
---|
public static java.util.Set<java.lang.String> getAllTitles()
public static java.lang.String getDescription(java.lang.String title)
public static java.lang.String getInstructions(java.lang.String title)
public static java.awt.Image getScreenShot(java.lang.String title)
public static int getGameID(java.lang.String title)
public static java.lang.String getClass(java.lang.String title)
public static int getMaxPlayers(java.lang.String title)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |