blob: beb3e6eabb393efd462302d0e348de021dec9ee2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#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
|