|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jogre.common.util.AbstractProperties
org.jogre.common.util.GameProperties
This class provides an easy and effective point for accessing to each game resource bundle (game.properties).
Field Summary |
Fields inherited from class org.jogre.common.util.AbstractProperties |
rb |
Method Summary | |
static Color |
getBackgroundColour()
Return the background colour of the JOGRE table frame. |
static String |
getGameID()
Return the game ID. |
static String |
getGameNoID()
Return the game label on its own. |
static Vector |
getImageInfo()
Return a vector of images where images are defined as image.0, image.1, ... |
static GameProperties |
getInstance()
Accessor to singleton instance of this class. |
static int |
getMaxNumOfTables()
Return the minimum number of players in a game. |
static int |
getMaxNumOfTablesPerUser()
Return the maximum number of tables that a user can create. |
static Color |
getPlayerColour(int playerNum)
Return the color of a player (each player has a specific colour which is used throughout the API). |
static String |
getRulesFilename()
Return the name of the rules file |
static boolean |
isApplet()
Static method which return true if this is an applet. |
static void |
setApplet(boolean isApplet)
Static method for setting true/false if this is an applet. |
Methods inherited from class org.jogre.common.util.AbstractProperties |
get, get, get, getBoolean, getBoolean, getInt, getInt, getResourceBundle, reload, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static GameProperties getInstance()
public static int getMaxNumOfTables()
public static int getMaxNumOfTablesPerUser()
public static String getGameID()
public static String getGameNoID()
public static Color getPlayerColour(int playerNum)
playerNum
- Supplied player number
public static Color getBackgroundColour()
public static boolean isApplet()
public static void setApplet(boolean isApplet)
isApplet
- If true this is an applet.public static Vector getImageInfo()
Return a vector of images where images are defined as image.0, image.1, ... image.n.
Each image info will consist of the image and its size in bytes:
e.g. chess_icon,456
public static String getRulesFilename()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |