Interface StateOwner
- All Known Implementing Classes:
AbstractTwoStateLerpTransition
,AnimationLayer
,FadeTransitionState
,FrozenTransitionState
,SyncFadeTransitionState
public interface StateOwner
Describes a class that holds onto and directly utilizes an AnimationState. This interface is meant to act as a
callback so that states can properly handle certain types of transitions such as end transitions - setting new states
into the correct place in the later/state hierarchy.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
replaceState
(AbstractFiniteState currentState, AbstractFiniteState newState) Replace the given current state with the given new state
-
Method Details
-
replaceState
Replace the given current state with the given new state- Parameters:
currentState
- the state to replacenewState
- the state to replace it with.
-