X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=ship.h;h=f07bced439af6d1def9ddb3bb4882436a89910cc;hb=00f6534719b46dd5479cff4d73339c3ce2c36664;hp=38138a2bc4f4001a8d8feed7d2999777014c4bec;hpb=12868c14365387679c441440b751b0e922a2857c;p=ghostsoverboard
diff --git a/ship.h b/ship.h
index 38138a2..f07bced 100644
--- a/ship.h
+++ b/ship.h
@@ -1,3 +1,25 @@
+/**************************************************************************
+ Ghosts Overboard - a game for Maemo 5
+
+ Copyright (C) 2011 Heli Hyvättinen
+
+ This file is part of Ghosts Overboard
+
+ Ghosts Overboard is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+**************************************************************************/
+
#ifndef SHIP_H
#define SHIP_H
@@ -5,19 +27,40 @@
class Ship : public OrientationControlledGraphicsPixmapObject
{
- Q_OBJECT
+
+ Q_OBJECT
public:
- explicit Ship(QPixmap pixmap = 0, QGraphicsItem *parent = 0);
+ explicit Ship(QList 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);
+
public slots:
+ void dropAllGhosts();
+
+ void setVibrationActivate(bool on);
+
protected:
protected:
bool handleCollisions();
+ void updateShipImage();
+
+ int ghostsAboard_;
+
+ QList shipImages_;
+
+ bool vibrationActive_;
+
};