projects
/
impuzzle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IntroItem, improved movement rules and move counting.
[impuzzle]
/
src
/
puzzleitem.h
diff --git
a/src/puzzleitem.h
b/src/puzzleitem.h
index
0fb5827
..
8cf4819
100644
(file)
--- a/
src/puzzleitem.h
+++ b/
src/puzzleitem.h
@@
-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