Package zombie.radio.globals
Class RadioGlobalsManager
java.lang.Object
zombie.radio.globals.RadioGlobalsManager
public class RadioGlobalsManager
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description boolean
addGlobal(java.lang.String name, RadioGlobal global)
boolean
addGlobalBool(java.lang.String name, boolean value)
boolean
addGlobalFloat(java.lang.String name, float value)
boolean
addGlobalInt(java.lang.String name, int value)
boolean
addGlobalString(java.lang.String name, java.lang.String value)
CompareResult
compare(java.lang.String globalA, java.lang.String globalB, CompareMethod compareMethod)
CompareResult
compare(RadioGlobal A, RadioGlobal B, CompareMethod compareMethod)
boolean
exists(java.lang.String name)
RadioGlobal
getGlobal(java.lang.String name)
RadioGlobalBool
getGlobalBool(java.lang.String name)
RadioGlobalFloat
getGlobalFloat(java.lang.String name)
RadioGlobalInt
getGlobalInt(java.lang.String name)
RadioGlobalString
getGlobalString(java.lang.String name)
static RadioGlobalsManager
getInstance()
java.lang.String
getString(java.lang.String name)
RadioGlobalType
getType(java.lang.String name)
void
reset()
boolean
setGlobal(java.lang.String name, boolean value)
boolean
setGlobal(java.lang.String name, float value)
boolean
setGlobal(java.lang.String name, int value)
boolean
setGlobal(java.lang.String name, java.lang.String value)
boolean
setGlobal(java.lang.String name, RadioGlobal value, EditGlobalOps operator)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getInstance
-
reset
public void reset() -
exists
public boolean exists(java.lang.String name) -
getType
-
getString
public java.lang.String getString(java.lang.String name) -
addGlobal
-
addGlobalString
public boolean addGlobalString(java.lang.String name, java.lang.String value) -
addGlobalBool
public boolean addGlobalBool(java.lang.String name, boolean value) -
addGlobalInt
public boolean addGlobalInt(java.lang.String name, int value) -
addGlobalFloat
public boolean addGlobalFloat(java.lang.String name, float value) -
getGlobal
-
getGlobalString
-
getGlobalInt
-
getGlobalFloat
-
getGlobalBool
-
setGlobal
-
setGlobal
public boolean setGlobal(java.lang.String name, java.lang.String value) -
setGlobal
public boolean setGlobal(java.lang.String name, int value) -
setGlobal
public boolean setGlobal(java.lang.String name, float value) -
setGlobal
public boolean setGlobal(java.lang.String name, boolean value) -
compare
-
compare
public CompareResult compare(java.lang.String globalA, java.lang.String globalB, CompareMethod compareMethod)
-