Rebel Fork Framework
Urho3D::ActionBuilder Class Reference

Action as resource. More...

#include <Urho3D/Actions/ActionBuilder.h>

Public Member Functions

 ActionBuilder (Context *context)
 Construct.
 
ActionBuilderThen (const SharedPtr< Actions::FiniteTimeAction > &nextAction)
 Continue with provided action.
 
ActionBuilderAlso (const SharedPtr< Actions::FiniteTimeAction > &parallelAction)
 Run action in parallel to current one.
 
ActionBuilderMoveBy (float duration, const Vector3 &offset, ea::string_view attributeName=Actions::POSITION_ATTRIBUTE)
 Continue with MoveBy action. More...
 
ActionBuilderMoveBy (float duration, const Vector2 &offset, ea::string_view attributeName=Actions::POSITION_ATTRIBUTE)
 Continue with MoveBy action.
 
ActionBuilderMoveByQuadratic (float duration, const Vector3 &controlOffset, const Vector3 &targetOffset, ea::string_view attributeName=Actions::POSITION_ATTRIBUTE)
 Continue with MoveBy action with quad . More...
 
ActionBuilderMoveByQuadratic (float duration, const Vector2 &controlOffset, const Vector2 &targetOffset, ea::string_view attributeName=Actions::POSITION_ATTRIBUTE)
 Continue with MoveBy action.
 
ActionBuilderJumpBy (const Vector3 &offset, ea::string_view attributeName=Actions::POSITION_ATTRIBUTE)
 Continue with JumpBy action.
 
ActionBuilderJumpBy (const Vector2 &offset, ea::string_view attributeName=Actions::POSITION_ATTRIBUTE)
 Continue with MoveBy action.
 
ActionBuilderScaleBy (float duration, const Vector3 &delta, ea::string_view attributeName=Actions::SCALE_ATTRIBUTE)
 Continue with ScaleBy action.
 
ActionBuilderScaleBy (float duration, const Vector2 &delta, ea::string_view attributeName=Actions::SCALE_ATTRIBUTE)
 Continue with ScaleBy action.
 
ActionBuilderRotateBy (float duration, const Quaternion &delta, ea::string_view attributeName=Actions::ROTATION_ATTRIBUTE)
 Continue with RotateBy action.
 
ActionBuilderRotateAround (float duration, const Vector3 &pivot, const Quaternion &delta)
 Continue with RotateAround action.
 
ActionBuilderHide (ea::string_view attributeName=Actions::ISVISIBLE_ATTRIBUTE)
 Continue with Hide action.
 
ActionBuilderShow (ea::string_view attributeName=Actions::ISVISIBLE_ATTRIBUTE)
 Continue with Show action.
 
ActionBuilderEnable (ea::string_view attributeName=Actions::ISENABLED_ATTRIBUTE)
 Continue with Enable action.
 
ActionBuilderDisable (ea::string_view attributeName=Actions::ISENABLED_ATTRIBUTE)
 Continue with Disable action.
 
ActionBuilderBlink (float duration, unsigned numOfBlinks, ea::string_view attributeName=Actions::ISENABLED_ATTRIBUTE)
 Continue with AttributeBlink action.
 
ActionBuilderAttributeTo (float duration, ea::string_view attributeName, const Variant &to)
 Continue with AttributeTo action.
 
ActionBuilderAttributeFromTo (float duration, ea::string_view attributeName, const Variant &from, const Variant &to)
 Continue with AttributeFromTo action.
 
ActionBuilderShaderParameterTo (float duration, ea::string_view parameter, const Variant &to)
 Continue with ShaderParameterTo action.
 
ActionBuilderShaderParameterFromTo (float duration, ea::string_view parameter, const Variant &from, const Variant &to)
 Continue with ShaderParameterFromTo action.
 
ActionBuilderSendEvent (ea::string_view eventType, const StringVariantMap &data)
 Continue with SendEvent action.
 
ActionBuilderCallFunc (Actions::ActionCallHandler *handler)
 Continue with CallFunc action.
 
template<typename T >
ActionBuilderCallFunc (T *receiver, typename Actions::ActionCallHandlerImpl< T >::HandlerFunctionPtr func, void *userData=nullptr)
 Continue with CallFunc action.
 
ActionBuilderBackIn ()
 Combine with BackIn action.
 
ActionBuilderBackOut ()
 Combine with BackOut action.
 
ActionBuilderBackInOut ()
 Combine with BackInOut action.
 
ActionBuilderBounceOut ()
 Combine with BounceOut action.
 
ActionBuilderBounceIn ()
 Combine with BounceIn action.
 
ActionBuilderBounceInOut ()
 Combine with BounceInOut action.
 
ActionBuilderSineOut ()
 Combine with SineOut action.
 
ActionBuilderSineIn ()
 Combine with SineIn action.
 
ActionBuilderSineInOut ()
 Combine with SineInOut action.
 
ActionBuilderExponentialOut ()
 Combine with ExponentialOut action.
 
ActionBuilderExponentialIn ()
 Combine with ExponentialIn action.
 
ActionBuilderExponentialInOut ()
 Combine with ExponentialInOut action.
 
ActionBuilderElasticIn (float period=0.3f)
 Combine with ElasticIn action.
 
ActionBuilderElasticOut (float period=0.3f)
 Combine with ElasticOut action.
 
ActionBuilderElasticInOut (float period=0.3f)
 Combine with ElasticInOut action.
 
ActionBuilderRemoveSelf ()
 Combine with RemoveSelf action.
 
ActionBuilderDelayTime (float duration)
 Combine with DelayTime action.
 
ActionBuilderRepeat (unsigned times)
 Repeat current action.
 
ActionBuilderRepeatForever ()
 Repeat current action forever (until canceled).
 
SharedPtr< Actions::FiniteTimeActionBuild ()
 Complete action building and produce result.
 
Actions::ActionStateRun (Object *target) const
 
Actions::ActionStateRun (ActionManager *actionManager, Object *target) const
 

Private Attributes

Contextcontext_ {}
 Urho3D context.
 
SharedPtr< Actions::FiniteTimeActionaction_
 Action on top of stack (current).
 

Detailed Description

Action as resource.

Member Function Documentation

◆ MoveBy()

ActionBuilder & Urho3D::ActionBuilder::MoveBy ( float  duration,
const Vector3 offset,
ea::string_view  attributeName = Actions::POSITION_ATTRIBUTE 
)

Continue with MoveBy action.

Build MoveBy action.

◆ MoveByQuadratic()

ActionBuilder & Urho3D::ActionBuilder::MoveByQuadratic ( float  duration,
const Vector3 controlOffset,
const Vector3 targetOffset,
ea::string_view  attributeName = Actions::POSITION_ATTRIBUTE 
)

Continue with MoveBy action with quad .

Build MoveBy action.

◆ Run() [1/2]

Actions::ActionState * Urho3D::ActionBuilder::Run ( ActionManager actionManager,
Object target 
) const

Run current action on object via action manager. Use Build() instead of Run() if you run the action more than once to reduce allocations.

◆ Run() [2/2]

Actions::ActionState * Urho3D::ActionBuilder::Run ( Object target) const

Run current action on object. Use Build() instead of Run() if you run the action more than once to reduce allocations.


The documentation for this class was generated from the following files: