Class TowersAttackSpeed

java.lang.Object
com.prineside.tdi2.gameplayMods.GenericGameplayMod
com.prineside.tdi2.gameplayMods.mods.TowersAttackSpeed
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, GameplayMod

public final class TowersAttackSpeed extends GenericGameplayMod
  • Constructor Details

    • TowersAttackSpeed

      public TowersAttackSpeed()
  • 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 GenericGameplayMod
    • 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 GenericGameplayMod
    • getIcon

      public com.badlogic.gdx.scenes.scene2d.utils.Drawable getIcon()
    • getDescription

      public CharSequence getDescription()
    • cpy

      public TowersAttackSpeed cpy()
    • getStatMultiplier

      public float getStatMultiplier()
    • register

      public boolean register(GameSystemProvider S, String activatedBy)
      Returns:
      true if bonus has to be registered. False means that existing active mod of the same type has been upgraded
    • getCategory

      public GameplayModCategory getCategory()
    • applyConfig

      public TowersAttackSpeed applyConfig(com.badlogic.gdx.utils.JsonValue cfg)
      Description copied from class: GenericGameplayMod
      Usually there's no need to override this method Used by mods that have specific combinations of parameters and read default parameters for each combo
      Overrides:
      applyConfig in class GenericGameplayMod
    • setRegisteredPower

      public void setRegisteredPower(int newPower)
      Description copied from interface: GameplayMod
      If mod has adjustable power, this method can be called during the game to increase its power
      Specified by:
      setRegisteredPower in interface GameplayMod
      Overrides:
      setRegisteredPower in class GenericGameplayMod
      Parameters:
      newPower - new power to set for this mod when already registered. Will be in range 0..getMaxPower()