6#ifndef GROUNDLINEPROVIDERS_H
7#define GROUNDLINEPROVIDERS_H
64 void drawLines(QPainter* painter,
int w,
int h);
70 int scrollOffsetX { 0 };
90 static constexpr int groundY = Settings::Scene::Ground::GROUND_Y_POS;
95 QList<GroundLine> groundLines;
A utility class to manage and render dynamic ground lines.
Definition GroundLineProviders.h:16
void update_params(int scrollSpeed)
Updates ground line parameters based on scrolling speed.
Definition GroundLineProviders.cpp:24
GroundLineProviders()=delete
Deleted default constructor to enforce parameterized construction.
void initGroundLines(int count=200)
Initializes ground lines.
Definition GroundLineProviders.cpp:12
Q_DISABLE_COPY_MOVE(GroundLineProviders)
Disables copy and move semantics.
void drawLines(QPainter *painter, int w, int h)
Draws the ground lines on the given painter.
Definition GroundLineProviders.cpp:32
Defines constants and settings related to the game scene and its behavior.
Represents a single ground line with position, length, and animation phase.
Definition GroundLineProviders.h:39
int x
Starting x-position of the line.
Definition GroundLineProviders.h:40
int length
Length of the ground line.
Definition GroundLineProviders.h:42
int y0
Initial vertical position.
Definition GroundLineProviders.h:41
float phase
Animation phase of the line.
Definition GroundLineProviders.h:43