Class AbstractAnimationVariableSlotEnum<EnumType extends Enum<EnumType>>
java.lang.Object
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
zombie.core.skinnedmodel.advancedanimation.AbstractAnimationVariableSlotEnum<EnumType>
- All Implemented Interfaces:
IAnimationVariableSlot
- Direct Known Subclasses:
AnimationVariableSlotCallbackEnum, AnimationVariableSlotEnum
public abstract class AbstractAnimationVariableSlotEnum<EnumType extends Enum<EnumType>>
extends AnimationVariableSlot
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractAnimationVariableSlotEnum(Class<EnumType> enumTypeClass, String key, EnumType in_defaultVal, IAnimationVariableSlotDescriptor descriptor) -
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.<E extends Enum<E>>
EgetEnumValue(E in_defaultVal) getType()This variable's value typeabstract EnumTypegetValue()booleanThis variable's value, as a Boolean.floatThis variable's value, as a Float.This variable's value, in String form.<E extends Enum<E>>
voidsetEnumValue(E in_val) voidsetValue(boolean val) Set this variable's valuevoidsetValue(float val) Set this variable's valueabstract voidvoidSet this variable's valueMethods inherited from class AnimationVariableSlot
getDescription, getKeyMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAnimationVariableSlot
getHandle, isReadOnly, setReadOnly
-
Constructor Details
-
AbstractAnimationVariableSlotEnum
public AbstractAnimationVariableSlotEnum(Class<EnumType> enumTypeClass, String key, EnumType in_defaultVal, IAnimationVariableSlotDescriptor descriptor)
-
-
Method Details
-
getEnumTypeClass
-
getValue
-
setValue
-
getEnumValue
-
setEnumValue
-
getValueString
Description copied from interface:IAnimationVariableSlotThis variable's value, in String form. -
getValueFloat
public float getValueFloat()Description copied from interface:IAnimationVariableSlotThis variable's value, as a Float. -
getValueBool
public boolean getValueBool()Description copied from interface:IAnimationVariableSlotThis variable's value, as a Boolean. -
getDefaultValue
-
setValue
Description copied from interface:IAnimationVariableSlotSet this variable's value -
setValue
public void setValue(float val) Description copied from interface:IAnimationVariableSlotSet this variable's value -
setValue
public void setValue(boolean val) Description copied from interface:IAnimationVariableSlotSet this variable's value -
getType
Description copied from interface:IAnimationVariableSlotThis variable's value type -
canConvertFrom
Description copied from interface:IAnimationVariableSlotReturns 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
public void clear()Description copied from interface:IAnimationVariableSlotClear this variable, its value is set to a null-value. Blank for Strings, 0 for Floats, False for Booleans, etc.
-