1 #ifndef TIMERCONTROLLEDTURSAS_H
2 #define TIMERCONTROLLEDTURSAS_H
5 #include <QGraphicsPixmapItem>
8 class TimerControlledTursas : public QObject, public QGraphicsPixmapItem
12 explicit TimerControlledTursas(QPixmap pixmap = QPixmap(), int speed = 1, QGraphicsItem *parent = 0);
22 /*! Intended to be used internally by connecting to a timer
26 /*! Sets the movement speed of the item
27 @param speed given in pixels per second
29 void setSpeed(int speed);
34 void changeDirection();
38 enum direction {N, NE, E, SE, S, SW, W, NW};
44 #endif // TIMERCONTROLLEDTURSAS_H