|
Unravel Engine C++ Reference
|
Provides internal utilities for managing seq_action objects. These methods allow for direct control over actions' state, progression, and other properties.
More...
#include <seq_private.h>
Static Public Member Functions | |
| static void | start (seq_action &action) |
| Starts a given action. | |
| static void | stop (seq_action &action) |
| Stops a given action. | |
| static void | stop_and_finished (seq_action &action) |
| Marks a given action as stopped and finished. | |
| static void | stop_when_finished (seq_action &action) |
| Marks a given action to stop when finished. | |
| static void | resume (seq_action &action, bool force=false) |
| Resumes a given action, optionally forcing the resume. | |
| static void | resume (seq_action &action, const std::string &key) |
| Resumes a given action with a specific key. | |
| static void | pause (seq_action &action) |
| Pauses a given action. | |
| static void | pause (seq_action &action, const std::string &key) |
| Pauses a given action with a specific key. | |
| static void | pause_forced (seq_action &action) |
| Forcibly pauses a given action. | |
| static void | pause_forced (seq_action &action, const std::string &key) |
| Forcibly pauses a given action with a specific key. | |
| static void | set_speed_multiplier (seq_action &action, float speed_multiplier) |
| Sets the speed multiplier for a given action. | |
| static auto | get_speed_multiplier (const seq_action &action) -> float |
| Gets the speed multiplier of a given action. | |
| static auto | get_state (const seq_action &action) -> state_t |
| Gets the current state of a given action. | |
| static auto | is_stop_when_finished_requested (const seq_action &action) -> bool |
| Checks if the action is requested to stop when finished. | |
| static auto | is_stop_and_finished_requested (const seq_action &action) -> bool |
| Checks if the action is requested to stop and finish. | |
| static auto | is_running (const seq_action &action) -> bool |
| Checks if the action is currently running. | |
| static auto | is_paused (const seq_action &action) -> bool |
| Checks if the action is currently paused. | |
| static auto | is_finished (const seq_action &action) -> bool |
| Checks if the action is finished. | |
| static auto | update (seq_action &action, duration_t delta) -> state_t |
| Updates a given action with a time delta. | |
| static void | set_elapsed (seq_action &self, duration_t elapsed) |
| Sets the elapsed time of a given action. | |
| static void | update_elapsed (seq_action &self, duration_t update_time) |
| Updates the elapsed time of a given action. | |
| static auto | get_elapsed (const seq_action &self) -> duration_t |
| Gets the elapsed time of a given action. | |
| static auto | get_duration (const seq_action &self) -> duration_t |
| Gets the total duration of a given action. | |
| static auto | get_overflow (const seq_action &self) -> duration_t |
| Computes the overflow duration of a given action if it exceeds its total duration. | |
Provides internal utilities for managing seq_action objects. These methods allow for direct control over actions' state, progression, and other properties.
Definition at line 16 of file seq_private.h.
|
inlinestatic |
Gets the total duration of a given action.
| self | The action to query. |
Definition at line 240 of file seq_private.h.
|
inlinestatic |
Gets the elapsed time of a given action.
| self | The action to query. |
Definition at line 230 of file seq_private.h.
|
inlinestatic |
Computes the overflow duration of a given action if it exceeds its total duration.
| self | The action to query. |
Definition at line 250 of file seq_private.h.
|
inlinestatic |
Gets the speed multiplier of a given action.
| action | The action to query. |
Definition at line 129 of file seq_private.h.
|
inlinestatic |
Gets the current state of a given action.
| action | The action to query. |
Definition at line 139 of file seq_private.h.
|
inlinestatic |
Checks if the action is finished.
| action | The action to query. |
Definition at line 189 of file seq_private.h.
|
inlinestatic |
Checks if the action is currently paused.
| action | The action to query. |
Definition at line 179 of file seq_private.h.
|
inlinestatic |
Checks if the action is currently running.
| action | The action to query. |
Definition at line 169 of file seq_private.h.
|
inlinestatic |
Checks if the action is requested to stop and finish.
| action | The action to query. |
Definition at line 159 of file seq_private.h.
|
inlinestatic |
Checks if the action is requested to stop when finished.
| action | The action to query. |
Definition at line 149 of file seq_private.h.
|
inlinestatic |
Pauses a given action.
| action | The action to pause. |
Definition at line 78 of file seq_private.h.
|
inlinestatic |
Pauses a given action with a specific key.
| action | The action to pause. |
| key | The key associated with the action. |
Definition at line 88 of file seq_private.h.
|
inlinestatic |
Forcibly pauses a given action.
| action | The action to forcibly pause. |
Definition at line 97 of file seq_private.h.
|
inlinestatic |
Forcibly pauses a given action with a specific key.
| action | The action to forcibly pause. |
| key | The key associated with the action. |
Definition at line 107 of file seq_private.h.
|
inlinestatic |
Resumes a given action, optionally forcing the resume.
| action | The action to resume. |
| force | If true, forces the action to resume (default is false). |
Definition at line 59 of file seq_private.h.
|
inlinestatic |
Resumes a given action with a specific key.
| action | The action to resume. |
| key | The key associated with the action. |
Definition at line 69 of file seq_private.h.
|
inlinestatic |
Sets the elapsed time of a given action.
| self | The action to modify. |
| elapsed | The elapsed time to set. |
Definition at line 210 of file seq_private.h.
|
inlinestatic |
Sets the speed multiplier for a given action.
| action | The action to modify. |
| speed_multiplier | The speed multiplier to set (clamped between 0.0f and 100.0f). |
Definition at line 117 of file seq_private.h.
|
inlinestatic |
Starts a given action.
| action | The action to start. |
Definition at line 22 of file seq_private.h.
|
inlinestatic |
Stops a given action.
| action | The action to stop. |
Definition at line 31 of file seq_private.h.
|
inlinestatic |
Marks a given action as stopped and finished.
| action | The action to mark. |
Definition at line 40 of file seq_private.h.
|
inlinestatic |
Marks a given action to stop when finished.
| action | The action to mark. |
Definition at line 49 of file seq_private.h.
|
inlinestatic |
Updates a given action with a time delta.
| action | The action to update. |
| delta | The time delta to apply. |
Definition at line 200 of file seq_private.h.
|
inlinestatic |
Updates the elapsed time of a given action.
| self | The action to modify. |
| update_time | The time to add to the elapsed duration. |
Definition at line 220 of file seq_private.h.