Changeset View
Changeset View
Standalone View
Standalone View
idiot.h
Show All 40 Lines | |||||
41 | 41 | | |||
42 | 42 | | |||
43 | class Idiot: public DealerScene | 43 | class Idiot: public DealerScene | ||
44 | { | 44 | { | ||
45 | Q_OBJECT | 45 | Q_OBJECT | ||
46 | 46 | | |||
47 | public: | 47 | public: | ||
48 | explicit Idiot( const DealerInfo * di ); | 48 | explicit Idiot( const DealerInfo * di ); | ||
49 | void initialize() Q_DECL_OVERRIDE; | 49 | void initialize() override; | ||
50 | bool isGameWon() const Q_DECL_OVERRIDE; | 50 | bool isGameWon() const override; | ||
51 | 51 | | |||
52 | protected: | 52 | protected: | ||
53 | void setGameState( const QString & state ) Q_DECL_OVERRIDE; | 53 | void setGameState( const QString & state ) override; | ||
54 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const Q_DECL_OVERRIDE; | 54 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const override; | ||
55 | bool checkRemove(const PatPile * pile, const QList<KCard*> & cards) const Q_DECL_OVERRIDE; | 55 | bool checkRemove(const PatPile * pile, const QList<KCard*> & cards) const override; | ||
56 | void restart( const QList<KCard*> & cards ) Q_DECL_OVERRIDE; | 56 | void restart( const QList<KCard*> & cards ) override; | ||
57 | bool drop() Q_DECL_OVERRIDE; | 57 | bool drop() override; | ||
58 | 58 | | |||
59 | protected slots: | 59 | protected slots: | ||
60 | bool newCards() Q_DECL_OVERRIDE; | 60 | bool newCards() override; | ||
61 | bool tryAutomaticMove( KCard * card ) Q_DECL_OVERRIDE; | 61 | bool tryAutomaticMove( KCard * card ) override; | ||
62 | 62 | | |||
63 | private: | 63 | private: | ||
64 | void dealRow(); | 64 | void dealRow(); | ||
65 | bool canMoveAway(const KCard * card) const; | 65 | bool canMoveAway(const KCard * card) const; | ||
66 | 66 | | |||
67 | PatPile *talon; | 67 | PatPile *talon; | ||
68 | PatPile *m_play[ 4 ]; | 68 | PatPile *m_play[ 4 ]; | ||
69 | PatPile *m_away; | 69 | PatPile *m_away; | ||
70 | 70 | | |||
71 | friend class IdiotSolver; | 71 | friend class IdiotSolver; | ||
72 | }; | 72 | }; | ||
73 | 73 | | |||
74 | #endif | 74 | #endif |