CCIMXDesktop
 
Loading...
Searching...
No Matches
settings_figure.h File Reference

Defines configuration constants for figures like the dinosaur, cactus, and bird. More...

#include "settings/setting_scene.h"
#include "settings_common.h"

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.
 

Detailed Description

Defines configuration constants for figures like the dinosaur, cactus, and bird.

Function Documentation

◆ getHeight()

constexpr unsigned short Settings::Figure::getHeight ( const FigureSize fs)
inlineconstexprnoexcept

Gets the height from a FigureSize.

Parameters
fsThe FigureSize instance.
Returns
Height of the figure.

◆ getWidth()

constexpr unsigned short Settings::Figure::getWidth ( const FigureSize fs)
inlineconstexprnoexcept

Gets the width from a FigureSize.

Parameters
fsThe FigureSize instance.
Returns
Width of the figure.

◆ getX()

constexpr unsigned short Settings::Figure::getX ( const Position p)
inlineconstexprnoexcept

Gets the X coordinate from a Position.

Parameters
pThe Position instance.
Returns
X coordinate.

◆ getY()

constexpr unsigned short Settings::Figure::getY ( const Position p)
inlineconstexprnoexcept

Gets the Y coordinate from a Position.

Parameters
pThe Position instance.
Returns
Y coordinate.