Interface IAnimationVariableSlot
- All Known Implementing Classes:
AbstractAnimationVariableSlotEnum,AnimationVariableSlot,AnimationVariableSlotBool,AnimationVariableSlotCallback,AnimationVariableSlotCallbackBool,AnimationVariableSlotCallbackEnum,AnimationVariableSlotCallbackFloat,AnimationVariableSlotCallbackInt,AnimationVariableSlotCallbackString,AnimationVariableSlotEnum,AnimationVariableSlotFloat,AnimationVariableSlotString
public interface IAnimationVariableSlot
An Animation Variable Slot Used to store a variable's key+value pair, and its current type.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvertFrom(String val) Returns TRUE if this variable slot can accept and/or convert the supplied value object.voidclear()Clear this variable, its value is set to a null-value.default Stringdefault <EnumType extends Enum<EnumType>>
EnumTypegetEnumValue(EnumType _enum) default AnimationVariableHandlegetKey()This variable's unique keygetType()This variable's value typebooleanThis variable's value, as a Boolean.floatThis variable's value, as a Float.This variable's value, in String form.default booleanReturns TRUE if this variable is not writable.default <EnumType extends Enum<EnumType>>
voidsetEnumValue(EnumType _enum) default booleansetReadOnly(boolean var1) voidsetValue(boolean val) Set this variable's valuevoidsetValue(float val) Set this variable's valuevoidSet this variable's value
-
Method Details
-
getKey
String getKey()This variable's unique key -
getValueString
String getValueString()This variable's value, in String form. -
getValueFloat
float getValueFloat()This variable's value, as a Float. -
getValueBool
boolean getValueBool()This variable's value, as a Boolean. -
getEnumValue
-
setEnumValue
-
setValue
Set this variable's value -
setValue
void setValue(float val) Set this variable's value -
setValue
void setValue(boolean val) Set this variable's value -
getType
AnimationVariableType getType()This variable's value type -
canConvertFrom
Returns TRUE if this variable slot can accept and/or convert the supplied value object. Returns FALSE if the conversion would result in a loss of data. Eg. If a String is given to a Float variable, and the string is not of a numeric format, then the string value would be lost. -
clear
void clear()Clear this variable, its value is set to a null-value. Blank for Strings, 0 for Floats, False for Booleans, etc. -
isReadOnly
default boolean isReadOnly()Returns TRUE if this variable is not writable. Typically, the value of this variable is specified by an outside condition, such as whether the character is currently falling, etc. -
setReadOnly
default boolean setReadOnly(boolean var1) -
getHandle
-
getDescription
-