ReactOS 0.4.16-dev-122-g325d74c
|
#include <cardstack.h>
Public Member Functions | |
CardStack () | |
void | NewDeck () |
int | NumCards () const |
void | Shuffle () |
void | Clear () |
void | Reverse () |
void | Push (const Card card) |
void | Push (const CardStack &cardstack) |
Card | Pop () |
CardStack | Pop (int items) |
Card | Top () |
CardStack | Top (int items) |
void | Print () |
Card | RemoveCard (size_t index) |
void | InsertCard (size_t index, Card card) |
Card & | operator[] (size_t index) |
const Card & | operator[] (size_t index) const |
CardStack & | operator+= (Card card) |
CardStack & | operator+= (CardStack &cs) |
CardStack | operator+ (Card card) |
CardStack | operator+ (CardStack &cs) |
Private Member Functions | |
CardStack (CardStack ©this, size_t fromindex) | |
Private Attributes | |
Card | cardlist [MAX_CARDSTACK_SIZE] |
int | nNumCards |
Friends | |
class | CardRegion |
Definition at line 6 of file cardstack.h.
|
inline |
Definition at line 11 of file cardstack.h.
Definition at line 228 of file cardstack.cpp.
void CardStack::Clear | ( | ) |
Definition at line 37 of file cardstack.cpp.
Referenced by CardRegion::Clear(), CreateSol(), DeckClickProc(), and NewGame().
Definition at line 192 of file cardstack.cpp.
void CardStack::NewDeck | ( | ) |
|
inline |
Definition at line 14 of file cardstack.h.
Referenced by CardRegion::CalcApparentCards(), CanDrop(), CardRegion::Clip(), DeckClickProc(), CardRegion::GetNumDragCards(), CardRegion::MoveCard(), CardRegion::NumCards(), CardRegion::PlayCard(), CardRegion::PrepareDragBitmaps(), CardRegion::PrepareDragBitmapsThreed(), Push(), CardRegion::Render(), RowStackDropProc(), StackDropProc(), SuitStackDropProc(), CardRegion::UpdateFaceDir(), CardRegion::UpdateSize(), and CardRegion::ZoomCard().
Definition at line 112 of file cardstack.cpp.
Definition at line 119 of file cardstack.cpp.
Definition at line 100 of file cardstack.cpp.
Definition at line 106 of file cardstack.cpp.
Card CardStack::Pop | ( | ) |
Definition at line 127 of file cardstack.cpp.
Referenced by DeckClickProc(), CardRegion::MoveCard(), NewGame(), CardRegion::OnLButtonDown(), PileRemoveProc(), CardRegion::Pop(), and Undo().
Definition at line 135 of file cardstack.cpp.
void CardStack::Print | ( | ) |
Definition at line 222 of file cardstack.cpp.
Referenced by DeckClickProc().
Definition at line 83 of file cardstack.cpp.
Referenced by CreatePlayDeck(), DeckClickProc(), operator+(), operator+=(), CardRegion::PlayCard(), CardRegion::Push(), and Undo().
Definition at line 89 of file cardstack.cpp.
Definition at line 172 of file cardstack.cpp.
Referenced by CardRegion::PlayCard().
void CardStack::Reverse | ( | ) |
void CardStack::Shuffle | ( | ) |
Definition at line 50 of file cardstack.cpp.
Referenced by NewGame(), and CardRegion::Shuffle().
Card CardStack::Top | ( | ) |
Definition at line 151 of file cardstack.cpp.
Referenced by CardRegion::Top(), and Undo().
|
friend |
Definition at line 8 of file cardstack.h.
|
private |
Definition at line 47 of file cardstack.h.
Referenced by CardStack(), InsertCard(), NewDeck(), operator[](), Pop(), CardRegion::PrepareDragBitmaps(), CardRegion::PrepareDragBitmapsThreed(), Push(), RemoveCard(), CardRegion::Render(), Reverse(), Shuffle(), and Top().
|
private |
Definition at line 48 of file cardstack.h.
Referenced by CardStack(), Clear(), InsertCard(), NewDeck(), NumCards(), operator[](), Pop(), Push(), RemoveCard(), Reverse(), Shuffle(), and Top().