bn::sprite_visible_toggle_action class

Toggles if a sprite_ptr must be committed to the GBA 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_ptr, sprite_visible_manager>
Toggles a boolean property of a value when the action is updated a given number of times.

Constructors, destructors, conversion operators

sprite_visible_toggle_action(const sprite_ptr& sprite, int duration_updates)
Constructor.
sprite_visible_toggle_action(sprite_ptr&& sprite, int duration_updates)
Constructor.

Public functions

auto sprite() const -> const sprite_ptr&
Returns the sprite_ptr to modify.

Function documentation

bn::sprite_visible_toggle_action::sprite_visible_toggle_action(const sprite_ptr& sprite, int duration_updates)

Constructor.

Parameters
sprite sprite_ptr to copy.
duration_updates How much times the action has to be updated to toggle if the given sprite_ptr must be committed to the GBA or not.

bn::sprite_visible_toggle_action::sprite_visible_toggle_action(sprite_ptr&& sprite, int duration_updates)

Constructor.

Parameters
sprite sprite_ptr to move.
duration_updates How much times the action has to be updated to toggle if the given sprite_ptr must be committed to the GBA or not.