initial commit

This commit is contained in:
Max-Wilhelm Bruker 2009-03-13 22:50:41 +01:00
commit a11f93df4d
99 changed files with 7493 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#ifndef TABLEZONE_H
#define TABLEZONE_H
#include "playerzone.h"
const int GRID_WIDTH = 30;
const int GRID_HEIGHT = 30;
class TableZone : public PlayerZone {
private:
int width, height;
public:
TableZone(Player *_p);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void addCard(CardItem *card, bool reorganize = true, int x = -1, int y = -1);
void reorganizeCards();
void toggleTapped();
void handleDropEvent(int cardId, PlayerZone *startZone, const QPoint &dropPoint);
};
#endif