IntroItem, improved movement rules and move counting.
[impuzzle] / src / puzzleitem.h
index 0fb5827..8cf4819 100644 (file)
@@ -38,6 +38,8 @@ public:
     bool movable() const;
     void setMovable(bool canMove);
     void moveMeTo(const QPointF &location);
     bool movable() const;
     void setMovable(bool canMove);
     void moveMeTo(const QPointF &location);
+    static int moveCount();
+    static void resetMoveCount();
 
 protected:
     void mousePressEvent(QGraphicsSceneMouseEvent *event);
 
 protected:
     void mousePressEvent(QGraphicsSceneMouseEvent *event);
@@ -48,5 +50,6 @@ private:
     QPointF currentPlace_;
     bool movable_;
     QPropertyAnimation *moveAnimation_;
     QPointF currentPlace_;
     bool movable_;
     QPropertyAnimation *moveAnimation_;
+    static int moveCount_;
 };
 #endif
 };
 #endif