class
#include <bn_sprite_actions.h>
sprite_window_toggle_action Toggles if a sprite_
Base classes
-
template<typename Value, class PropertyManager>class bool_toggle_value_template_action<sprite_ptr, sprite_window_manager>
- Toggles a boolean property of a value when the action is updated a given number of times.
Constructors, destructors, conversion operators
-
sprite_window_toggle_action(const sprite_
ptr& sprite, int duration_updates) - Constructor.
-
sprite_window_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_window_toggle_action:: sprite_window_toggle_action(const sprite_ ptr& sprite,
int duration_updates)
Constructor.
Parameters | |
---|---|
sprite | sprite_ |
duration_updates | How much times the action has to be updated to toggle if the given sprite_ |
bn:: sprite_window_toggle_action:: sprite_window_toggle_action(sprite_ ptr&& sprite,
int duration_updates)
Constructor.
Parameters | |
---|---|
sprite | sprite_ |
duration_updates | How much times the action has to be updated to toggle if the given sprite_ |