Abstract base class for all drawable game objects. More...
#include <FigureObject.h>
Public Member Functions | |
FigureObject (QObject *parent=nullptr) | |
Constructs a FigureObject. | |
virtual | ~FigureObject ()=default |
Virtual destructor. | |
virtual QRect & | provide_current_bounding_rect ()=0 |
Gets the current bounding rectangle for collision detection. | |
virtual QPixmap & | provide_drawing_srcframe ()=0 |
Gets the current image frame for rendering. | |
Abstract base class for all drawable game objects.
|
explicit |
Constructs a FigureObject.
parent | Parent QObject |
|
pure virtual |
Gets the current bounding rectangle for collision detection.
Implemented in Dinasour, BirdObsticals, CactusObsticals, and Obsticals.
|
pure virtual |
Gets the current image frame for rendering.
Implemented in Dinasour, BirdObsticals, CactusObsticals, and Obsticals.