Diffstat (limited to 'noncore/games/solitaire/card.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/solitaire/card.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/games/solitaire/card.h b/noncore/games/solitaire/card.h index eb30d30..68ce425 100644 --- a/noncore/games/solitaire/card.h +++ b/noncore/games/solitaire/card.h | |||
@@ -54,12 +54,15 @@ public: | |||
54 | void setFace(bool f) { faceUp = f; /* flip(); */ } | 54 | void setFace(bool f) { faceUp = f; /* flip(); */ } |
55 | bool isFacing() { return faceUp; } | 55 | bool isFacing() { return faceUp; } |
56 | 56 | ||
57 | bool isShowing() { return showing; } | 57 | bool isShowing() { return showing; } |
58 | bool isRed() { return ((suit == diamonds) || (suit == hearts)); } | 58 | bool isRed() { return ((suit == diamonds) || (suit == hearts)); } |
59 | 59 | ||
60 | int getDeckNumber() { return deckNumber; } | ||
61 | void setDeckNumber(int n) { deckNumber=n; } | ||
62 | |||
60 | int getX(void) { return ix; } | 63 | int getX(void) { return ix; } |
61 | int getY(void) { return iy; } | 64 | int getY(void) { return iy; } |
62 | int getZ(void) { return iz; } | 65 | int getZ(void) { return iz; } |
63 | void flip(void) { flipTo(getX(), getY()); } | 66 | void flip(void) { flipTo(getX(), getY()); } |
64 | 67 | ||
65 | virtual void setPos(int x, int y, int z) { ix = x; iy = y; iz = z; } | 68 | virtual void setPos(int x, int y, int z) { ix = x; iy = y; iz = z; } |
@@ -72,12 +75,13 @@ protected: | |||
72 | virtual void redraw(void) { } | 75 | virtual void redraw(void) { } |
73 | private: | 76 | private: |
74 | eValue val; | 77 | eValue val; |
75 | eSuit suit; | 78 | eSuit suit; |
76 | bool faceUp; | 79 | bool faceUp; |
77 | bool showing; | 80 | bool showing; |
81 | int deckNumber; | ||
78 | int ix, iy, iz; | 82 | int ix, iy, iz; |
79 | CardPile *cardPile; | 83 | CardPile *cardPile; |
80 | }; | 84 | }; |
81 | 85 | ||
82 | 86 | ||
83 | #endif | 87 | #endif |