Merge branch 'shipimages'
[ghostsoverboard] / ship.h
1 #ifndef SHIP_H
2 #define SHIP_H
3
4 #include "orientationcontrolledgraphicspixmapobject.h"
5
6 class Ship : public OrientationControlledGraphicsPixmapObject
7 {
8
9        Q_OBJECT
10 public:
11     explicit Ship(QList<QPixmap> pixmapList, QGraphicsItem *parent = 0);
12
13 signals:
14
15     /*! Emitted when a ghost is hit */
16     void  pickingGhost(QGraphicsItem* pGhost);
17
18
19
20     /*! Emitted when ghosts fall over board */
21     void droppingGhosts (int ghosts);
22
23 public slots:
24
25 protected:
26
27 protected:
28     bool handleCollisions();
29
30     void updateShipImage();
31
32     int ghostsAboard_;
33
34     QList<QPixmap> shipImages_;
35
36
37 };
38
39 #endif // SHIP_H