Package com.prineside.tdi2.systems
Class GameValueSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.GameValueSystem
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,com.esotericsoftware.kryo.KryoSerializable,GameValueProvider
public final class GameValueSystem
extends GameSystem
implements GameValueProvider, com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class com.prineside.tdi2.Registrable
S -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomGameValue(GameValueConfig config) booleanbooleanfloatfloatgetFloatValue(GameValueType gv1, GameValueType gv2) intintgetIntValue(GameValueType gv1, GameValueType gv2) doubledoubledoubleintfloatdoublevoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidВызывать всегда, когда поменялась конфигурация во время игры (сменился эффект тайла и т.п.)voidremoveCustomGameValue(GameValueConfig config) voidvoidsetup()Произвести начальную настройку системы.voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.GameSystem
dispose, getFastStateHash, postSetup, postStateRestore, profileUpdate, updateMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
listeners
-
-
Constructor Details
-
GameValueSystem
public GameValueSystem()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
writein classRegistrable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
readin classRegistrable
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameStatein classGameSystem
-
setGlobalSnapshot
-
setup
public void setup()Description copied from class:GameSystemПроизвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
setupin classGameSystem
-
getSystemName
- Specified by:
getSystemNamein classGameSystem
-
getGlobalSnapshot
-
getSnapshot
-
getTickRate
public int getTickRate() -
getTickRateDeltaTime
public float getTickRateDeltaTime() -
recalculate
public void recalculate()Вызывать всегда, когда поменялась конфигурация во время игры (сменился эффект тайла и т.п.) -
addCustomGameValue
-
removeCustomGameValue
-
getValue
- Specified by:
getValuein interfaceGameValueProvider
-
getFloatValue
- Specified by:
getFloatValuein interfaceGameValueProvider
-
getBooleanValue
- Specified by:
getBooleanValuein interfaceGameValueProvider
-
getIntValue
- Specified by:
getIntValuein interfaceGameValueProvider
-
getIntValue
- Specified by:
getIntValuein interfaceGameValueProvider
-
getFloatValue
- Specified by:
getFloatValuein interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplierin interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplierin interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplierin interfaceGameValueProvider
-