Class restructure for octopus
[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     void dropAllGhosts();
26
27 protected:
28
29 protected:
30     bool handleCollisions();
31
32     void updateShipImage();
33
34     int ghostsAboard_;
35
36     QList<QPixmap> shipImages_;
37
38
39 };
40
41 #endif // SHIP_H