aboutsummaryrefslogtreecommitdiff
path: root/src/Collectible.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Collectible.h')
-rw-r--r--src/Collectible.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Collectible.h b/src/Collectible.h
new file mode 100644
index 0000000..7ac79d3
--- /dev/null
+++ b/src/Collectible.h
@@ -0,0 +1,19 @@
+#ifndef Collectible_H
+#define Collectible_H
+
+#include "Sprite.h"
+
+class Collectible : public Sprite
+{
+public:
+ Collectible(QGraphicsItem *parent = 0, QGraphicsScene *scene = 0);
+ void collected();
+
+ void setValue(int value);
+ int getValue() const;
+
+private:
+ int m_value;
+};
+
+#endif // Collectible_H