Rebel Fork Framework
|
Attribute action state. More...
#include <Urho3D/Actions/AttributeActionState.h>
Public Member Functions | |
AttributeActionState (FiniteTimeAction *action, Object *target, AttributeInfo *attribute) | |
Construct. | |
~AttributeActionState () override | |
Destruct. | |
![]() | |
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. | |
![]() | |
Object * | GetTarget () const |
Object * | GetOriginalTarget () const |
Gets the original target. | |
BaseAction * | GetAction () const |
Gets the action. | |
virtual void | Stop () |
![]() | |
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. | |
RefCounted & | operator= (const RefCounted &rhs)=delete |
Prevent assignment. | |
int | AddRef () |
int | ReleaseRef () |
int | Refs () const |
int | WeakRefs () const |
RefCount * | RefCountPtr () 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 > | |
T | Get () const |
Get attribute value or default value. | |
![]() | |
SharedPtr< FiniteTimeActionState > | StartAction (FiniteTimeAction *action, Object *target) const |
Call StartAction on an action. | |
![]() | |
ActionState (BaseAction *action, Object *target) | |
SharedPtr< ActionState > | StartAction (BaseAction *action, Object *target) const |
Call StartAction on an action. | |
Protected Attributes | |
AttributeInfo * | attribute_ {} |
Private Member Functions | |
void | Update (float dt) override |
Attribute action state.
|
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.