Class GV_AbilitiesEnergy

All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, GameplayMod

public final class GV_AbilitiesEnergy extends AbstractGameValueMod
  • 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 interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      write in class AbstractGameValueMod
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      read in class AbstractGameValueMod
    • getId

      public String 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 interface GameplayMod
      Overrides:
      getId in class GenericGameplayMod
    • cpy

      public GameplayMod cpy()
    • configure

      public void configure(GameSystemProvider S)
    • getNotSatisfiedPreconditions

      public CharSequence getNotSatisfiedPreconditions(GameSystemProvider S)
      Returns:
      description of a not satisfied preconditions or null if bonus can be enabled