Changeset View
Changeset View
Standalone View
Standalone View
simon.h
Show All 39 Lines | |||||
40 | 40 | | |||
41 | 41 | | |||
42 | class Simon : public DealerScene | 42 | class Simon : public DealerScene | ||
43 | { | 43 | { | ||
44 | Q_OBJECT | 44 | Q_OBJECT | ||
45 | 45 | | |||
46 | public: | 46 | public: | ||
47 | explicit Simon( const DealerInfo * di ); | 47 | explicit Simon( const DealerInfo * di ); | ||
48 | void initialize() Q_DECL_OVERRIDE; | 48 | void initialize() override; | ||
49 | 49 | | |||
50 | protected: | 50 | protected: | ||
51 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const Q_DECL_OVERRIDE; | 51 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const override; | ||
52 | bool checkPrefering(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const Q_DECL_OVERRIDE; | 52 | bool checkPrefering(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const override; | ||
53 | bool checkRemove(const PatPile * pile, const QList<KCard*> & cards) const Q_DECL_OVERRIDE; | 53 | bool checkRemove(const PatPile * pile, const QList<KCard*> & cards) const override; | ||
54 | void restart( const QList<KCard*> & cards ) Q_DECL_OVERRIDE; | 54 | void restart( const QList<KCard*> & cards ) override; | ||
55 | 55 | | |||
56 | private: | 56 | private: | ||
57 | PatPile* store[10]; | 57 | PatPile* store[10]; | ||
58 | PatPile* target[4]; | 58 | PatPile* target[4]; | ||
59 | 59 | | |||
60 | virtual QString solverFormat() const; | 60 | virtual QString solverFormat() const; | ||
61 | friend class SimonSolver; | 61 | friend class SimonSolver; | ||
62 | }; | 62 | }; | ||
63 | 63 | | |||
64 | #endif | 64 | #endif |