Interface IAnimationVariableSource
- All Known Subinterfaces:
IAnimatable,IAnimationVariableCallbackMap,IAnimationVariableMap,IAnimationVariableRegistry,IAnimationVariableSourceContainer
- All Known Implementing Classes:
ActionState,AnimatedModel,AnimationVariableSource,IsoAnimal,IsoDummyCameraCharacter,IsoGameCharacter,IsoLivingCharacter,IsoLuaCharacter,IsoLuaMover,IsoPlayer,IsoSurvivor,IsoZombie,RandomizedBuildingBase.HumanCorpse
public interface IAnimationVariableSource
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsVariable(String name) Returns all Game variables.default IAnimationVariableSourcegetSubVariableSource(String var1) default IAnimationVariableSlotgetVariable(String key) Returns the specified variable slot.getVariable(AnimationVariableHandle handle) Returns the specified variable slot.default booleangetVariableBoolean(String name) Returns the specified variable, as a boolean.default booleangetVariableBoolean(String key, boolean defaultVal) Returns the specified variable, as a boolean.default booleangetVariableBoolean(AnimationVariableHandle animationVariableHandle) default <EnumType extends Enum<EnumType>>
EnumTypegetVariableEnum(String string, EnumType _enum) default floatgetVariableFloat(String name, float defaultVal) Returns the specified variable, as a float.default StringgetVariableString(String name) Returns the specified variable.booleanisVariable(String name, String val) Compares (ignoring case) the value of the specified variable.
-
Method Details
-
getVariable
Returns the specified variable slot. Or NULL if not found. -
getVariable
Returns the specified variable slot. Or NULL if not found. -
getVariableString
-
getVariableFloat
Returns the specified variable, as a float. Attempts to convert the string variable to a float. If that fails, or if variable not found, returns the defaultValue -
getVariableBoolean
Returns the specified variable, as a boolean. Attempts to convert the string variable to a boolean. If that fails, or if variable not found, returns FALSE -
getVariableBoolean
Returns the specified variable, as a boolean. Attempts to convert the string variable to a boolean. If that fails, or if variable not found, returns defaultVal -
getVariableBoolean
-
getVariableEnum
-
getGameVariables
Iterable<IAnimationVariableSlot> getGameVariables()Returns all Game variables. -
isVariable
-
containsVariable
-
getSubVariableSource
-