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/golf.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/golf.h')
-rw-r--r-- | kpat/golf.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/kpat/golf.h b/kpat/golf.h new file mode 100644 index 00000000..9c3b6421 --- /dev/null +++ b/kpat/golf.h @@ -0,0 +1,45 @@ +#ifndef _GOLF_H_ +#define _GOLF_H_ + +#include "dealer.h" + +class HorRightPile : public Pile +{ + Q_OBJECT + +public: + HorRightPile( int _index, Dealer* parent = 0); + virtual QSize cardOffset( bool _spread, bool _facedown, const Card *before) const; +}; + +class Golf : public Dealer +{ + Q_OBJECT + +public: + Golf( KMainWindow* parent=0, const char* name=0); + void deal(); + virtual void restart(); + virtual bool isGameLost() const; + +protected slots: + void deckClicked(Card *); + +protected: + virtual bool startAutoDrop() { return false; } + virtual Card *demoNewCards(); + virtual bool cardClicked(Card *c); + +private: // functions + virtual bool checkAdd( int checkIndex, const Pile *c1, const CardList& c2) const; + virtual bool checkRemove( int checkIndex, const Pile *c1, const Card *c2) const; + +private: + Pile* stack[7]; + HorRightPile* waste; + Deck* deck; +}; + +#endif + +//-------------------------------------------------------------------------// |