summaryrefslogtreecommitdiffstats
path: root/kpat/gypsy.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpat/gypsy.h')
-rw-r--r--kpat/gypsy.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/kpat/gypsy.h b/kpat/gypsy.h
new file mode 100644
index 00000000..ea28b04e
--- /dev/null
+++ b/kpat/gypsy.h
@@ -0,0 +1,34 @@
+
+#ifndef GYPSY_H
+#define GYPSY_H
+
+#include "dealer.h"
+
+class KAction;
+class Pile;
+class Deck;
+class KMainWindow;
+
+class Gypsy : public Dealer {
+ Q_OBJECT
+
+public:
+ Gypsy( KMainWindow* parent=0, const char* name=0);
+ virtual bool isGameLost() const;
+
+public slots:
+ void slotClicked(Card *) { dealRow(true); }
+ void deal();
+ virtual void restart();
+
+private: // functions
+ void dealRow(bool faceup);
+ virtual Card *demoNewCards();
+
+private:
+ Pile* store[8];
+ Pile* target[8];
+ Deck *deck;
+};
+
+#endif