4#include "figure/FigureObject.h"
24 explicit Obsticals(QObject* parent =
nullptr);
82 int moving_speed { Settings::Scene::Difficulty::DEF_SPEED };
Frame fetcher for cactus-type obstacles.
Definition FigureFrameFetcher.h:88
Base class for all obstacle objects in the game.
Definition Obsticals.h:15
virtual ~Obsticals()=default
Default virtual destructor.
void speedChanged(int newSpeed)
Emitted when speed changes.
virtual bool is_intersect(Dinasour *dinasour)
Checks collision with dinosaur.
Definition Obsticals.cpp:10
virtual void set_moving_speed(const int speed)
Sets moving speed.
Definition Obsticals.cpp:15
int moving_speed
Current movement speed.
Definition Obsticals.h:17
virtual QPixmap & provide_drawing_srcframe()=0
Provides drawing frame (pure virtual)
std::shared_ptr< QMutex > mutex
Mutex for thread safety.
Definition Obsticals.h:81
virtual QRect & provide_current_bounding_rect()=0
Provides collision bounding rectangle (pure virtual)
virtual void update_position()
Updates obstacle position.
Definition Obsticals.cpp:23
void pass_me_already()
Emitted when obstacle passes out of view.
int get_moving_speed() const
Gets current moving speed.
Definition Obsticals.h:42
Configuration constants related to the dinosaur figure.
Defines constants and settings related to the game scene and its behavior.