Changeset View
Changeset View
Standalone View
Standalone View
fortyeight.h
Show All 39 Lines | |||||
40 | 40 | | |||
41 | 41 | | |||
42 | class Fortyeight : public DealerScene | 42 | class Fortyeight : public DealerScene | ||
43 | { | 43 | { | ||
44 | Q_OBJECT | 44 | Q_OBJECT | ||
45 | 45 | | |||
46 | public: | 46 | public: | ||
47 | explicit Fortyeight( const DealerInfo * di ); | 47 | explicit Fortyeight( const DealerInfo * di ); | ||
48 | void initialize() Q_DECL_OVERRIDE; | 48 | void initialize() override; | ||
49 | 49 | | |||
50 | protected: | 50 | protected: | ||
51 | void setGameState( const QString & state ) Q_DECL_OVERRIDE; | 51 | void setGameState( const QString & state ) override; | ||
52 | QString getGameState() const Q_DECL_OVERRIDE; | 52 | QString getGameState() const override; | ||
53 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const Q_DECL_OVERRIDE; | 53 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const override; | ||
54 | bool checkRemove(const PatPile* pile, const QList<KCard*> & cards) const Q_DECL_OVERRIDE; | 54 | bool checkRemove(const PatPile* pile, const QList<KCard*> & cards) const override; | ||
55 | void cardsDroppedOnPile( const QList<KCard*> & cards, KCardPile * pile ) Q_DECL_OVERRIDE; | 55 | void cardsDroppedOnPile( const QList<KCard*> & cards, KCardPile * pile ) override; | ||
56 | void restart( const QList<KCard*> & cards ) Q_DECL_OVERRIDE; | 56 | void restart( const QList<KCard*> & cards ) override; | ||
57 | 57 | | |||
58 | protected slots: | 58 | protected slots: | ||
59 | bool newCards() Q_DECL_OVERRIDE; | 59 | bool newCards() override; | ||
60 | 60 | | |||
61 | private: | 61 | private: | ||
62 | bool canPutStore( const KCardPile * pile, const QList<KCard*> &cards ) const; | 62 | bool canPutStore( const KCardPile * pile, const QList<KCard*> &cards ) const; | ||
63 | 63 | | |||
64 | PatPile *talon; | 64 | PatPile *talon; | ||
65 | PatPile *stack[8]; | 65 | PatPile *stack[8]; | ||
66 | PatPile *target[8]; | 66 | PatPile *target[8]; | ||
67 | PatPile *pile; | 67 | PatPile *pile; | ||
68 | bool lastdeal; | 68 | bool lastdeal; | ||
69 | 69 | | |||
70 | friend class FortyeightSolver; | 70 | friend class FortyeightSolver; | ||
71 | }; | 71 | }; | ||
72 | 72 | | |||
73 | #endif | 73 | #endif |