Class AnimationVariableSlotCallbackBool
java.lang.Object
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallback<Boolean>
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallbackBool
- All Implemented Interfaces:
IAnimationVariableSlot
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Strong-typed utility type.static interface
Nested classes/interfaces inherited from class zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallback
AnimationVariableSlotCallback.CallbackGet<VariableType>, AnimationVariableSlotCallback.CallbackSet<VariableType>
-
Constructor Summary
ConstructorDescriptionAnimationVariableSlotCallbackBool
(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) AnimationVariableSlotCallbackBool
(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet) AnimationVariableSlotCallbackBool
(String key, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) AnimationVariableSlotCallbackBool
(String key, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvertFrom
(String val) Returns TRUE if this variable slot can accept and/or convert the supplied value object.getType()
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.void
setValue
(boolean val) Set this variable's valuevoid
setValue
(float val) Set this variable's valuevoid
Set this variable's valueMethods inherited from class zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallback
clear, getValue, isReadOnly, trySetValue
Methods inherited from class zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
getKey
-
Constructor Details
-
AnimationVariableSlotCallbackBool
public AnimationVariableSlotCallbackBool(String key, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) -
AnimationVariableSlotCallbackBool
public AnimationVariableSlotCallbackBool(String key, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet) -
AnimationVariableSlotCallbackBool
public AnimationVariableSlotCallbackBool(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) -
AnimationVariableSlotCallbackBool
public AnimationVariableSlotCallbackBool(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet)
-
-
Method Details
-
getDefaultValue
- Specified by:
getDefaultValue
in classAnimationVariableSlotCallback<Boolean>
-
getValueString
Description copied from interface:IAnimationVariableSlot
This variable's value, in String form. -
getValueFloat
public float getValueFloat()Description copied from interface:IAnimationVariableSlot
This variable's value, as a Float. -
getValueBool
public boolean getValueBool()Description copied from interface:IAnimationVariableSlot
This variable's value, as a Boolean. -
setValue
Description copied from interface:IAnimationVariableSlot
Set this variable's value -
setValue
public void setValue(float val) Description copied from interface:IAnimationVariableSlot
Set this variable's value -
setValue
public void setValue(boolean val) Description copied from interface:IAnimationVariableSlot
Set this variable's value -
getType
Description copied from interface:IAnimationVariableSlot
This variable's value type -
canConvertFrom
Description copied from interface:IAnimationVariableSlot
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.
-