Snake/back-end/guiobject.h

31 lines
553 B
C
Raw Normal View History

#ifndef GUIOBJECT_H
#define GUIOBJECT_H
2018-10-08 21:10:07 +03:00
#include "baseclass.h"
#include "QObject"
2018-10-08 21:10:07 +03:00
class GuiObject:public QObject, public BaseClass
{
2018-10-08 21:10:07 +03:00
Q_OBJECT
protected:
double x, y, angle;
QString texture;
double sizeX, sizeY, radius;
public:
2018-10-08 21:10:07 +03:00
GuiObject(QObject *ptr = nullptr);
double getAngle() const;
void setAngle(double angle);
double getY() const;
void setY(double y);
double getX() const;
void setX(double x);
QString getTexture() const;
void setTexture(const QString &texture);
};
2018-10-08 21:10:07 +03:00
#endif // GUIOBJECT_H