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 final classstatic class - 
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomGameValue(GameValueConfig config) booleanaddGlobalTowerStatMutator(TowerStatType towerStatType, GameValueSystem.GlobalTowerStatMutator mutator) booleanbooleanfloatfloatgetFloatValue(GameValueType gv1, GameValueType gv2) floatcom.badlogic.gdx.utils.Array<GameValueSystem.GlobalTowerStatMutator>getGlobalTowerStatMutators(TowerStatType towerStatType) intintgetIntValue(GameValueType gv1, GameValueType gv2) doubledoubledoubleintfloatdoublevoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidВызывать всегда, когда поменялась конфигурация во время игры (сменился эффект тайла и т.п.)voidvoidremoveCustomGameValue(GameValueConfig config) booleanremoveGlobalTowerStatMutator(TowerStatType towerStatType, GameValueSystem.GlobalTowerStatMutator mutator) voidsetup()Произвести начальную настройку системы.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 
- 
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
 - 
getGlobalStatMultiplier
 - 
addGlobalTowerStatMutator
public boolean addGlobalTowerStatMutator(TowerStatType towerStatType, GameValueSystem.GlobalTowerStatMutator mutator)  - 
removeGlobalTowerStatMutator
public boolean removeGlobalTowerStatMutator(TowerStatType towerStatType, GameValueSystem.GlobalTowerStatMutator mutator)  - 
getGlobalTowerStatMutators
public com.badlogic.gdx.utils.Array<GameValueSystem.GlobalTowerStatMutator> getGlobalTowerStatMutators(TowerStatType towerStatType)  - 
recalculateGlobalTowerStatMultipliers
public void recalculateGlobalTowerStatMultipliers() - 
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
 
 -