2018-09-09 15:30:38 +03:00
|
|
|
#ifndef HEAD_H
|
|
|
|
#define HEAD_H
|
2018-09-09 17:02:38 +03:00
|
|
|
#define TO_RADIAN 0.017453293
|
|
|
|
|
2018-09-09 15:30:38 +03:00
|
|
|
|
2018-10-08 21:10:07 +03:00
|
|
|
#include "guiobject.h"
|
2018-09-09 15:30:38 +03:00
|
|
|
#include <QString>
|
|
|
|
|
2018-10-08 21:10:07 +03:00
|
|
|
class Head : public GuiObject
|
2018-09-09 15:30:38 +03:00
|
|
|
{
|
|
|
|
private:
|
2018-09-11 22:28:44 +03:00
|
|
|
qint64 time;
|
|
|
|
double *speed;
|
2018-12-01 21:06:40 +03:00
|
|
|
const int megaFastSpead = 200;
|
|
|
|
const int fastSpead = 100;
|
|
|
|
const int normSpead = 50;
|
|
|
|
|
|
|
|
const QString generalSpeadColor = "#616a6b";
|
|
|
|
const QString normSpeadColor = "#5d6d7e";
|
|
|
|
const QString fastSpeadColor = "#eb984e";
|
|
|
|
const QString megaFastSpeadColor = "#ec7063";
|
|
|
|
|
2018-09-09 15:30:38 +03:00
|
|
|
public:
|
2018-11-25 03:24:41 +03:00
|
|
|
Head(double x , double y, double h, double w, double *speed);
|
2018-11-16 20:01:47 +03:00
|
|
|
void setAngle(double angle) override;
|
|
|
|
void render() override;
|
2018-11-25 18:10:08 +03:00
|
|
|
void reset() override;
|
2018-12-01 22:39:03 +03:00
|
|
|
void unPause();
|
2018-11-16 20:01:47 +03:00
|
|
|
~Head() override;
|
2018-09-09 15:30:38 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // HEAD_H
|