111 bool auto_update_height {
true };
112 bool auto_update_size {
true };
Frame fetcher for bird-type obstacles.
Definition FigureFrameFetcher.h:115
Represents bird obstacles in the game.
Definition BirdObsticals.h:12
void setSize(BirdType t)
Sets bird size.
Definition BirdObsticals.cpp:36
void setAutoUpdateHeightRandomly(bool st)
Enables/disables automatic height updates.
Definition BirdObsticals.h:75
~BirdObsticals()=default
Default destructor.
FlyHeight
Possible flying heights for birds.
Definition BirdObsticals.h:19
@ MED
Medium flying height.
static constexpr unsigned short SZ_SIZE_TYPE_MAX
Maximum number of size types.
Definition BirdObsticals.h:39
void setAutoUpdateSzRandomly(bool st)
Enables/disables automatic size updates.
Definition BirdObsticals.h:87
QPixmap & provide_drawing_srcframe() override
Provides current drawing frame.
Definition BirdObsticals.cpp:62
void setHeight(FlyHeight h)
Sets flying height.
Definition BirdObsticals.cpp:16
BirdType
Possible sizes for birds.
Definition BirdObsticals.h:29
@ MEDIUM
Medium bird size.
bool autoheightUpdateSzRandomly() const
Checks if height auto-update is enabled.
Definition BirdObsticals.h:81
BirdType getSize() const
Gets current bird size.
Definition BirdObsticals.h:69
bool autoUpdateSzRandomly() const
Checks if size auto-update is enabled.
Definition BirdObsticals.h:93
static constexpr unsigned short HEIGHT_SIZE_TYPE_MAX
Maximum number of height types.
Definition BirdObsticals.h:36
FlyHeight getHeight() const
Gets current flying height.
Definition BirdObsticals.h:57
QRect & provide_current_bounding_rect() override
Provides current collision bounding rect.
Definition BirdObsticals.cpp:58
Base class for all obstacle objects in the game.
Definition Obsticals.h:15