servatrice/cockatrice/src/libraryzone.h
2009-05-22 22:32:05 +02:00

21 lines
656 B
C++

#ifndef LIBRARYZONE_H
#define LIBRARYZONE_H
#include "cardzone.h"
class LibraryZone : public CardZone {
private:
public:
LibraryZone(Player *_p, QGraphicsItem *parent = 0);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void reorganizeCards();
void handleDropEvent(int cardId, CardZone *startZone, const QPoint &dropPoint, bool faceDown);
protected:
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
void addCardImpl(CardItem *card, int x, int y);
};
#endif