Changeset View
Changeset View
Standalone View
Standalone View
klondike.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | 44 | | |||
45 | 45 | | |||
46 | class Klondike : public DealerScene | 46 | class Klondike : public DealerScene | ||
47 | { | 47 | { | ||
48 | Q_OBJECT | 48 | Q_OBJECT | ||
49 | 49 | | |||
50 | public: | 50 | public: | ||
51 | explicit Klondike( const DealerInfo * di ); | 51 | explicit Klondike( const DealerInfo * di ); | ||
52 | void initialize() Q_DECL_OVERRIDE; | 52 | void initialize() override; | ||
53 | void mapOldId(int id) Q_DECL_OVERRIDE; | 53 | void mapOldId(int id) override; | ||
54 | int oldId() const Q_DECL_OVERRIDE; | 54 | int oldId() const override; | ||
55 | QList<QAction*> configActions() const Q_DECL_OVERRIDE; | 55 | QList<QAction*> configActions() const override; | ||
56 | 56 | | |||
57 | protected: | 57 | protected: | ||
58 | void setGameState( const QString & state ) Q_DECL_OVERRIDE; | 58 | void setGameState( const QString & state ) override; | ||
59 | QString getGameOptions() const Q_DECL_OVERRIDE; | 59 | QString getGameOptions() const override; | ||
60 | void setGameOptions( const QString & options ) Q_DECL_OVERRIDE; | 60 | void setGameOptions( const QString & options ) override; | ||
61 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const Q_DECL_OVERRIDE; | 61 | bool checkAdd(const PatPile * pile, const QList<KCard*> & oldCards, const QList<KCard*> & newCards) const override; | ||
62 | bool checkRemove(const PatPile * pile, const QList<KCard*> & cards) const Q_DECL_OVERRIDE; | 62 | bool checkRemove(const PatPile * pile, const QList<KCard*> & cards) const override; | ||
63 | void cardsMoved( const QList<KCard*> & cards, KCardPile * oldPile, KCardPile * newPile ) Q_DECL_OVERRIDE; | 63 | void cardsMoved( const QList<KCard*> & cards, KCardPile * oldPile, KCardPile * newPile ) override; | ||
64 | void restart( const QList<KCard*> & cards ) Q_DECL_OVERRIDE; | 64 | void restart( const QList<KCard*> & cards ) override; | ||
65 | 65 | | |||
66 | protected slots: | 66 | protected slots: | ||
67 | bool drop() Q_DECL_OVERRIDE; | 67 | bool drop() override; | ||
68 | bool newCards() Q_DECL_OVERRIDE; | 68 | bool newCards() override; | ||
69 | 69 | | |||
70 | private slots: | 70 | private slots: | ||
71 | void gameTypeChanged(); | 71 | void gameTypeChanged(); | ||
72 | 72 | | |||
73 | private: | 73 | private: | ||
74 | void setEasy( bool easy ); | 74 | void setEasy( bool easy ); | ||
75 | 75 | | |||
76 | bool easyRules; | 76 | bool easyRules; | ||
Show All 10 Lines | |||||
87 | }; | 87 | }; | ||
88 | 88 | | |||
89 | class KlondikePile : public PatPile | 89 | class KlondikePile : public PatPile | ||
90 | { | 90 | { | ||
91 | public: | 91 | public: | ||
92 | KlondikePile( DealerScene * scene, int index, const QString & objectName = QString() ); | 92 | KlondikePile( DealerScene * scene, int index, const QString & objectName = QString() ); | ||
93 | void setCardsToShow( int numCards ); | 93 | void setCardsToShow( int numCards ); | ||
94 | int cardsToShow() const; | 94 | int cardsToShow() const; | ||
95 | QList<QPointF> cardPositions() const Q_DECL_OVERRIDE; | 95 | QList<QPointF> cardPositions() const override; | ||
96 | 96 | | |||
97 | private: | 97 | private: | ||
98 | int m_cardsToShow; | 98 | int m_cardsToShow; | ||
99 | }; | 99 | }; | ||
100 | 100 | | |||
101 | #endif | 101 | #endif |