class
#include <bn_sprite_palette_actions.h>
sprite_palette_rotate_loop_action Modifies the number of colors to rotate to the right in a sprite_
Base classes
-
template<typename Value, typename Property, class PropertyManager>class loop_value_template_action<sprite_palette_ptr, int, sprite_palette_rotate_manager>
- Modifies the property of a value by delta from a minimum to a maximum. When the property is equal to the given final state, it goes back to its initial state and vice versa.
Constructors, destructors, conversion operators
-
sprite_palette_rotate_loop_action(const sprite_
palette_ ptr& palette, int duration_updates, int final_count) - Constructor.
-
sprite_palette_rotate_loop_action(sprite_
palette_ ptr&& palette, int duration_updates, int final_count) - Constructor.
Public functions
-
auto palette() const -> const sprite_
palette_ ptr& - Returns the sprite_
palette_ ptr to modify. - auto final_count() const -> int
- When the number of colors to rotate to the right is equal to the returned parameter, it goes back to its initial state and vice versa.
Function documentation
bn:: sprite_palette_rotate_loop_action:: sprite_palette_rotate_loop_action(const sprite_ palette_ ptr& palette,
int duration_updates,
int final_count)
Constructor.
Parameters | |
---|---|
palette | sprite_ |
duration_updates | How many times the action has to be updated before changing the direction of the number of colors to rotate delta. |
final_count | When the the number of colors to rotate to the right is equal to this parameter, it goes back to its initial state and vice versa. |
This count must be in the range [1 - rotate_range_size() .. rotate_range_size() - 1].
bn:: sprite_palette_rotate_loop_action:: sprite_palette_rotate_loop_action(sprite_ palette_ ptr&& palette,
int duration_updates,
int final_count)
Constructor.
Parameters | |
---|---|
palette | sprite_ |
duration_updates | How many times the action has to be updated before changing the direction of the number of colors to rotate delta. |
final_count | When the the number of colors to rotate to the right is equal to this parameter, it goes back to its initial state and vice versa. |
This count must be in the range [1 - rotate_range_size() .. rotate_range_size() - 1].