6#ifndef CACTUSOBSTICALS_H
7#define CACTUSOBSTICALS_H
91 bool auto_update_sz {
false };
Frame fetcher for cactus-type obstacles.
Definition FigureFrameFetcher.h:88
CactusObsticals inherits from Obsticals and provides size and rendering control.
Definition CactusObsticals.h:13
Size getSize() const
Returns the current size of the cactus.
Definition CactusObsticals.h:51
void setSize(Size s)
Sets the cactus size.
Definition CactusObsticals.cpp:14
static constexpr const short SIZE_TYPE_MAX
Constant representing the number of size types.
Definition CactusObsticals.h:39
~CactusObsticals()=default
Default destructor.
bool autoUpdateSzRandomly() const
Checks if automatic random size update is enabled.
Definition CactusObsticals.h:63
Size
Enumeration for cactus size types.
Definition CactusObsticals.h:30
QPixmap & provide_drawing_srcframe() override
Provides the drawing source frame (QPixmap) for the cactus.
Definition CactusObsticals.cpp:43
void setAutoUpdateSzRandomly(bool st)
Enables or disables automatic random size update.
Definition CactusObsticals.h:57
QRect & provide_current_bounding_rect() override
Provides the current bounding rectangle of the cactus.
Definition CactusObsticals.cpp:39
Base class for all obstacle objects in the game.
Definition Obsticals.h:15