summaryrefslogtreecommitdiffstats
path: root/kpat/gypsy.h
blob: 5ead4175e796e507f04d4dee0aa58bfd3fadf0cf (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
  TQ_OBJECT

public:
    Gypsy( KMainWindow* tqparent=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