bn::sound_speed_to_action class

Modifies the speed of a sound effect until it has a given state.

Base classes

template<typename Value, typename Property, class PropertyManager>
class to_value_template_action<sound_handle, fixed, sound_speed_manager>
Modifies the property of a value until it has a given state.

Constructors, destructors, conversion operators

sound_speed_to_action(sound_handle handle, int duration_updates, fixed final_speed)
Constructor.

Public functions

auto handle() const -> sound_handle
Returns the sound_handle to modify.
auto final_speed() const -> fixed
Returns the speed of the given sound_handle when the action is updated the given number of times.

Function documentation

bn::sound_speed_to_action::sound_speed_to_action(sound_handle handle, int duration_updates, fixed final_speed)

Constructor.

Parameters
handle sound_handle to modify.
duration_updates Number of times that the action must be updated until the speed of the given sound_handle is equal to final_speed.
final_speed Speed when the action is updated duration_updates times.