Changeset View
Changeset View
Standalone View
Standalone View
grandf.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | 42 | | |||
43 | 43 | | |||
44 | class Grandf : public DealerScene | 44 | class Grandf : public DealerScene | ||
45 | { | 45 | { | ||
46 | Q_OBJECT | 46 | Q_OBJECT | ||
47 | 47 | | |||
48 | public: | 48 | public: | ||
49 | explicit Grandf( const DealerInfo * di ); | 49 | explicit Grandf( const DealerInfo * di ); | ||
50 | void initialize() Q_DECL_OVERRIDE; | 50 | void initialize() override; | ||
51 | 51 | | |||
52 | protected: | 52 | protected: | ||
53 | void setGameState( const QString & state ) Q_DECL_OVERRIDE; | 53 | void setGameState( const QString & state ) override; | ||
54 | QString getGameState() const Q_DECL_OVERRIDE; | 54 | QString getGameState() const override; | ||
55 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const Q_DECL_OVERRIDE; | 55 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const override; | ||
56 | bool checkRemove(const PatPile * pile, const QList<KCard*> & cards) const Q_DECL_OVERRIDE; | 56 | bool checkRemove(const PatPile * pile, const QList<KCard*> & cards) const override; | ||
57 | void restart( const QList<KCard*> & cards ) Q_DECL_OVERRIDE; | 57 | void restart( const QList<KCard*> & cards ) override; | ||
58 | 58 | | |||
59 | protected slots: | 59 | protected slots: | ||
60 | bool newCards() Q_DECL_OVERRIDE; | 60 | bool newCards() override; | ||
61 | 61 | | |||
62 | private: | 62 | private: | ||
63 | void deal( const QList<KCard*> & cardsToDeal ); | 63 | void deal( const QList<KCard*> & cardsToDeal ); | ||
64 | 64 | | |||
65 | PatPile* store[7]; | 65 | PatPile* store[7]; | ||
66 | PatPile* target[4]; | 66 | PatPile* target[4]; | ||
67 | int numberOfDeals; | 67 | int numberOfDeals; | ||
68 | 68 | | |||
69 | friend class GrandfSolver; | 69 | friend class GrandfSolver; | ||
70 | }; | 70 | }; | ||
71 | 71 | | |||
72 | #endif | 72 | #endif |