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

ChicaneWorkingPile Class Reference

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

Inheritance diagram for ChicaneWorkingPile:

Inheritance graph
[legend]
Collaboration diagram for ChicaneWorkingPile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Attributes

QPoint top

Constructor & Destructor Documentation

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

Definition at line 57 of file chicanecardgame.h.


Member Function Documentation

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

Reimplemented from PatienceWorkingPile.

Definition at line 88 of file chicanecardgame.h.

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

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

Reimplemented from PatienceWorkingPile.

Definition at line 112 of file chicanecardgame.h.

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

Referenced by cardRemoved(), and ChicaneCardGame::mousePressCard().

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

Reimplemented from PatienceWorkingPile.

Definition at line 128 of file chicanecardgame.h.

References CardPile::getNextX(), and CardPile::getNextY().

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

Reimplemented from PatienceWorkingPile.

Definition at line 60 of file chicanecardgame.h.

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

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

Reimplemented from PatienceWorkingPile.

Definition at line 70 of file chicanecardgame.h.

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


Member Data Documentation

QPoint ChicaneWorkingPile::top [private]
 

Reimplemented from PatienceWorkingPile.

Definition at line 134 of file chicanecardgame.h.

Referenced by cardRemoved().


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