4 Ship::Ship(QPixmap pixmap, QGraphicsItem *parent) :
5 OrientationControlledGraphicsPixmapObject(pixmap,parent)
10 bool Ship::handleCollisions()
12 QList<QGraphicsItem*> collidesList = collidingItems();
14 if (collidesList.isEmpty())
19 QString type = collidesList.at(0)->data(0).toString();
21 if (type == "rock" || type == "octopus")
27 else if (type == "ghost")