Package com.prineside.tdi2.managers
Class GameValueManager.GameValuesSnapshot
java.lang.Object
com.prineside.tdi2.managers.GameValueManager.GameValuesSnapshot
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable,GameValueProvider
- Enclosing class:
- GameValueManager
public static class GameValueManager.GameValuesSnapshot
extends Object
implements GameValueProvider, com.esotericsoftware.kryo.KryoSerializable
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.utils.DelayedRemovalArray<GameValueManager.GameValueEffect>intdouble[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBooleanValue(GameValueType valueType) com.badlogic.gdx.utils.Array<GameValueManager.GvSnapDiff>floatgetFloatValue(GameValueType valueType) floatgetFloatValue(GameValueType valueType1, GameValueType valueType2) intgetIntValue(GameValueType valueType) intgetIntValue(GameValueType valueType1, GameValueType valueType2) doublegetPercentValueAsMultiplier(GameValueType valueType) doublegetPercentValueAsMultiplier(GameValueType[] valueTypes) doublegetPercentValueAsMultiplier(GameValueType valueType1, GameValueType valueType2) doublegetValue(GameValueType valueType) voidprintDifferences(String thisName, String compareToName, GameValueManager.GameValuesSnapshot compareTo, com.badlogic.gdx.utils.StringBuilder sb) voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) toString()voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Field Details
-
values
public double[] values -
hash
public int hash -
effects
-
-
Constructor Details
-
GameValuesSnapshot
public GameValuesSnapshot()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable
-
getValue
- Specified by:
getValuein interfaceGameValueProvider
-
getBooleanValue
- Specified by:
getBooleanValuein interfaceGameValueProvider
-
getIntValue
- Specified by:
getIntValuein interfaceGameValueProvider
-
getIntValue
- Specified by:
getIntValuein interfaceGameValueProvider
-
getFloatValue
- Specified by:
getFloatValuein interfaceGameValueProvider
-
getFloatValue
- Specified by:
getFloatValuein interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplierin interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplierin interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplierin interfaceGameValueProvider
-
toString
-
getDifferences
public com.badlogic.gdx.utils.Array<GameValueManager.GvSnapDiff> getDifferences(GameValueManager.GameValuesSnapshot compareTo) -
printDifferences
public void printDifferences(String thisName, String compareToName, GameValueManager.GameValuesSnapshot compareTo, com.badlogic.gdx.utils.StringBuilder sb)
-