bn::sprite_affine_mat_vertical_flip_toggle_action class

Toggles if a sprite_affine_mat_ptr must be flipped in the vertical axis or not when the action is updated a given number of times.

Base classes

template<typename Value, class PropertyManager>
class bool_toggle_value_template_action<sprite_affine_mat_ptr, sprite_affine_mat_vertical_flip_manager>
Toggles a boolean property of a value when the action is updated a given number of times.

Constructors, destructors, conversion operators

sprite_affine_mat_vertical_flip_toggle_action(const sprite_affine_mat_ptr& affine_mat, int duration_updates)
Constructor.
sprite_affine_mat_vertical_flip_toggle_action(sprite_affine_mat_ptr&& affine_mat, int duration_updates)
Constructor.

Public functions

auto affine_mat() const -> const sprite_affine_mat_ptr&
Returns the sprite_affine_mat_ptr to modify.

Function documentation

bn::sprite_affine_mat_vertical_flip_toggle_action::sprite_affine_mat_vertical_flip_toggle_action(const sprite_affine_mat_ptr& affine_mat, int duration_updates)

Constructor.

Parameters
affine_mat sprite_affine_mat_ptr to copy.
duration_updates How much times the action has to be updated to toggle if the given sprite_affine_mat_ptr must be flipped in the vertical axis or not.

bn::sprite_affine_mat_vertical_flip_toggle_action::sprite_affine_mat_vertical_flip_toggle_action(sprite_affine_mat_ptr&& affine_mat, int duration_updates)

Constructor.

Parameters
affine_mat sprite_affine_mat_ptr to move.
duration_updates How much times the action has to be updated to toggle if the given sprite_affine_mat_ptr must be flipped in the vertical axis or not.