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