Package com.prineside.luaj.mapping.parts
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
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidcpy()com.badlogic.gdx.scenes.scene2d.utils.DrawablegetIcon()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 oneintintgetPower()booleanbooleanisPowerLevelUpgradedByOtherMod(int p1) voidmarkPowerLevelUpgradedByOtherMod(int p1) 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 colorbooleanregister(GameSystemProvider p1, String p2) Note: if mod needs random number generator, it must use the one provided by GameplayModSystemvoidsetRegisteredPower(int p1) If mod has adjustable power, this method can be called during the game to increase its powervoidMark this mod as a replacement for some other mod whose preconditions were not satisfiedMethods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
allowsMultipleInstancesFromDifferentSources
public boolean allowsMultipleInstancesFromDifferentSources()- Specified by:
allowsMultipleInstancesFromDifferentSourcesin interfaceGameplayMod- Returns:
- true if multiple mods of the same type can be enabled at the same time (from different sources)
-
configure
- Specified by:
configurein interfaceGameplayMod
-
cpy
- Specified by:
cpyin interfaceGameplayMod
-
getAdditionalCategory
- Specified by:
getAdditionalCategoryin interfaceGameplayMod
-
getCategory
- Specified by:
getCategoryin interfaceGameplayMod
-
getDescription
- Specified by:
getDescriptionin interfaceGameplayMod
-
getIcon
public com.badlogic.gdx.scenes.scene2d.utils.Drawable getIcon()- Specified by:
getIconin interfaceGameplayMod
-
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
-
getMaxPower
public int getMaxPower()- Specified by:
getMaxPowerin interfaceGameplayMod- Returns:
- max possible power of the mod. If set to <=1f, it is assumed that mod has a single fixed power
-
getNotSatisfiedPreconditions
- Specified by:
getNotSatisfiedPreconditionsin interfaceGameplayMod- Returns:
- description of a not satisfied preconditions or null if bonus can be enabled
-
getPower
public int getPower()- Specified by:
getPowerin interfaceGameplayMod- Returns:
- current power of the mod. Higher power makes mod more effective
-
getReplacesUnsatisfiedMod
- Specified by:
getReplacesUnsatisfiedModin interfaceGameplayMod- Returns:
- mod previously set by setReplacesUnsatisfiedMod()
-
isImmediateAndNotListed
public boolean isImmediateAndNotListed()- Specified by:
isImmediateAndNotListedin interfaceGameplayMod
-
isPowerLevelUpgradedByOtherMod
public boolean isPowerLevelUpgradedByOtherMod(int p1) - Specified by:
isPowerLevelUpgradedByOtherModin interfaceGameplayMod
-
markPowerLevelUpgradedByOtherMod
public void markPowerLevelUpgradedByOtherMod(int p1) Description copied from interface:GameplayModCalled 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:
markPowerLevelUpgradedByOtherModin interfaceGameplayMod
-
register
Description copied from interface:GameplayModNote: if mod needs random number generator, it must use the one provided by GameplayModSystem- Specified by:
registerin interfaceGameplayMod- 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:GameplayModIf mod has adjustable power, this method can be called during the game to increase its power- Specified by:
setRegisteredPowerin interfaceGameplayMod- Parameters:
p1- new power to set for this mod when already registered. Will be in range 0..getMaxPower()
-
setReplacesUnsatisfiedMod
Description copied from interface:GameplayModMark this mod as a replacement for some other mod whose preconditions were not satisfied- Specified by:
setReplacesUnsatisfiedModin interfaceGameplayMod
-