|
| | WaitForDurationAction (real32 seconds) |
| | Create an action that idles for a specified period of time.
|
| virtual std::unique_ptr< IActionObject > | clone () const override |
| | Create a deep copy instance of the action.
|
| virtual IActionObject::FrameState | next_frame (real32 delta_time) override |
| | Play the action forward in time by one time step.
|
| virtual IActionObject::FrameState | prev_frame (real32 delta_time) override |
| | Play the action backwards in time by one time step.
|
| virtual void | pause (real32 delta_time) override |
| | Freeze the action's internal state.
|
| virtual void | resume (real32 delta_time) override |
| | Resume the internal state of the action.
|
| virtual void | rewind (real32 delta_time) override |
| | Reset the internal state of the action back to its initial starting values.
|
| virtual void | release () override |
| | Free externally referenced resources held by the action.
|
|
const std::string & | name () const |
| | Get the unique identifier of the action.
|
| real32 | duration () const |
| | Get the duration of the action.
|
| real32 | speed () const |
| | Get the speed modifier of the action.
|
| const IActionObject::timing_curve_func & | timing_curve () const |
| | Get the timing mode function used by the action.
|
|
void | set_name (const std::string &action_id) |
| | Set the unique identifier of the action.
|
| virtual void | set_speed (real32 speed) |
| | Set the speed factor of the action.
|
| virtual void | set_timing_curve (const IActionObject::timing_curve_func &mode) |
| | Set the timing mode of the action.
|
|
| IActionObject::FrameState | status () const |
| | Get the current state of the action.
|
| void | set_duration (real32 seconds) |
| | Set the duration of the action.
|
| void | set_status (FrameState state) |
| | Set the state of the action.
|
| real32 | elapsed_frames_ = 0.0f |
| | Internal frames counter.
|
| Timer | timer_ |
| | Internal time clock (milliseconds resolution).
|
| typedef std::vector< std::shared_ptr< IActionObject > > | action_list |
| | A collection of actions.
|
| template<typename ObjectType, typename... ObjectArgs> |
| NOM_EXPORT std::shared_ptr< ObjectType > | create_action (ObjectArgs &&... args) |
| | Constructor function for creating an action.
|
| template<typename ObjectType> |
| NOM_EXPORT std::shared_ptr< ObjectType > | create_action (const action_list &actions) |
| | Constructor function for creating an action that uses a collection of actions.
|
Create an action that idles for a specified period of time.
When the action executes, the action waits for the specified amount of time, then ends. This is typically used as part of a sequence of actions to insert a delay between two other actions. You might also use it in conjunction with nom::ActionPlayer::run_action(action, completion_func) to trigger logic that needs to run at a later time.
Definition at line 41 of file WaitForDurationAction.hpp.