summaryrefslogtreecommitdiff
path: root/noncore/games/solitaire/cardpile.h
Side-by-side diff
Diffstat (limited to 'noncore/games/solitaire/cardpile.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/solitaire/cardpile.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/games/solitaire/cardpile.h b/noncore/games/solitaire/cardpile.h
index c515bbc..1eb2499 100644
--- a/noncore/games/solitaire/cardpile.h
+++ b/noncore/games/solitaire/cardpile.h
@@ -53,2 +53,9 @@ public:
int getHeight() { return pileHeight; }
+ int getOffsetDown() { return pileOffsetDown; }
+ int getAnzCardsInPile() {
+ int anz=0;
+ Card *card = cardOnBottom();
+ while (card != NULL) { anz++; card = cardInfront(card); }
+ return anz;
+ }
@@ -60,2 +67,3 @@ public:
void setHeight(int height) { pileHeight = height; }
+ void setOffsetDown(int down) { pileOffsetDown = down; }
@@ -64,2 +72,6 @@ public:
bool isDealing() { return dealing; }
+
+ void beginPileResize() { PileResize = TRUE; }
+ void endPileResize() { PileResize = FALSE; }
+ bool isPileResize() { return PileResize; }
@@ -94,4 +106,6 @@ protected:
int pileRadius;
+ int pileOffsetDown;
private:
bool dealing;
+ bool PileResize;
};