class
#include <bn_sprite_palette_actions.h>
sprite_palette_rotate_by_action Modifies the number of colors to rotate to the right in a sprite_
Base classes
-
template<typename Value, typename Property, class PropertyManager>class cyclic_duration_by_value_template_action<sprite_palette_ptr, int, sprite_palette_rotate_manager>
- Modifies the property of a value by delta when the action is updated a given number of times. When the property is over the given maximum, it goes back to the given minimum and vice versa.
Constructors, destructors, conversion operators
-
sprite_palette_rotate_by_action(const sprite_
palette_ ptr& palette, int duration_updates, int delta_count) - Constructor.
-
sprite_palette_rotate_by_action(sprite_
palette_ ptr&& palette, int duration_updates, int delta_count) - Constructor.
Public functions
-
auto palette() const -> const sprite_
palette_ ptr& - Returns the sprite_
palette_ ptr to modify. - auto delta_count() const -> int
- Returns how many colors to add to the number of colors to rotate to the right when the action is updated the given number of times.
Function documentation
bn:: sprite_palette_rotate_by_action:: sprite_palette_rotate_by_action(const sprite_ palette_ ptr& palette,
int duration_updates,
int delta_count)
Constructor.
Parameters | |
---|---|
palette | sprite_ |
duration_updates | How many times the action has to be updated before updating the number of colors to rotate. |
delta_count | How many colors to add to the number of colors to rotate to the right when the action is updated duration_updates times. |
bn:: sprite_palette_rotate_by_action:: sprite_palette_rotate_by_action(sprite_ palette_ ptr&& palette,
int duration_updates,
int delta_count)
Constructor.
Parameters | |
---|---|
palette | sprite_ |
duration_updates | How many times the action has to be updated before updating the number of colors to rotate. |
delta_count | How many colors to add to the number of colors to rotate to the right when the action is updated duration_updates times. |