Provides frame data for the dinosaur character based on its state.
More...
#include <FigureFrameFetcher.h>
|
void | set_frame_state (State s) |
| Sets the current frame state.
|
|
| DinasourFrameFetcher (const QString &valid_base_path, QObject *parent) |
| Constructs the dinosaur frame fetcher with a valid base path.
|
|
QRect & | src_bounding_rect () override |
| Returns the current source bounding rectangle.
|
|
| FrameProvider (const QString &valid_base_path, QObject *parent) |
| Constructs a FrameProvider with initial path.
|
|
virtual | ~FrameProvider () |
| Destructor.
|
|
void | append_src (const QString &valid_base_path) |
| Adds a single source path.
|
|
void | append_srcs (const QStringList &valid_base_paths) |
| Adds multiple source paths.
|
|
void | lock_src (const QString &valid_base_path) |
| Locks to a specific source path.
|
|
void | terminate_flow () |
| Stops frame updates.
|
|
void | resume_flow () |
| Resumes frame updates.
|
|
void | manual_shuffle_once () |
| Manually triggers one frame shuffle.
|
|
QPixmap & | src_pixmap () |
| Gets current source pixmap.
|
|
Provides frame data for the dinosaur character based on its state.
◆ State
States the dinosaur character can be in.
Enumerator |
---|
NORMAL | Normal standing/running state.
|
LAY | Crouching/laying state.
|
◆ DinasourFrameFetcher()
DinasourFrameFetcher::DinasourFrameFetcher |
( |
const QString & |
valid_base_path, |
|
|
QObject * |
parent |
|
) |
| |
|
explicit |
Constructs the dinosaur frame fetcher with a valid base path.
- Parameters
-
valid_base_path | Base path to the frame resources. |
parent | The parent QObject. |
◆ set_frame_state()
void DinasourFrameFetcher::set_frame_state |
( |
State |
s | ) |
|
|
inline |
Sets the current frame state.
- Parameters
-
◆ src_bounding_rect()
QRect & DinasourFrameFetcher::src_bounding_rect |
( |
| ) |
|
|
overridevirtual |
Returns the current source bounding rectangle.
- Returns
- Reference to the QRect representing the bounding rect.
Implements FrameProvider.
The documentation for this class was generated from the following files:
- extern_app/games/CCIMX_DinoGame/ui/FigureFrameFetcher.h
- extern_app/games/CCIMX_DinoGame/ui/FigureFrameFetcher.cpp