public final class AnimationStateMachine extends java.lang.Object implements IAnimationStateMachine
| コンストラクタと説明 |
|---|
AnimationStateMachine(com.google.common.collect.ImmutableMap<java.lang.String,ITimeValue> parameters,
com.google.common.collect.ImmutableMap<java.lang.String,IClip> clips,
com.google.common.collect.ImmutableList<java.lang.String> states,
com.google.common.collect.ImmutableMultimap<java.lang.String,java.lang.String> transitions,
java.lang.String startState) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
org.apache.commons.lang3.tuple.Pair<IModelTransform,java.lang.Iterable<Event>> |
apply(float time)
Sample the state and events at the current time.
|
java.lang.String |
currentState()
Get current state name.
|
static AnimationStateMachine |
getMissing() |
static IAnimationStateMachine |
load(IResourceManager manager,
ResourceLocation location,
com.google.common.collect.ImmutableMap<java.lang.String,ITimeValue> customParameters)
Load a new instance if AnimationStateMachine at specified location, with specified custom parameters.
|
void |
shouldHandleSpecialEvents(boolean value)
Set to true if the machine should handle special events that come from the clips (they start with '!').
|
void |
transition(java.lang.String newState)
Transition to a new state.
|
public AnimationStateMachine(com.google.common.collect.ImmutableMap<java.lang.String,ITimeValue> parameters, com.google.common.collect.ImmutableMap<java.lang.String,IClip> clips, com.google.common.collect.ImmutableList<java.lang.String> states, com.google.common.collect.ImmutableMultimap<java.lang.String,java.lang.String> transitions, java.lang.String startState)
public org.apache.commons.lang3.tuple.Pair<IModelTransform,java.lang.Iterable<Event>> apply(float time)
IAnimationStateMachineapply インタフェース内 IAnimationStateMachinepublic void transition(java.lang.String newState)
IAnimationStateMachinetransition インタフェース内 IAnimationStateMachinepublic java.lang.String currentState()
IAnimationStateMachinecurrentState インタフェース内 IAnimationStateMachinepublic void shouldHandleSpecialEvents(boolean value)
IAnimationStateMachineshouldHandleSpecialEvents インタフェース内 IAnimationStateMachinepublic static IAnimationStateMachine load(IResourceManager manager, ResourceLocation location, com.google.common.collect.ImmutableMap<java.lang.String,ITimeValue> customParameters)
public static AnimationStateMachine getMissing()