Class GV_AbilitiesEnergy
java.lang.Object
com.prineside.tdi2.gameplayMods.GenericGameplayMod
com.prineside.tdi2.gameplayMods.mods.AbstractGameValueMod
com.prineside.tdi2.gameplayMods.mods.GV_AbilitiesEnergy
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
,GameplayMod
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.prineside.tdi2.gameplayMods.mods.AbstractGameValueMod
additionalCategory, baseValue, deltaPerPower, gvType, isFinalMultiplier, mainCategory, roundToInt
Fields inherited from class com.prineside.tdi2.gameplayMods.GenericGameplayMod
maxPower, multipleInstances, power, powerLevelsUpgradedByMods, replacedMod
-
Constructor Summary
ConstructorsConstructorDescriptionGV_AbilitiesEnergy
(AbilityType abilityType, int minAbilityEnergyPrecondition, GameValueType gvType, float baseValue, float deltaPerPower) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cpy()
getId()
Used to identify and compare mods instead of comparing mod classes and variants (if mod allows multiple variants) For example, GameValueMod may have many variants and should generate a separate id for each onevoid
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.gameplayMods.mods.AbstractGameValueMod
applyConfig, getAdditionalCategory, getCategory, getDescription, getIcon, register, setRegisteredPower
Methods inherited from class com.prineside.tdi2.gameplayMods.GenericGameplayMod
allowsMultipleInstancesFromDifferentSources, getMaxPower, getPower, getReplacesUnsatisfiedMod, isPowerLevelUpgradedByOtherMod, markPowerLevelUpgradedByOtherMod, setReplacesUnsatisfiedMod
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.prineside.tdi2.gameplayMods.GameplayMod
isImmediateAndNotListed
-
Constructor Details
-
GV_AbilitiesEnergy
public GV_AbilitiesEnergy(AbilityType abilityType, int minAbilityEnergyPrecondition, GameValueType gvType, float baseValue, float deltaPerPower)
-
-
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
- Overrides:
write
in classAbstractGameValueMod
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
read
in classAbstractGameValueMod
-
getId
Description copied from interface:GameplayMod
Used to identify and compare mods instead of comparing mod classes and variants (if mod allows multiple variants) For example, GameValueMod may have many variants and should generate a separate id for each one- Specified by:
getId
in interfaceGameplayMod
- Overrides:
getId
in classGenericGameplayMod
-
cpy
-
configure
-
getNotSatisfiedPreconditions
- Returns:
- description of a not satisfied preconditions or null if bonus can be enabled
-