Package de.coreengine.util
Class Configuration
- java.lang.Object
-
- de.coreengine.util.Configuration
-
public class Configuration extends Object
Class that can load a config file with default values and stores them- Author:
- Darius Dinger
-
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float
getValuef(String id)
Getting float value of setting Loggin an error and returning 1, if setting not foundstatic float[]
getValuefa(String id)
Getting float array value of setting Loggin an error and returning {}, if setting not foundstatic int
getValuei(String id)
Getting int value of setting Loggin an error and returning 1, if setting not foundstatic String
getValues(String id)
Getting string value of setting Loggin an error and returning "", if setting not found
-
-
-
Method Detail
-
getValuef
public static float getValuef(String id)
Getting float value of setting Loggin an error and returning 1, if setting not found- Parameters:
id
- Name or id of the Setting- Returns:
- Setting as float
-
getValuei
public static int getValuei(String id)
Getting int value of setting Loggin an error and returning 1, if setting not found- Parameters:
id
- Name or id of the Setting- Returns:
- Setting as int
-
getValues
public static String getValues(String id)
Getting string value of setting Loggin an error and returning "", if setting not found- Parameters:
id
- Name or id of the Setting- Returns:
- Setting as string
-
getValuefa
public static float[] getValuefa(String id)
Getting float array value of setting Loggin an error and returning {}, if setting not found- Parameters:
id
- Name or id of the Setting- Returns:
- Setting as float array
-
-