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

HarpWorkingPile Class Reference

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

Inheritance diagram for HarpWorkingPile:

Inheritance graph
[legend]
Collaboration diagram for HarpWorkingPile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HarpWorkingPile (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

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

Definition at line 58 of file harpcardgame.h.


Member Function Documentation

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

Reimplemented from PatienceWorkingPile.

Definition at line 89 of file harpcardgame.h.

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

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

Reimplemented from PatienceWorkingPile.

Definition at line 113 of file harpcardgame.h.

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

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

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

Reimplemented from PatienceWorkingPile.

Definition at line 129 of file harpcardgame.h.

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

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

Reimplemented from PatienceWorkingPile.

Definition at line 61 of file harpcardgame.h.

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

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

Reimplemented from PatienceWorkingPile.

Definition at line 71 of file harpcardgame.h.

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


Member Data Documentation

QPoint HarpWorkingPile::top [private]
 

Reimplemented from PatienceWorkingPile.

Definition at line 135 of file harpcardgame.h.

Referenced by cardRemoved().


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