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

HarpCardGame Class Reference

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

Inheritance diagram for HarpCardGame:

Inheritance graph
[legend]
Collaboration diagram for HarpCardGame:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HarpCardGame (QCanvas *c, bool snap, QWidget *parent=0)
virtual void deal (void)
virtual bool haveWeWon ()
virtual void mousePress (QPoint p)
virtual void mouseRelease (QPoint p)
virtual bool mousePressCard (Card *card, QPoint p)
virtual void mouseReleaseCard (Card *card, QPoint p)
bool canTurnOverDeck (void)
void throughDeck (void)
void writeConfig (Config &cfg)
void readConfig (Config &cfg)

Public Attributes

bool snapOn

Private Attributes

HarpWorkingPileworkingPiles [8]
HarpDiscardPilediscardPiles [8]
HarpFaceDownDeckfaceDownDealingPile

Constructor & Destructor Documentation

HarpCardGame::HarpCardGame QCanvas *  c,
bool  snap,
QWidget *  parent = 0
 

Definition at line 37 of file harpcardgame.cpp.

References CardGameLayout::addCardPile(), discardPiles, faceDownDealingPile, highestZ, i, and workingPiles.


Member Function Documentation

bool HarpCardGame::canTurnOverDeck void   )  [inline]
 

Definition at line 162 of file harpcardgame.h.

References FALSE.

void HarpCardGame::deal void   )  [virtual]
 

Reimplemented from CardDeck.

Definition at line 53 of file harpcardgame.cpp.

References CardPile::addCardToTop(), CardGameLayout::beginDealing(), CardDeck::cards, CardGameLayout::endDealing(), faceDownDealingPile, CardDeck::getNumberOfCards(), highestZ, i, Card::move(), p, Card::setCardPile(), Card::setFace(), Card::setPos(), Card::showCard(), t, and workingPiles.

virtual bool HarpCardGame::haveWeWon  )  [inline, virtual]
 

Reimplemented from CanvasCardGame.

Definition at line 146 of file harpcardgame.h.

References discardPiles.

void HarpCardGame::mousePress QPoint  p  )  [virtual]
 

Reimplemented from CardGame.

Definition at line 173 of file harpcardgame.cpp.

bool HarpCardGame::mousePressCard Card card,
QPoint  p
[virtual]
 

Reimplemented from CanvasCardGame.

Definition at line 136 of file harpcardgame.cpp.

References CardPile::addCardToTop(), CardGameLayout::beginDealing(), CardPile::cardOnTop(), CardGameLayout::endDealing(), faceDownDealingPile, FALSE, Card::getCardPile(), HarpWorkingPile::getCardPos(), highestZ, i, Card::isFacing(), CanvasCardGame::moved, CanvasCardGame::moving, NULL, CardPile::removeCard(), TRUE, and workingPiles.

virtual void HarpCardGame::mouseRelease QPoint  p  )  [inline, virtual]
 

Reimplemented from CardGame.

Definition at line 157 of file harpcardgame.h.

virtual void HarpCardGame::mouseReleaseCard Card card,
QPoint  p
[inline, virtual]
 

Reimplemented from CanvasCardGame.

Definition at line 160 of file harpcardgame.h.

void HarpCardGame::readConfig Config cfg  )  [virtual]
 

Reimplemented from CanvasCardGame.

Definition at line 87 of file harpcardgame.cpp.

References CardGameLayout::beginDealing(), CardDeck::createDeck(), discardPiles, CardGameLayout::endDealing(), faceDownDealingPile, highestZ, i, CanvasCardGame::readPile(), Config::setGroup(), QString::sprintf(), and workingPiles.

void HarpCardGame::throughDeck void   )  [inline]
 

Definition at line 163 of file harpcardgame.h.

void HarpCardGame::writeConfig Config cfg  )  [virtual]
 

Reimplemented from CanvasCardGame.

Definition at line 119 of file harpcardgame.cpp.

References discardPiles, faceDownDealingPile, i, Config::setGroup(), QString::sprintf(), workingPiles, and CardPile::writeConfig().


Member Data Documentation

HarpDiscardPile* HarpCardGame::discardPiles[8] [private]
 

Definition at line 169 of file harpcardgame.h.

Referenced by HarpCardGame(), haveWeWon(), readConfig(), and writeConfig().

HarpFaceDownDeck* HarpCardGame::faceDownDealingPile [private]
 

Definition at line 170 of file harpcardgame.h.

Referenced by deal(), HarpCardGame(), mousePressCard(), readConfig(), and writeConfig().

bool HarpCardGame::snapOn
 

Reimplemented from CanvasCardGame.

Definition at line 164 of file harpcardgame.h.

HarpWorkingPile* HarpCardGame::workingPiles[8] [private]
 

Definition at line 168 of file harpcardgame.h.

Referenced by deal(), HarpCardGame(), mousePressCard(), readConfig(), and writeConfig().


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