summaryrefslogtreecommitdiff
path: root/noncore/games/solitaire/cardpile.h
Unidiff
Diffstat (limited to 'noncore/games/solitaire/cardpile.h') (more/less context) (show 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
@@ -52,4 +52,11 @@ public:
52 int getWidth() { return pileWidth; } 52 int getWidth() { return pileWidth; }
53 int getHeight() { return pileHeight; } 53 int getHeight() { return pileHeight; }
54 int getOffsetDown() { return pileOffsetDown; }
55 int getAnzCardsInPile() {
56 int anz=0;
57 Card *card = cardOnBottom();
58 while (card != NULL) { anz++; card = cardInfront(card); }
59 return anz;
60 }
54 61
55 void setX(int x) { pileX = x; } 62 void setX(int x) { pileX = x; }
@@ -59,4 +66,5 @@ public:
59 void setWidth(int width) { pileWidth = width; } 66 void setWidth(int width) { pileWidth = width; }
60 void setHeight(int height) { pileHeight = height; } 67 void setHeight(int height) { pileHeight = height; }
68 void setOffsetDown(int down) { pileOffsetDown = down; }
61 69
62 void beginDealing() { dealing = TRUE; } 70 void beginDealing() { dealing = TRUE; }
@@ -64,4 +72,8 @@ public:
64 bool isDealing() { return dealing; } 72 bool isDealing() { return dealing; }
65 73
74 void beginPileResize() { PileResize = TRUE; }
75 void endPileResize() { PileResize = FALSE; }
76 bool isPileResize() { return PileResize; }
77
66 int distanceFromPile(int x, int y); 78 int distanceFromPile(int x, int y);
67 int distanceFromNextPos(int x, int y); 79 int distanceFromNextPos(int x, int y);
@@ -93,6 +105,8 @@ protected:
93 int pileCenterX, pileCenterY; 105 int pileCenterX, pileCenterY;
94 int pileRadius; 106 int pileRadius;
107 int pileOffsetDown;
95private: 108private:
96 bool dealing; 109 bool dealing;
110 bool PileResize;
97}; 111};
98 112