Rebel Fork Framework
|
Finite time action state. More...
#include <Urho3D/Actions/FiniteTimeActionState.h>
Public Member Functions | |
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 | |
virtual void | Update (float time) |
Object * | GetTarget () const |
Object * | GetOriginalTarget () const |
Gets the original target. | |
BaseAction * | GetAction () 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. | |
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 | |
SharedPtr< FiniteTimeActionState > | StartAction (FiniteTimeAction *action, Object *target) const |
Call StartAction on an action. | |
Protected Member Functions inherited from Urho3D::Actions::ActionState | |
ActionState (BaseAction *action, Object *target) | |
SharedPtr< ActionState > | StartAction (BaseAction *action, Object *target) const |
Call StartAction on an action. | |
Private Attributes | |
float | duration_ {} |
float | elapsed_ {} |
bool | firstTick_ {true} |
Finite time action state.