|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.engine.resource.modules.ResourceModule
vooga.engine.resource.modules.StringModule
public class StringModule
ResourceModule designed to track Strings which act as constants throughout the game.
Constructor Summary | |
---|---|
StringModule()
|
Method Summary | |
---|---|
void |
clearElements()
Clears the current resource map. |
static java.lang.String |
getString(java.lang.String key)
Returns the String associated with the given String label. |
void |
loadElements(java.util.Collection<org.w3c.dom.Element> elements)
Adds Elements to the resource map. |
static void |
loadString(java.lang.String key,
java.lang.String stringToLoad)
Puts a new entry into this Resources's stringMap, with a String key and a String value. |
Methods inherited from class vooga.engine.resource.modules.ResourceModule |
---|
getDefaultPath, getGame, setDefaultPath, setGame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringModule()
Method Detail |
---|
public void clearElements()
ResourceModule
clearElements
in class ResourceModule
public void loadElements(java.util.Collection<org.w3c.dom.Element> elements)
ResourceModule
loadElements
in class ResourceModule
elements
- Elements of the parsed XML document to be addedpublic static void loadString(java.lang.String key, java.lang.String stringToLoad)
public static java.lang.String getString(java.lang.String key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |