summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/errorstate/rocketitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/errorstate/rocketitem.h')
-rw-r--r--examples/statemachine/errorstate/rocketitem.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/statemachine/errorstate/rocketitem.h b/examples/statemachine/errorstate/rocketitem.h
index 9805a8a..189a1dd 100644
--- a/examples/statemachine/errorstate/rocketitem.h
+++ b/examples/statemachine/errorstate/rocketitem.h
@@ -5,20 +5,18 @@
class RocketItem: public GameItem
{
+ Q_OBJECT
public:
- RocketItem();
+ RocketItem(QObject *parent = 0);
virtual void idle(qreal elapsed);
qreal speed() const { return 100.0; }
void setDirection(qreal direction) { m_direction = direction; }
-
- void hitByRocket();
protected:
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QRectF boundingRect() const;
-
private:
qreal m_direction;
qreal m_distance;