bn::sprites_mosaic_stretch_loop_action class

Modifies the stretch of the mosaic applied to the sprites from a minimum to a maximum. When the stretch is equal to the given final state, it goes back to its initial state and vice versa.

Base classes

template<typename Property, class PropertyManager>
class loop_template_action<fixed, sprites_mosaic_stretch_manager>
Modifies the property by delta from a minimum to a maximum. When the property is equal to the given final state, it goes back to its initial state and vice versa.

Constructors, destructors, conversion operators

sprites_mosaic_stretch_loop_action(int duration_updates, fixed final_stretch)
Constructor.

Public functions

auto final_stretch() const -> fixed
When the stretch is equal to the returned parameter, it goes back to its initial state and vice versa.

Function documentation

bn::sprites_mosaic_stretch_loop_action::sprites_mosaic_stretch_loop_action(int duration_updates, fixed final_stretch)

Constructor.

Parameters
duration_updates How much times the action has to be updated before changing the direction of the stretch delta.
final_stretch When the stretch is equal to this parameter, it goes back to its initial state and vice versa.

This stretch must be in the range [0..1].