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

TeeclubWorkingPile Class Reference

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

Inheritance diagram for TeeclubWorkingPile:

Inheritance graph
[legend]
Collaboration diagram for TeeclubWorkingPile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TeeclubWorkingPile (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)
virtual void cardAddedToTop (Card *c)

Private Attributes

QPoint top

Constructor & Destructor Documentation

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

Definition at line 71 of file teeclubcardgame.h.


Member Function Documentation

virtual void TeeclubWorkingPile::cardAddedToTop Card c  )  [inline, virtual]
 

Reimplemented from PatienceWorkingPile.

Definition at line 162 of file teeclubcardgame.h.

References CardPile::beginDealing(), CardPile::cardInfront(), CardPile::cardOnBottom(), CardPile::endDealing(), getCardPos(), CardPile::getOffsetDown(), CardPile::isPileResize(), Card::move(), NULL, p, CardPile::setNextX(), CardPile::setNextY(), CardPile::setOffsetDown(), Card::setPos(), Opie::MM::x, and Opie::MM::y.

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

Reimplemented from PatienceWorkingPile.

Definition at line 102 of file teeclubcardgame.h.

References CardPile::beginDealing(), CardPile::cardInfront(), CardPile::cardOnBottom(), CardPile::cardOnTop(), CardPile::endDealing(), FALSE, Card::flipTo(), Card::getCardPile(), getCardPos(), CardPile::getOffsetDown(), Card::isFacing(), Card::move(), NULL, p, CardPile::pileX, CardPile::pileY, CardPile::setNextX(), CardPile::setNextY(), CardPile::setOffsetDown(), Card::setPos(), top, and Opie::MM::y.

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

Reimplemented from PatienceWorkingPile.

Definition at line 142 of file teeclubcardgame.h.

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

Referenced by cardAddedToTop(), and cardRemoved().

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

Reimplemented from PatienceWorkingPile.

Definition at line 158 of file teeclubcardgame.h.

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

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

Reimplemented from PatienceWorkingPile.

Definition at line 74 of file teeclubcardgame.h.

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

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

Reimplemented from PatienceWorkingPile.

Definition at line 85 of file teeclubcardgame.h.

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


Member Data Documentation

QPoint TeeclubWorkingPile::top [private]
 

Reimplemented from PatienceWorkingPile.

Definition at line 187 of file teeclubcardgame.h.

Referenced by cardRemoved().


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