Class StructureAnimationRequest
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.structures.StructureAnimationRequest
Represents the principal way to submit a request to animate a structure.
To submit a new request, first create a new instance using
IAnimatedArchitecturePlatform.getStructureAnimationRequestBuilder().
Once the new request has been constructed, it can be submitted using execute().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe factory class forStructureAnimationRequestinstances. -
Constructor Summary
ConstructorsConstructorDescriptionStructureAnimationRequest(StructureRetriever structureRetriever, StructureActionCause cause, IMessageable messageReceiver, @Nullable IPlayer responsible, @Nullable Double time, boolean skipAnimation, boolean preventPerpetualMovement, StructureActionType actionType, AnimationType animationType, ILocalizer localizer, ITextFactory textFactory, StructureActivityManager structureActivityManager, IPlayerFactory playerFactory, IExecutor executor) -
Method Summary
-
Constructor Details
-
StructureAnimationRequest
@AssistedInject public StructureAnimationRequest(@Assisted StructureRetriever structureRetriever, @Assisted StructureActionCause cause, @Assisted IMessageable messageReceiver, @Assisted @Nullable @Nullable IPlayer responsible, @Assisted @Nullable @Nullable Double time, @Assisted("skipAnimation") boolean skipAnimation, @Assisted("preventPerpetualMovement") boolean preventPerpetualMovement, @Assisted StructureActionType actionType, @Assisted AnimationType animationType, ILocalizer localizer, ITextFactory textFactory, StructureActivityManager structureActivityManager, IPlayerFactory playerFactory, IExecutor executor)
-
-
Method Details
-
execute
Executes the toggle request.- Returns:
- The result of the request.
-
getLocalizer
-
getTextFactory
-
getStructureActivityManager
-
getPlayerFactory
-
getExecutor
-
toString
-
getStructureRetriever
-
getCause
-
getMessageReceiver
-
getResponsible
-
getTime
-
isSkipAnimation
public boolean isSkipAnimation() -
isPreventPerpetualMovement
public boolean isPreventPerpetualMovement() -
getActionType
-
getAnimationType
-