author | tille <tille> | 2002-07-10 13:05:07 (UTC) |
---|---|---|
committer | tille <tille> | 2002-07-10 13:05:07 (UTC) |
commit | 5d989e509abecf74aaa4eb88abf52a6821d19501 (patch) (side-by-side diff) | |
tree | 3e61348802a9ea05980e91e13344a45be509b7d1 /noncore/games/solitaire/cardpile.h | |
parent | 32954f729822e2d25f9e116400cbf2522a88ce42 (diff) | |
download | opie-5d989e509abecf74aaa4eb88abf52a6821d19501.zip opie-5d989e509abecf74aaa4eb88abf52a6821d19501.tar.gz opie-5d989e509abecf74aaa4eb88abf52a6821d19501.tar.bz2 |
cam implemented new game teeclub and pile resizing
Diffstat (limited to 'noncore/games/solitaire/cardpile.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/solitaire/cardpile.h | 14 |
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: int getWidth() { return pileWidth; } 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; + } void setX(int x) { pileX = x; } @@ -59,8 +66,13 @@ public: void setWidth(int width) { pileWidth = width; } void setHeight(int height) { pileHeight = height; } + void setOffsetDown(int down) { pileOffsetDown = down; } void beginDealing() { dealing = TRUE; } void endDealing() { dealing = FALSE; } bool isDealing() { return dealing; } + + void beginPileResize() { PileResize = TRUE; } + void endPileResize() { PileResize = FALSE; } + bool isPileResize() { return PileResize; } int distanceFromPile(int x, int y); @@ -93,6 +105,8 @@ protected: int pileCenterX, pileCenterY; int pileRadius; + int pileOffsetDown; private: bool dealing; + bool PileResize; }; |