class
#include <bn_sprite_palette_actions.h>
sprite_palette_inverted_toggle_action Toggles if the colors of a sprite_
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_ |
duration_updates | How much times the action has to be updated to toggle if the colors of the given sprite_ |
bn:: sprite_palette_inverted_toggle_action:: sprite_palette_inverted_toggle_action(sprite_ palette_ ptr&& palette,
int duration_updates)
Constructor.
Parameters | |
---|---|
palette | sprite_ |
duration_updates | How much times the action has to be updated to toggle if the colors of the given sprite_ |