Changeset View
Changeset View
Standalone View
Standalone View
mod3.h
Show All 40 Lines | |||||
41 | 41 | | |||
42 | 42 | | |||
43 | class Mod3 : public DealerScene | 43 | class Mod3 : public DealerScene | ||
44 | { | 44 | { | ||
45 | Q_OBJECT | 45 | Q_OBJECT | ||
46 | 46 | | |||
47 | public: | 47 | public: | ||
48 | explicit Mod3( const DealerInfo * di ); | 48 | explicit Mod3( const DealerInfo * di ); | ||
49 | void initialize() Q_DECL_OVERRIDE; | 49 | void initialize() override; | ||
50 | 50 | | |||
51 | protected: | 51 | protected: | ||
52 | void setGameState( const QString & state ) Q_DECL_OVERRIDE; | 52 | void setGameState( const QString & state ) 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 cardsMoved( const QList<KCard*> & cards, KCardPile * oldPile, KCardPile * newPile ) Q_DECL_OVERRIDE; | 55 | void cardsMoved( const QList<KCard*> & cards, KCardPile * oldPile, KCardPile * newPile ) 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 | PatPile *talon; | 62 | PatPile *talon; | ||
63 | PatPile *stack[4][8]; | 63 | PatPile *stack[4][8]; | ||
64 | PatPile *aces; | 64 | PatPile *aces; | ||
65 | 65 | | |||
66 | friend class Mod3Solver; | 66 | friend class Mod3Solver; | ||
67 | }; | 67 | }; | ||
68 | 68 | | |||
69 | #endif | 69 | #endif |