vooga.arcade.util
Class GameResources

java.lang.Object
  extended by vooga.arcade.util.GameResources

public class GameResources
extends java.lang.Object

Class used to load and access all game resources (title, description, screenshot, etc).

Author:
Ron Murhammer, Lindsay Kubasik, Vijay Ram

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

GameResources

public GameResources()
Read all available games from GameResources.txt and put them into a map for accessing.

Method Detail

getAllTitles

public static java.util.Set<java.lang.String> getAllTitles()
Get a set of all the game titles.


getDescription

public static java.lang.String getDescription(java.lang.String title)
Get a game's description given its title.


getInstructions

public static java.lang.String getInstructions(java.lang.String title)
Get a game's instructions given its title.


getScreenShot

public static java.awt.Image getScreenShot(java.lang.String title)
Get a game's screen shot given its title.


getGameID

public static int getGameID(java.lang.String title)
Get a game's ID given its title.


getClass

public static java.lang.String getClass(java.lang.String title)
Get a game's class so it can be run.


getMaxPlayers

public static int getMaxPlayers(java.lang.String title)