Class LJ_TDI.GameplayMod_EO.LIP

java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_TDI.GameplayMod_EO.LIP
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, GameplayMod
Enclosing class:
LJ_TDI.GameplayMod_EO

public static class LJ_TDI.GameplayMod_EO.LIP extends InterfaceProxy implements GameplayMod
  • Method Details

    • allowsMultipleInstancesFromDifferentSources

      public boolean allowsMultipleInstancesFromDifferentSources()
      Specified by:
      allowsMultipleInstancesFromDifferentSources in interface GameplayMod
      Returns:
      true if multiple mods of the same type can be enabled at the same time (from different sources)
    • configure

      public void configure(GameSystemProvider p1)
      Specified by:
      configure in interface GameplayMod
    • cpy

      public GameplayMod cpy()
      Specified by:
      cpy in interface GameplayMod
    • getAdditionalCategory

      public GameplayModCategory getAdditionalCategory()
      Specified by:
      getAdditionalCategory in interface GameplayMod
    • getCategory

      public GameplayModCategory getCategory()
      Specified by:
      getCategory in interface GameplayMod
    • getDescription

      public CharSequence getDescription()
      Specified by:
      getDescription in interface GameplayMod
    • getIcon

      public com.badlogic.gdx.scenes.scene2d.utils.Drawable getIcon()
      Specified by:
      getIcon in interface GameplayMod
    • 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
    • getMaxPower

      public int getMaxPower()
      Specified by:
      getMaxPower in interface GameplayMod
      Returns:
      max possible power of the mod. If set to <=1f, it is assumed that mod has a single fixed power
    • getNotSatisfiedPreconditions

      public CharSequence getNotSatisfiedPreconditions(GameSystemProvider p1)
      Specified by:
      getNotSatisfiedPreconditions in interface GameplayMod
      Returns:
      description of a not satisfied preconditions or null if bonus can be enabled
    • getPower

      public int getPower()
      Specified by:
      getPower in interface GameplayMod
      Returns:
      current power of the mod. Higher power makes mod more effective
    • getReplacesUnsatisfiedMod

      public GameplayMod getReplacesUnsatisfiedMod()
      Specified by:
      getReplacesUnsatisfiedMod in interface GameplayMod
      Returns:
      mod previously set by setReplacesUnsatisfiedMod()
    • isImmediateAndNotListed

      public boolean isImmediateAndNotListed()
      Specified by:
      isImmediateAndNotListed in interface GameplayMod
    • isPowerLevelUpgradedByOtherMod

      public boolean isPowerLevelUpgradedByOtherMod(int p1)
      Specified by:
      isPowerLevelUpgradedByOtherMod in interface GameplayMod
    • markPowerLevelUpgradedByOtherMod

      public void markPowerLevelUpgradedByOtherMod(int p1)
      Description copied from interface: GameplayMod
      Called when some specific mods upgrade other mods To make it clear for the player which bonuses were affected, these levels are marked with a different color
      Specified by:
      markPowerLevelUpgradedByOtherMod in interface GameplayMod
    • register

      public boolean register(GameSystemProvider p1, String p2)
      Description copied from interface: GameplayMod
      Note: if mod needs random number generator, it must use the one provided by GameplayModSystem
      Specified by:
      register in interface GameplayMod
      Returns:
      true if bonus has to be registered. False means that existing active mod of the same type has been upgraded
    • setRegisteredPower

      public void setRegisteredPower(int p1)
      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
      Parameters:
      p1 - new power to set for this mod when already registered. Will be in range 0..getMaxPower()
    • setReplacesUnsatisfiedMod

      public void setReplacesUnsatisfiedMod(GameplayMod p1)
      Description copied from interface: GameplayMod
      Mark this mod as a replacement for some other mod whose preconditions were not satisfied
      Specified by:
      setReplacesUnsatisfiedMod in interface GameplayMod