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

QTetrix Class Reference

#include </home/clem/local/src/opie/noncore/games/tetrix/qtetrix.h>

Collaboration diagram for QTetrix:

Collaboration graph
[legend]
List of all members.

Public Slots

void setup ()
void gameOver ()
void quit ()
void setNext (int x, int y, QColor *color)

Public Member Functions

 QTetrix (QWidget *parent=0, const char *name=0, WFlags f=0)
void startGame ()

Static Public Member Functions

static QString appName ()

Private Member Functions

void keyPressEvent (QKeyEvent *e)
void resizeEvent (QResizeEvent *)

Private Attributes

QTetrixBoardboard
ShowNextPieceshowNext
QLabel * showScore
QLabel * showLevel
QLabel * showLines

Constructor & Destructor Documentation

QTetrix::QTetrix QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 97 of file qtetrix.cpp.

References board, QTime::currentTime(), gameOver(), QTime::hour(), l, Opie::Core::OResource::loadPixmap(), QTime::minute(), GenericTetrix::revealNextPiece(), QTime::second(), setNext(), TetrixPiece::setRandomSeed(), setup(), showLevel, showLines, showNext, showScore, start, t, tr, and TRUE.


Member Function Documentation

static QString QTetrix::appName  )  [inline, static]
 

Definition at line 55 of file qtetrix.h.

References QString::fromLatin1().

void QTetrix::gameOver  )  [slot]
 

Definition at line 165 of file qtetrix.cpp.

References OHighscore::getName(), OHighscore::insertData(), OHighscore::isNewhighscore, showLevel, and showScore.

Referenced by QTetrix().

void QTetrix::keyPressEvent QKeyEvent *  e  )  [inline, private]
 

Definition at line 70 of file qtetrix.h.

References board, and QTetrixBoard::keyPressEvent().

void QTetrix::quit  )  [slot]
 

Definition at line 174 of file qtetrix.cpp.

void QTetrix::resizeEvent QResizeEvent *   )  [private]
 

Definition at line 185 of file qtetrix.cpp.

References board, GenericTetrix::boardHeight(), GenericTetrix::boardWidth(), and showNext.

Referenced by setNext(), and setup().

void QTetrix::setNext int  x,
int  y,
QColor *  color
[slot]
 

Definition at line 179 of file qtetrix.cpp.

References ShowNextPiece::drawNextSquare(), resizeEvent(), and showNext.

Referenced by QTetrix().

void QTetrix::setup  )  [slot]
 

Definition at line 160 of file qtetrix.cpp.

References resizeEvent().

Referenced by QTetrix().

void QTetrix::startGame  )  [inline]
 

Definition at line 57 of file qtetrix.h.

References board, and QTetrixBoard::startGame().


Member Data Documentation

QTetrixBoard* QTetrix::board [private]
 

Definition at line 73 of file qtetrix.h.

Referenced by keyPressEvent(), QTetrix(), resizeEvent(), and startGame().

QLabel* QTetrix::showLevel [private]
 

Definition at line 76 of file qtetrix.h.

Referenced by gameOver(), and QTetrix().

QLabel* QTetrix::showLines [private]
 

Definition at line 77 of file qtetrix.h.

Referenced by QTetrix().

ShowNextPiece* QTetrix::showNext [private]
 

Definition at line 74 of file qtetrix.h.

Referenced by QTetrix(), resizeEvent(), and setNext().

QLabel* QTetrix::showScore [private]
 

Definition at line 75 of file qtetrix.h.

Referenced by gameOver(), and QTetrix().


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