class
#include <bn_sprite_actions.h>
sprite_move_by_action Modifies the position of a sprite_
Base classes
-
template<typename Value, typename Property, class PropertyManager>class by_value_template_action<sprite_ptr, fixed_point, sprite_position_manager>
- Modifies the property of a value by a given delta.
Constructors, destructors, conversion operators
-
sprite_move_by_action(const sprite_
ptr& sprite, fixed delta_x, fixed delta_y) - Constructor.
-
sprite_move_by_action(sprite_
ptr&& sprite, fixed delta_x, fixed delta_y) - Constructor.
-
sprite_move_by_action(const sprite_
ptr& sprite, const fixed_ point& delta_position) - Constructor.
-
sprite_move_by_action(sprite_
ptr&& sprite, const fixed_ point& delta_position) - Constructor.
Public functions
-
auto sprite() const -> const sprite_
ptr& - Returns the sprite_
ptr to modify. -
auto delta_position() const -> const fixed_
point& - Returns how much to add to the position of the given sprite_
ptr when the action is updated.
Function documentation
bn:: sprite_move_by_action:: sprite_move_by_action(const sprite_ ptr& sprite,
fixed delta_x,
fixed delta_y)
Constructor.
Parameters | |
---|---|
sprite | sprite_ |
delta_x | How much to add to the horizontal position of the given sprite_ |
delta_y | How much to add to the horizontal position of the given sprite_ |
bn:: sprite_move_by_action:: sprite_move_by_action(sprite_ ptr&& sprite,
fixed delta_x,
fixed delta_y)
Constructor.
Parameters | |
---|---|
sprite | sprite_ |
delta_x | How much to add to the horizontal position of the given sprite_ |
delta_y | How much to add to the horizontal position of the given sprite_ |
bn:: sprite_move_by_action:: sprite_move_by_action(const sprite_ ptr& sprite,
const fixed_ point& delta_position)
Constructor.
Parameters | |
---|---|
sprite | sprite_ |
delta_position | How much to add to the position of the given sprite_ |
bn:: sprite_move_by_action:: sprite_move_by_action(sprite_ ptr&& sprite,
const fixed_ point& delta_position)
Constructor.
Parameters | |
---|---|
sprite | sprite_ |
delta_position | How much to add to the position of the given sprite_ |