Handles all rendering operations for the game scene.
More...
#include <SceneDrawer.h>
|
| Q_DISABLE_COPY_MOVE (SceneDrawer) |
| disable copy move object
|
|
| SceneDrawer (const QRect &sceneRect) |
| Constructs a SceneDrawer with specified boundaries.
|
|
void | bind_painter (QPainter *p) |
| Binds a QPainter for drawing operations.
|
|
void | drawSky () |
| Draws the sky background.
|
|
void | drawContent (int score, Difficulty type) |
| Draws game content (score and difficulty)
|
|
void | drawDinasore (Dinasour *dinasour) |
| Draws the dinosaur character.
|
|
void | drawObstical (const QList< Obsticals * > &obs) |
| Draws all obstacles.
|
|
void | drawMainGround () |
| Draws the main ground line.
|
|
void | drawFlowyGround (int current_speed) |
| Draws the flowing ground effect.
|
|
void | setDrawHello (bool st) |
| Sets whether to draw the hello message.
|
|
Handles all rendering operations for the game scene.
◆ SceneDrawer()
SceneDrawer::SceneDrawer |
( |
const QRect & |
sceneRect | ) |
|
|
explicit |
Constructs a SceneDrawer with specified boundaries.
- Parameters
-
sceneRect | The bounding rectangle of the scene |
◆ bind_painter()
void SceneDrawer::bind_painter |
( |
QPainter * |
p | ) |
|
Binds a QPainter for drawing operations.
- Parameters
-
p | Pointer to the QPainter to use |
◆ drawContent()
void SceneDrawer::drawContent |
( |
int |
score, |
|
|
Difficulty |
type |
|
) |
| |
Draws game content (score and difficulty)
- Parameters
-
score | Current game score |
type | Current difficulty level |
◆ drawDinasore()
void SceneDrawer::drawDinasore |
( |
Dinasour * |
dinasour | ) |
|
Draws the dinosaur character.
- Parameters
-
dinasour | Pointer to the dinosaur object |
◆ drawFlowyGround()
void SceneDrawer::drawFlowyGround |
( |
int |
current_speed | ) |
|
Draws the flowing ground effect.
- Parameters
-
current_speed | Current game speed |
◆ drawObstical()
void SceneDrawer::drawObstical |
( |
const QList< Obsticals * > & |
obs | ) |
|
Draws all obstacles.
- Parameters
-
obs | List of obstacles to draw |
◆ setDrawHello()
void SceneDrawer::setDrawHello |
( |
bool |
st | ) |
|
|
inline |
Sets whether to draw the hello message.
- Parameters
-
st | True to draw hello message, false otherwise |
The documentation for this class was generated from the following files:
- extern_app/games/CCIMX_DinoGame/ui/SceneDrawer.h
- extern_app/games/CCIMX_DinoGame/ui/SceneDrawer.cpp