Package com.prineside.luaj.mapping.parts
Class LJ_TDI.GameplayMod_EP.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_TDI.GameplayMod_EP.LIP
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
,GameplayMod
- Enclosing class:
- LJ_TDI.GameplayMod_EP
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cpy()
com.badlogic.gdx.scenes.scene2d.utils.Drawable
getIcon()
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 oneint
int
getPower()
boolean
boolean
register
(GameSystemProvider p1, String p2) void
setRegisteredPower
(int p1) If mod has adjustable power, this method can be called during the game to increase its powerMethods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
allowsMultipleInstancesFromDifferentSources
public boolean allowsMultipleInstancesFromDifferentSources()- Specified by:
allowsMultipleInstancesFromDifferentSources
in interfaceGameplayMod
- Returns:
- true if multiple mods of the same type can be enabled at the same time (from different sources)
-
cpy
- Specified by:
cpy
in interfaceGameplayMod
-
getAdditionalCategory
- Specified by:
getAdditionalCategory
in interfaceGameplayMod
-
getCategory
- Specified by:
getCategory
in interfaceGameplayMod
-
getDescription
- Specified by:
getDescription
in interfaceGameplayMod
-
getIcon
public com.badlogic.gdx.scenes.scene2d.utils.Drawable getIcon()- Specified by:
getIcon
in interfaceGameplayMod
-
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 interfaceGameplayMod
-
getMaxPower
public int getMaxPower()- Specified by:
getMaxPower
in interfaceGameplayMod
- Returns:
- max possible power of the mod. If set to <=1f, it is assumed that mod has a single fixed power
-
getPower
public int getPower()- Specified by:
getPower
in interfaceGameplayMod
- Returns:
- current power of the mod. Higher power makes mod more effective
-
isImmediateAndNotListed
public boolean isImmediateAndNotListed()- Specified by:
isImmediateAndNotListed
in interfaceGameplayMod
-
register
- Specified by:
register
in 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:GameplayMod
If mod has adjustable power, this method can be called during the game to increase its power- Specified by:
setRegisteredPower
in interfaceGameplayMod
- Parameters:
p1
- new power to set for this mod when already registered. Will be in range 0..getMaxPower()
-