Rebel Fork Framework
Urho3D::Actions::AttributeActionState Class Reference

Attribute action state. More...

#include <Urho3D/Actions/AttributeActionState.h>

Inheritance diagram for Urho3D::Actions::AttributeActionState:
Urho3D::Actions::FiniteTimeActionState Urho3D::Actions::ActionState Urho3D::RefCounted Urho3D::Actions::AttributeBlinkState Urho3D::Actions::SetAttributeState

Public Member Functions

 AttributeActionState (FiniteTimeAction *action, Object *target, AttributeInfo *attribute)
 Construct.
 
 ~AttributeActionState () override
 Destruct.
 
- Public Member Functions inherited from Urho3D::Actions::FiniteTimeActionState
 FiniteTimeActionState (FiniteTimeAction *action, Object *target)
 Construct.
 
 ~FiniteTimeActionState () override
 Destruct.
 
bool IsDone () const override
 Gets a value indicating whether this instance is done.
 
void Step (float dt) override
 Called every frame with it's delta time.
 
float GetDuration () const
 Get action duration.
 
float GetElapsed () const
 Get action elapsed time.
 
- Public Member Functions inherited from Urho3D::Actions::ActionState
ObjectGetTarget () const
 
ObjectGetOriginalTarget () const
 Gets the original target.
 
BaseActionGetAction () const
 Gets the action.
 
virtual void Stop ()
 
- Public Member Functions inherited from Urho3D::RefCounted
 RefCounted ()
 Construct. Allocate the reference count structure and set an initial self weak reference.
 
virtual ~RefCounted ()
 Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist.
 
 RefCounted (const RefCounted &rhs)=delete
 Prevent copy construction.
 
RefCountedoperator= (const RefCounted &rhs)=delete
 Prevent assignment.
 
int AddRef ()
 
int ReleaseRef ()
 
int Refs () const
 
int WeakRefs () const
 
RefCountRefCountPtr () const
 Return pointer to the reference count structure.
 
bool HasScriptObject () const
 Return true if script runtime object wrapping this native object exists.
 
bool IsScriptStrongRef () const
 Return true if script reference is strong.
 

Protected Member Functions

virtual void Update (float dt, Variant &value)
 Called every frame with it's delta time and attribute value.
 
void Get (Variant &value) const
 
void Set (const Variant &value)
 
template<typename T >
Get () const
 Get attribute value or default value.
 
- Protected Member Functions inherited from Urho3D::Actions::FiniteTimeActionState
SharedPtr< FiniteTimeActionStateStartAction (FiniteTimeAction *action, Object *target) const
 Call StartAction on an action.
 
- Protected Member Functions inherited from Urho3D::Actions::ActionState
 ActionState (BaseAction *action, Object *target)
 
SharedPtr< ActionStateStartAction (BaseAction *action, Object *target) const
 Call StartAction on an action.
 

Protected Attributes

AttributeInfoattribute_ {}
 

Private Member Functions

void Update (float dt) override
 

Detailed Description

Attribute action state.

Member Function Documentation

◆ Update()

void Urho3D::Actions::AttributeActionState::Update ( float  time)
overrideprivatevirtual

Called once per frame. Time value is between 0 and 1 For example: 0 means that the action just started 0.5 means that the action is in the middle 1 means that the action is over

Reimplemented from Urho3D::Actions::ActionState.


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