Changeset View
Changeset View
Standalone View
Standalone View
freecell.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | 42 | | |||
43 | 43 | | |||
44 | class Freecell : public DealerScene | 44 | class Freecell : public DealerScene | ||
45 | { | 45 | { | ||
46 | Q_OBJECT | 46 | Q_OBJECT | ||
47 | 47 | | |||
48 | public: | 48 | public: | ||
49 | explicit Freecell( const DealerInfo * di ); | 49 | explicit Freecell( const DealerInfo * di ); | ||
50 | void initialize() Q_DECL_OVERRIDE; | 50 | void initialize() override; | ||
51 | 51 | | |||
52 | protected: | 52 | protected: | ||
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 | QList<MoveHint> getHints() Q_DECL_OVERRIDE; | 57 | QList<MoveHint> getHints() override; | ||
58 | 58 | | |||
59 | protected slots: | 59 | protected slots: | ||
60 | bool tryAutomaticMove( KCard * c ) Q_DECL_OVERRIDE; | 60 | bool tryAutomaticMove( KCard * c ) override; | ||
61 | 61 | | |||
62 | private: | 62 | private: | ||
63 | bool canPutStore( const KCardPile * pile, const QList<KCard*> & cards ) const; | 63 | bool canPutStore( const KCardPile * pile, const QList<KCard*> & cards ) const; | ||
64 | 64 | | |||
65 | virtual QString solverFormat() const; | 65 | virtual QString solverFormat() const; | ||
66 | PatPile* store[8]; | 66 | PatPile* store[8]; | ||
67 | PatPile* freecell[4]; | 67 | PatPile* freecell[4]; | ||
68 | PatPile* target[4]; | 68 | PatPile* target[4]; | ||
69 | 69 | | |||
70 | friend class FreecellSolver; | 70 | friend class FreecellSolver; | ||
71 | }; | 71 | }; | ||
72 | 72 | | |||
73 | #endif | 73 | #endif |