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