class
#include <bn_regular_bg_animate_actions.h>
iregular_bg_cached_animate_action Base class of bn::
Can be used as a reference type for all bn::
Derived classes
-
template<int MaxSize>class regular_bg_cached_animate_action
- Changes the map of a regular_
bg_ ptr when the action is updated a given number of times.
Public functions
-
auto operator=(const iregular_
bg_ cached_ animate_ action& other) -> iregular_ bg_ cached_ animate_ action& - Copy assignment operator.
-
auto operator=(iregular_
bg_ cached_ animate_ action&& other) -> iregular_ bg_ cached_ animate_ action& noexcept - Move assignment operator.
- void update()
- Changes the map of the given regular_
bg_ ptr when the given amount of update calls are done. - auto done() const -> bool
- Indicates if the action must not be updated anymore.
- void reset()
- Resets the action to its initial state.
-
auto regular_bg() const -> const regular_
bg_ ptr& - Returns the regular_
bg_ ptr to modify. - auto wait_updates() const -> int
- Returns the number of times the action must be updated before changing the map of the given regular_
bg_ ptr. - void set_wait_updates(int wait_updates)
- Sets the number of times the action must be updated before changing the map of the given regular_
bg_ ptr. - auto next_change_updates() const -> int
- Returns the number of times the action must be updated before the next map change.
-
auto maps() const -> const ivector<regular_
bg_ map_ ptr>& - Returns the maps to use by the given regular_
bg_ ptr. - auto update_forever() const -> bool
- Indicates if the action can be updated forever or not.
- auto current_index() const -> int
- Returns the current index of the given maps.
Function documentation
iregular_ bg_ cached_ animate_ action& bn:: iregular_bg_cached_animate_action:: operator=(const iregular_ bg_ cached_ animate_ action& other)
Copy assignment operator.
Parameters | |
---|---|
other | iregular_ |
Returns | Reference to this. |
iregular_ bg_ cached_ animate_ action& bn:: iregular_bg_cached_animate_action:: operator=(iregular_ bg_ cached_ animate_ action&& other) noexcept
Move assignment operator.
Parameters | |
---|---|
other | iregular_ |
Returns | Reference to this. |