class
#include <bn_regular_bg_map_cell_info.h>
regular_bg_map_cell_info Manages the properties of a regular background map cell.
Constructors, destructors, conversion operators
- regular_bg_map_cell_info() defaulted constexpr
- Default constructor.
-
regular_bg_map_cell_info(regular_
bg_ map_ cell cell) explicit constexpr - Constructor.
Public functions
-
auto cell() const -> regular_
bg_ map_ cell constexpr - Returns the managed regular_bg_map_cell.
-
void set_cell(regular_
bg_ map_ cell cell) constexpr - Sets the managed regular_bg_map_cell.
- auto tile_index() const -> int constexpr
- Returns the referenced tile index.
- void set_tile_index(int tile_index) constexpr
- Sets the referenced tile index.
- auto palette_id() const -> int constexpr
- Returns the referenced palette id.
- void set_palette_id(int palette_id) constexpr
- Sets the referenced palette id.
- auto horizontal_flip() const -> bool
- Indicates if the managed cell is flipped in the horizontal axis or not.
- void set_horizontal_flip(bool horizontal_flip)
- Sets if the managed cell is flipped in the horizontal axis or not.
- auto vertical_flip() const -> bool
- Indicates if the managed cell is flipped in the vertical axis or not.
- void set_vertical_flip(bool vertical_flip)
- Sets if the managed cell is flipped in the vertical axis or not.
Friends
-
auto operator==(regular_
bg_ map_ cell_ info a, regular_ bg_ map_ cell_ info b) -> bool - Equal operator.
-
auto operator!=(regular_
bg_ map_ cell_ info a, regular_ bg_ map_ cell_ info b) -> bool - Not equal operator.
Function documentation
bn:: regular_bg_map_cell_info:: regular_bg_map_cell_info(regular_ bg_ map_ cell cell) explicit constexpr
Constructor.
Parameters | |
---|---|
cell | Managed regular_bg_map_cell. |
bool operator==(regular_ bg_ map_ cell_ info a,
regular_ bg_ map_ cell_ info b)
Equal operator.
Parameters | |
---|---|
a | First regular_ |
b | Second regular_ |
Returns | true if the first managed cell is equal to the second one, otherwise false . |
bool operator!=(regular_ bg_ map_ cell_ info a,
regular_ bg_ map_ cell_ info b)
Not equal operator.
Parameters | |
---|---|
a | First regular_ |
b | Second regular_ |
Returns | true if the first managed cell is not equal to the second one, otherwise false . |