|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.haphazard.gui.GlobalOptions
GlobalOptions are settings that are persistent between runs. They can be modified by the user by editing a text file. All properties has functions and default values when accessing them. If a needed property is not known, the class should take actions inquiring the user to find out the value
Field Summary |
Fields inherited from class java.util.Properties |
defaults |
Method Summary | |
int |
getBanditTimer()
Gets the time in ms that should elapse before a new bandit is spawned. |
java.io.File |
getGraphics()
Gets the jar-file alt. directory where the graphics should be located |
static GlobalOptions |
getInstance()
Gets an instance of this object |
int |
getPort()
Gets the time in ms that should elapse before a new bandit is spawned. |
void |
init(javax.swing.JFrame owner,
java.lang.String filename)
Initiates this object |
void |
setFile(java.lang.String filename)
Sets the file this object should work against. |
boolean |
useFogOfWar()
Checks if the fog of war should be used |
boolean |
useGraphics()
Checks if graphics should be used |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public static GlobalOptions getInstance()
public void init(javax.swing.JFrame owner, java.lang.String filename)
owner
- The Frame that owns this objectfilename
- The property file to work againstpublic void setFile(java.lang.String filename)
filename
- The filename of the initializer filepublic java.io.File getGraphics()
public boolean useGraphics()
public int getBanditTimer()
public int getPort()
public boolean useFogOfWar()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |