Diffstat (limited to 'noncore/games/solitaire/freecellcardgame.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/solitaire/freecellcardgame.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/games/solitaire/freecellcardgame.h b/noncore/games/solitaire/freecellcardgame.h index f1b09ab..2df751b 100644 --- a/noncore/games/solitaire/freecellcardgame.h +++ b/noncore/games/solitaire/freecellcardgame.h | |||
@@ -46,7 +46,7 @@ public: | |||
46 | if ( cardOnBottom() == NULL ) { | 46 | if ( cardOnBottom() == NULL ) { |
47 | int numberOfCardsBeingMoved = 0; | 47 | int numberOfCardsBeingMoved = 0; |
48 | Card *tempCard = card; | 48 | Card *tempCard = card; |
49 | 49 | ||
50 | while ((tempCard != NULL)) { | 50 | while ((tempCard != NULL)) { |
51 | numberOfCardsBeingMoved++; | 51 | numberOfCardsBeingMoved++; |
52 | tempCard = cardInfront(tempCard); | 52 | tempCard = cardInfront(tempCard); |
@@ -62,6 +62,7 @@ public: | |||
62 | return PatienceWorkingPile::isAllowedOnTop( card ); | 62 | return PatienceWorkingPile::isAllowedOnTop( card ); |
63 | } | 63 | } |
64 | 64 | ||
65 | |||
65 | virtual bool isAllowedToBeMoved(Card *card) { | 66 | virtual bool isAllowedToBeMoved(Card *card) { |
66 | int nextExpectedValue = (int)card->getValue(); | 67 | int nextExpectedValue = (int)card->getValue(); |
67 | bool nextExpectedColor = card->isRed(); | 68 | bool nextExpectedColor = card->isRed(); |
@@ -138,10 +139,12 @@ public: | |||
138 | virtual bool mousePressCard(Card *card, QPoint p); | 139 | virtual bool mousePressCard(Card *card, QPoint p); |
139 | virtual void mouseReleaseCard(Card *card, QPoint p) { Q_UNUSED(card); Q_UNUSED(p); } | 140 | virtual void mouseReleaseCard(Card *card, QPoint p) { Q_UNUSED(card); Q_UNUSED(p); } |
140 | // virtual void mouseMoveCard(Card *card, QPoint p) { Q_UNUSED(card); Q_UNUSED(p); } | 141 | // virtual void mouseMoveCard(Card *card, QPoint p) { Q_UNUSED(card); Q_UNUSED(p); } |
142 | virtual void checkUnusable(); | ||
141 | void readConfig( Config& cfg ); | 143 | void readConfig( Config& cfg ); |
142 | void writeConfig( Config& cfg ); | 144 | void writeConfig( Config& cfg ); |
143 | bool snapOn; | 145 | bool snapOn; |
144 | private: | 146 | private: |
147 | bool checkNeeded(Card *card); | ||
145 | FreecellFreecellPile *freecellPiles[8]; | 148 | FreecellFreecellPile *freecellPiles[8]; |
146 | FreecellWorkingPile *workingPiles[8]; | 149 | FreecellWorkingPile *workingPiles[8]; |
147 | FreecellDiscardPile *discardPiles[4]; | 150 | FreecellDiscardPile *discardPiles[4]; |