class Ship : public OrientationControlledGraphicsPixmapObject
{
- Q_OBJECT
+
+ Q_OBJECT
public:
- explicit Ship(QPixmap pixmap = 0, QGraphicsItem *parent = 0);
+ explicit Ship(QList<QPixmap> pixmapList, QGraphicsItem *parent = 0);
signals:
/*! Emitted when a ghost is hit */
void pickingGhost(QGraphicsItem* pGhost);
+
+
/*! Emitted when ghosts fall over board */
void droppingGhosts (int ghosts);
protected:
bool handleCollisions();
+ void updateShipImage();
+
int ghostsAboard_;
+ QList<QPixmap> shipImages_;
+
};