diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | c90c389a8a8d9d8661e9772ec4144c5cf2039f23 (patch) | |
tree | 6d8391395bce9eaea4ad78958617edb20c6a7573 /kpat/gypsy.h | |
download | tdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.tar.gz tdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpat/gypsy.h')
-rw-r--r-- | kpat/gypsy.h | 34 |
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 |