Defines configuration constants for figures like the dinosaur, cactus, and bird. More...
Go to the source code of this file.
Classes | |
struct | Settings::Figure::FigureSize |
Represents the width and height of a figure. More... | |
struct | Settings::Figure::Position |
Represents a 2D position with x and y coordinates. More... | |
Namespaces | |
namespace | Dinasour |
Configuration constants related to the dinosaur figure. | |
namespace | Obstacle |
General configuration for obstacles. | |
namespace | Cactus |
Configuration constants for cactus obstacles. | |
namespace | Bird |
Configuration constants for bird obstacles. | |
Functions | |
constexpr unsigned short | Settings::Figure::getWidth (const FigureSize &fs) noexcept |
Gets the width from a FigureSize. | |
constexpr unsigned short | Settings::Figure::getHeight (const FigureSize &fs) noexcept |
Gets the height from a FigureSize. | |
constexpr unsigned short | Settings::Figure::getX (const Position &p) noexcept |
Gets the X coordinate from a Position. | |
constexpr unsigned short | Settings::Figure::getY (const Position &p) noexcept |
Gets the Y coordinate from a Position. | |
Defines configuration constants for figures like the dinosaur, cactus, and bird.
|
inlineconstexprnoexcept |
Gets the height from a FigureSize.
fs | The FigureSize instance. |
|
inlineconstexprnoexcept |
Gets the width from a FigureSize.
fs | The FigureSize instance. |
|
inlineconstexprnoexcept |
Gets the X coordinate from a Position.
p | The Position instance. |
|
inlineconstexprnoexcept |
Gets the Y coordinate from a Position.
p | The Position instance. |