diff options
| author | Samu Laaksonen <laaksonen.sj@gmail.com> | 2012-09-28 22:36:58 +0300 |
|---|---|---|
| committer | Samu Laaksonen <laaksonen.sj@gmail.com> | 2012-09-28 22:36:58 +0300 |
| commit | 1cf5a427a829b22abea7027b18a130a01da3ed6a (patch) | |
| tree | 9076e816e052bb35e52890a13562844090312be5 /src/CircularDisplay.h | |
| parent | 685fe05def77b039221edf06c74af74915d536c5 (diff) | |
| download | prism-1cf5a427a829b22abea7027b18a130a01da3ed6a.tar.gz prism-1cf5a427a829b22abea7027b18a130a01da3ed6a.zip | |
Rename commit
Renamed some files according the project name
Added base directory structure for resources
Changed more fitting parallax scrolled background to menus
- added 3 new layers as resources
Changed more cheerful buttons to menus
Added base classes to build HUD later on
Added one new test level that is size of 800*480 with tilesize of 32*32
Diffstat (limited to 'src/CircularDisplay.h')
| -rw-r--r-- | src/CircularDisplay.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/CircularDisplay.h b/src/CircularDisplay.h new file mode 100644 index 0000000..6889645 --- /dev/null +++ b/src/CircularDisplay.h @@ -0,0 +1,38 @@ +#ifndef CircularDisplay_h +#define CircularDisplay_h + +#include <QGraphicsItem> + +class CircularDisplay : public QGraphicsItem +{ +public: + CircularDisplay(QGraphicsItem* parent = 0); + virtual ~CircularDisplay(); + + virtual QRectF boundingRect() const; + virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); + + void advance(int phase); + + void setDisplayColor(QColor col); + void collected(int amount); + void activate(); + void unactivate(); + +signals: + +public slots: + +private: + int m_partCount; + int m_maxValue; + int m_value; + int m_consumeSpeed; + bool m_activated; + QColor m_displayColor; + + void updateDisplay(); + +}; + +#endif // CircularDisplay_h |
