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

CanvasCardPile Class Reference

Collaboration diagram for CanvasCardPile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CanvasCardPile (CanvasCardGame *ccg, QCanvas *canvas)
void addCard (CanvasCard *card)
void advance (int stage)
void animatedMove ()
void savePos (void)
void animatedMove (int x2, int y2, int steps=7)

Protected Member Functions

virtual void draw (QPainter &p)

Private Attributes

CanvasCardGameparent
QPixmap * pile
QImage tempImage32
CanvasCardfirstCard
int pileHeight
int destX
int destY
int savedX
int savedY
int animSteps

Constructor & Destructor Documentation

CanvasCardPile::CanvasCardPile CanvasCardGame ccg,
QCanvas *  canvas
[inline]
 

Definition at line 38 of file canvascardgame.cpp.

References firstCard, NULL, pile, and pileHeight.


Member Function Documentation

void CanvasCardPile::addCard CanvasCard card  ) 
 

Definition at line 65 of file canvascardgame.cpp.

References alpha, col, CanvasCard::draw(), firstCard, height, i, p, pile, pileHeight, tempImage32, and TRUE.

Referenced by CanvasCardGame::contentsMousePressEvent().

void CanvasCardPile::advance int  stage  ) 
 

Definition at line 113 of file canvascardgame.cpp.

References animSteps, CanvasCardGame::cancelMoving(), destX, destY, FALSE, firstCard, Card::getCardPile(), and parent.

void CanvasCardPile::animatedMove int  x2,
int  y2,
int  steps = 7
 

Definition at line 133 of file canvascardgame.cpp.

References animSteps, destX, destY, fabs(), TRUE, Opie::MM::x, and Opie::MM::y.

void CanvasCardPile::animatedMove  )  [inline]
 

Definition at line 46 of file canvascardgame.cpp.

References savedX, and savedY.

void CanvasCardPile::draw QPainter &  p  )  [protected, virtual]
 

Definition at line 151 of file canvascardgame.cpp.

References tempImage32, Opie::MM::x, and Opie::MM::y.

void CanvasCardPile::savePos void   )  [inline]
 

Definition at line 47 of file canvascardgame.cpp.

References savedX, savedY, Opie::MM::x, and Opie::MM::y.

Referenced by CanvasCardGame::contentsMousePressEvent().


Member Data Documentation

int CanvasCardPile::animSteps [private]
 

Definition at line 61 of file canvascardgame.cpp.

Referenced by advance(), and animatedMove().

int CanvasCardPile::destX [private]
 

Definition at line 59 of file canvascardgame.cpp.

Referenced by advance(), and animatedMove().

int CanvasCardPile::destY [private]
 

Definition at line 59 of file canvascardgame.cpp.

Referenced by advance(), and animatedMove().

CanvasCard* CanvasCardPile::firstCard [private]
 

Definition at line 57 of file canvascardgame.cpp.

Referenced by addCard(), advance(), and CanvasCardPile().

CanvasCardGame* CanvasCardPile::parent [private]
 

Definition at line 54 of file canvascardgame.cpp.

Referenced by advance().

QPixmap* CanvasCardPile::pile [private]
 

Definition at line 55 of file canvascardgame.cpp.

Referenced by addCard(), and CanvasCardPile().

int CanvasCardPile::pileHeight [private]
 

Definition at line 58 of file canvascardgame.cpp.

Referenced by addCard(), and CanvasCardPile().

int CanvasCardPile::savedX [private]
 

Definition at line 60 of file canvascardgame.cpp.

Referenced by animatedMove(), and savePos().

int CanvasCardPile::savedY [private]
 

Definition at line 60 of file canvascardgame.cpp.

Referenced by animatedMove(), and savePos().

QImage CanvasCardPile::tempImage32 [private]
 

Definition at line 56 of file canvascardgame.cpp.

Referenced by addCard(), and draw().


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