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 TypeMethodDescriptionboolean
canConvertFrom
(String val) Returns TRUE if this variable slot can accept and/or convert the supplied value object.void
clear()
Clear this variable, its value is set to a null-value.default <EnumType extends Enum<EnumType>>
EnumTypegetEnumValue
(EnumType _enum) default AnimationVariableHandle
getKey()
This variable's unique keygetType()
This variable's value typeboolean
This variable's value, as a Boolean.float
This variable's value, as a Float.This variable's value, in String form.default boolean
Returns TRUE if this variable is not writable.default <EnumType extends Enum<EnumType>>
voidsetEnumValue
(EnumType _enum) default boolean
setReadOnly
(boolean var1) void
setValue
(boolean val) Set this variable's valuevoid
setValue
(float val) Set this variable's valuevoid
Set 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
-