Package com.prineside.tdi2
Class GameValueConfig
java.lang.Object
com.prineside.tdi2.GameValueConfig
- All Implemented Interfaces:
KryoSerializable
-
Constructor Summary
ConstructorsConstructorDescriptionGameValueConfig(GameValueType type, double value, boolean overwrite, boolean allowBonuses) -
Method Summary
Modifier and TypeMethodDescriptioncpy()static GameValueConfiggetType()doublegetValue()booleanbooleanbooleanvoidbooleansameAs(GameValueConfig config) voidsetAllowBonuses(boolean allowBonuses) voidsetFinalGlobalMultiplier(boolean finalGlobalMultiplier) voidsetOverwrite(boolean overwrite) voidsetType(GameValueType type) voidsetValue(double value) voidtoString()void
-
Constructor Details
-
GameValueConfig
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable
-
read
- Specified by:
readin interfaceKryoSerializable
-
getType
-
setType
-
getValue
public double getValue() -
setValue
public void setValue(double value) -
isOverwrite
public boolean isOverwrite() -
setOverwrite
public void setOverwrite(boolean overwrite) -
isAllowBonuses
public boolean isAllowBonuses() -
setAllowBonuses
public void setAllowBonuses(boolean allowBonuses) -
isFinalGlobalMultiplier
public boolean isFinalGlobalMultiplier() -
setFinalGlobalMultiplier
public void setFinalGlobalMultiplier(boolean finalGlobalMultiplier) -
toJson
-
fromJson
- Throws:
IllegalArgumentException- if GameValueType is not found
-
sameAs
-
cpy
-
toString
-