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 final class GameValueManager.GameValuesSnapshot
extends Object
implements GameValueProvider, com.esotericsoftware.kryo.KryoSerializable
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.utils.DelayedRemovalArray<GameValueManager.GameValueEffect>
int
double[]
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanValue
(GameValueType valueType) com.badlogic.gdx.utils.Array<GameValueManager.GvSnapDiff>
float
getFloatValue
(GameValueType valueType) float
getFloatValue
(GameValueType valueType1, GameValueType valueType2) int
getIntValue
(GameValueType valueType) int
getIntValue
(GameValueType valueType1, GameValueType valueType2) double
getPercentValueAsMultiplier
(GameValueType valueType) double
getPercentValueAsMultiplier
(GameValueType[] valueTypes) double
getPercentValueAsMultiplier
(GameValueType valueType1, GameValueType valueType2) double
getValue
(GameValueType valueType) void
printDifferences
(String thisName, String compareToName, GameValueManager.GameValuesSnapshot compareTo, com.badlogic.gdx.utils.StringBuilder sb) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) toJson()
toString()
void
write
(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() -
GameValuesSnapshot
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
toJson
-
fromJson
-
getValue
- Specified by:
getValue
in interfaceGameValueProvider
-
getBooleanValue
- Specified by:
getBooleanValue
in interfaceGameValueProvider
-
getIntValue
- Specified by:
getIntValue
in interfaceGameValueProvider
-
getIntValue
- Specified by:
getIntValue
in interfaceGameValueProvider
-
getFloatValue
- Specified by:
getFloatValue
in interfaceGameValueProvider
-
getFloatValue
- Specified by:
getFloatValue
in interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplier
in interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplier
in interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplier
in 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)
-