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:
Disposable
,KryoSerializable
,GameValueProvider
public final class GameValueSystem
extends GameSystem
implements GameValueProvider, KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static class
-
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomGameValue
(GameValueConfig config) boolean
addGlobalTowerStatMutator
(TowerStatType towerStatType, GameValueSystem.GlobalTowerStatMutator mutator) boolean
boolean
float
float
getFloatValue
(GameValueType gv1, GameValueType gv2) float
getGlobalTowerStatMutators
(TowerStatType towerStatType) int
int
getIntValue
(GameValueType gv1, GameValueType gv2) double
double
double
int
float
double
void
void
Вызывать всегда, когда поменялась конфигурация во время игры (сменился эффект тайла и т.п.)void
void
removeCustomGameValue
(GameValueConfig config) boolean
removeGlobalTowerStatMutator
(TowerStatType towerStatType, GameValueSystem.GlobalTowerStatMutator mutator) void
setup()
Произвести начальную настройку системы.void
Methods inherited from class com.prineside.tdi2.GameSystem
dispose, getFastStateHash, postSetup, postStateRestore, profileUpdate, update
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Constructor Details
-
GameValueSystem
public GameValueSystem()
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classRegistrable
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classRegistrable
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
getGlobalStatMultiplier
-
addGlobalTowerStatMutator
public boolean addGlobalTowerStatMutator(TowerStatType towerStatType, GameValueSystem.GlobalTowerStatMutator mutator) -
removeGlobalTowerStatMutator
public boolean removeGlobalTowerStatMutator(TowerStatType towerStatType, GameValueSystem.GlobalTowerStatMutator mutator) -
getGlobalTowerStatMutators
public Array<GameValueSystem.GlobalTowerStatMutator> getGlobalTowerStatMutators(TowerStatType towerStatType) -
recalculateGlobalTowerStatMultipliers
public void recalculateGlobalTowerStatMultipliers() -
setup
public void setup()Description copied from class:GameSystem
Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
setup
in classGameSystem
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-
getGlobalSnapshot
-
getSnapshot
-
getTickRate
public int getTickRate() -
getTickRateDeltaTime
public float getTickRateDeltaTime() -
recalculate
public void recalculate()Вызывать всегда, когда поменялась конфигурация во время игры (сменился эффект тайла и т.п.) -
addCustomGameValue
-
removeCustomGameValue
-
getValue
- Specified by:
getValue
in interfaceGameValueProvider
-
getFloatValue
- Specified by:
getFloatValue
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
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplier
in interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplier
in interfaceGameValueProvider
-
getPercentValueAsMultiplier
- Specified by:
getPercentValueAsMultiplier
in interfaceGameValueProvider
-