You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/kpat/fortyeight.h

49 lines
1002 B

#ifndef _FORTY_EIGHT_H
#define _FORTY_EIGHT_H
#include "dealer.h"
class HorLeftPile : public Pile
{
Q_OBJECT
TQ_OBJECT
public:
HorLeftPile( int _index, Dealer* tqparent = 0);
virtual TQSize cardOffset( bool _spread, bool _facedown, const Card *before) const;
virtual void initSizes();
};
class Fortyeight : public Dealer
{
Q_OBJECT
TQ_OBJECT
public:
Fortyeight( KMainWindow* tqparent=0, const char* name=0);
virtual bool isGameLost() const;
public slots:
void deal();
virtual void restart();
void deckClicked(Card *c);
protected:
virtual bool checkAdd( int checkIndex, const Pile *c1, const CardList& c2) const;
virtual Card *demoNewCards();
virtual TQString getGameState() const;
virtual void setGameState( const TQString & stream );
private:
Pile *stack[8];
Pile *target[8];
HorLeftPile *pile;
Deck *deck;
bool lastdeal;
};
#endif
//-------------------------------------------------------------------------//