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, roundToIntFields 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 TypeMethodDescriptionvoidcpy()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 onevoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidwrite(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, setRegisteredPowerMethods inherited from class com.prineside.tdi2.gameplayMods.GenericGameplayMod
allowsMultipleInstancesFromDifferentSources, getMaxPower, getPower, getReplacesUnsatisfiedMod, isPowerLevelUpgradedByOtherMod, markPowerLevelUpgradedByOtherMod, setReplacesUnsatisfiedModMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
writein interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
writein classAbstractGameValueMod
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
readin classAbstractGameValueMod
-
getId
Description copied from interface:GameplayModUsed 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:
getIdin interfaceGameplayMod- Overrides:
getIdin classGenericGameplayMod
-
cpy
-
configure
-
getNotSatisfiedPreconditions
- Returns:
- description of a not satisfied preconditions or null if bonus can be enabled
-