Interface IAnimationVariableSource
- All Known Subinterfaces:
IAnimatable
,IAnimationVariableMap
- All Known Implementing Classes:
AnimatedModel
,AnimationVariableSource
,IsoDummyCameraCharacter
,IsoGameCharacter
,IsoLivingCharacter
,IsoLuaCharacter
,IsoLuaMover
,IsoPlayer
,IsoSurvivor
,IsoZombie
,RandomizedBuildingBase.HumanCorpse
public interface IAnimationVariableSource
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsVariable
(String name) Returns all Game variables.getVariable
(String key) Returns the specified variable slot.getVariable
(AnimationVariableHandle handle) Returns the specified variable slot.boolean
getVariableBoolean
(String name) Returns the specified variable, as a boolean.boolean
getVariableBoolean
(String key, boolean defaultVal) Returns the specified variable, as a boolean.float
getVariableFloat
(String name, float defaultVal) Returns the specified variable, as a float.getVariableString
(String name) Returns the specified variable.boolean
isVariable
(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
Returns the specified variable. Or an empty string "" if not found. -
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 -
getGameVariables
Iterable<IAnimationVariableSlot> getGameVariables()Returns all Game variables. -
isVariable
Compares (ignoring case) the value of the specified variable. Returns TRUE if they match. -
containsVariable
-