summaryrefslogtreecommitdiffstats
path: root/kpat/gypsy.h
blob: 96f4502e1381e21a9287520cfb806ef460d227ee (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 TDEAction;
class Pile;
class Deck;
class TDEMainWindow;

class Gypsy : public Dealer {
    Q_OBJECT
  

public:
    Gypsy( TDEMainWindow* 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