|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectjgSettings.JgSettings
JgSettings maintains the settings for the program, such as catagory and selected glyphs. TODO: allow multiple catagory selections and include dirs.
| Field Summary | |
protected java.lang.String |
catagory
A string representing the catagory to start with |
protected boolean |
catagoryWasSet
Set to true if the catagory was specified on the command line |
protected GlyphSet |
glyphs
An array of Strings representing Characters or sequences for the game |
protected boolean |
glyphsWereSet
Set to true if glyphs were specified on the command line. |
protected java.io.File |
includeDir
An extra directory to search for catagory folders in |
| Constructor Summary | |
JgSettings()
Constructor that sets default setings |
|
JgSettings(java.lang.String[] args)
Constructor that sets settings according to the passed command line |
|
| Method Summary | |
java.lang.String |
getCatagory()
Retrieves the catagory name. |
GlyphSet |
getGlyphSet()
Retrieves the GlyphSet instance |
java.io.File |
getIncludeDir()
Retireves the user-specified include dir. |
protected void |
init()
Sets the defaults |
void |
setCatagory(java.lang.String cat,
java.lang.Object src)
Sets the catagory to the supplied string, or null to indicate 'all available catagories'. |
void |
setGlyphSet(GlyphSet gs)
Sets the glyphs used for play. |
boolean |
shouldDrawUI()
Checks to see if the UI should be drawn to select options. |
java.lang.String |
toString()
Returns the string representation of this class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected GlyphSet glyphs
protected boolean glyphsWereSet
protected java.lang.String catagory
protected boolean catagoryWasSet
protected java.io.File includeDir
| Constructor Detail |
public JgSettings()
public JgSettings(java.lang.String[] args)
| Method Detail |
public java.lang.String toString()
protected void init()
public java.lang.String getCatagory()
public GlyphSet getGlyphSet()
public java.io.File getIncludeDir()
public void setCatagory(java.lang.String cat,
java.lang.Object src)
cat - the catagory to set to. Use null for
'all available catagories'.src - the Object that has requested the catagory change.public void setGlyphSet(GlyphSet gs)
gs - the GlyphSet to usepublic boolean shouldDrawUI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||