Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PatienceWorkingPile Class Reference

#include </home/clem/local/src/opie/noncore/games/solitaire/patiencecardgame.h>

Inheritance diagram for PatienceWorkingPile:

Inheritance graph
[legend]
Collaboration diagram for PatienceWorkingPile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PatienceWorkingPile (int x, int y, QCanvas *canvas)
virtual bool isAllowedOnTop (Card *card)
virtual bool isAllowedToBeMoved (Card *card)
virtual void cardAddedToTop (Card *card)
virtual void cardRemoved (Card *card)
virtual QPoint getCardPos (Card *c)
virtual QPoint getHypertheticalNextCardPos (void)

Private Attributes

QPoint top

Constructor & Destructor Documentation

PatienceWorkingPile::PatienceWorkingPile int  x,
int  y,
QCanvas *  canvas
[inline]
 

Definition at line 99 of file patiencecardgame.h.


Member Function Documentation

virtual void PatienceWorkingPile::cardAddedToTop Card card  )  [inline, virtual]
 

Reimplemented from CardPile.

Reimplemented in FreecellWorkingPile, and TeeclubWorkingPile.

Definition at line 115 of file patiencecardgame.h.

References getCardPos(), NULL, CardPile::setNextX(), CardPile::setNextY(), and top.

Referenced by FreecellWorkingPile::cardAddedToTop().

virtual void PatienceWorkingPile::cardRemoved Card card  )  [inline, virtual]
 

Reimplemented from CardPile.

Reimplemented in ChicaneWorkingPile, FreecellWorkingPile, HarpWorkingPile, and TeeclubWorkingPile.

Definition at line 121 of file patiencecardgame.h.

References CardPile::cardOnTop(), FALSE, Card::flipTo(), getCardPos(), Card::isFacing(), NULL, CardPile::pileX, CardPile::pileY, CardPile::setNextX(), CardPile::setNextY(), and top.

Referenced by FreecellWorkingPile::cardRemoved().

virtual QPoint PatienceWorkingPile::getCardPos Card c  )  [inline, virtual]
 

Reimplemented from CardPile.

Reimplemented in ChicaneWorkingPile, HarpWorkingPile, and TeeclubWorkingPile.

Definition at line 145 of file patiencecardgame.h.

References CardPile::cardInfront(), CardPile::cardOnBottom(), Card::isFacing(), NULL, CardPile::pileX, CardPile::pileY, Opie::MM::x, and Opie::MM::y.

Referenced by cardAddedToTop(), cardRemoved(), and PatienceCardGame::deal().

virtual QPoint PatienceWorkingPile::getHypertheticalNextCardPos void   )  [inline, virtual]
 

Reimplemented from CardPile.

Reimplemented in ChicaneWorkingPile, HarpWorkingPile, and TeeclubWorkingPile.

Definition at line 160 of file patiencecardgame.h.

References top.

virtual bool PatienceWorkingPile::isAllowedOnTop Card card  )  [inline, virtual]
 

Reimplemented from CardPile.

Reimplemented in ChicaneWorkingPile, FreecellWorkingPile, HarpWorkingPile, and TeeclubWorkingPile.

Definition at line 101 of file patiencecardgame.h.

References CardPile::cardOnTop(), FALSE, Card::getValue(), Card::isFacing(), Card::isRed(), king, NULL, and TRUE.

Referenced by FreecellWorkingPile::isAllowedOnTop().

virtual bool PatienceWorkingPile::isAllowedToBeMoved Card card  )  [inline, virtual]
 

Reimplemented from CardPile.

Reimplemented in ChicaneWorkingPile, FreecellWorkingPile, HarpWorkingPile, and TeeclubWorkingPile.

Definition at line 110 of file patiencecardgame.h.

References FALSE, Card::isFacing(), and TRUE.


Member Data Documentation

QPoint PatienceWorkingPile::top [private]
 

Reimplemented in ChicaneWorkingPile, HarpWorkingPile, and TeeclubWorkingPile.

Definition at line 165 of file patiencecardgame.h.

Referenced by cardAddedToTop(), cardRemoved(), and getHypertheticalNextCardPos().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:44:25 2005 for OPIE by  doxygen 1.4.2