bn::sprite_palette_inverted_toggle_action class

Toggles if the colors of a sprite_palette_ptr must be inverted 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_palette_ptr, sprite_palette_inverted_manager>
Toggles a boolean property of a value when the action is updated a given number of times.

Constructors, destructors, conversion operators

sprite_palette_inverted_toggle_action(const sprite_palette_ptr& palette, int duration_updates)
Constructor.
sprite_palette_inverted_toggle_action(sprite_palette_ptr&& palette, int duration_updates)
Constructor.

Public functions

auto palette() const -> const sprite_palette_ptr&
Returns the sprite_palette_ptr to modify.

Function documentation

bn::sprite_palette_inverted_toggle_action::sprite_palette_inverted_toggle_action(const sprite_palette_ptr& palette, int duration_updates)

Constructor.

Parameters
palette sprite_palette_ptr to copy.
duration_updates How much times the action has to be updated to toggle if the colors of the given sprite_palette_ptr must be inverted or not.

bn::sprite_palette_inverted_toggle_action::sprite_palette_inverted_toggle_action(sprite_palette_ptr&& palette, int duration_updates)

Constructor.

Parameters
palette sprite_palette_ptr to move.
duration_updates How much times the action has to be updated to toggle if the colors of the given sprite_palette_ptr must be inverted or not.