#include </home/clem/local/src/opie/noncore/games/tetrix/qtetrixb.h>
Inheritance diagram for QTetrixBoard:


Public Slots | |
| void | timeout () |
| void | updateNext () |
| void | key (QKeyEvent *e) |
| void | start () |
| void | pause () |
Signals | |
| void | gameOverSignal () |
| void | drawNextSquareSignal (int x, int y, QColor *color1) |
| void | updateRemovedSignal (int noOfLines) |
| void | updateScoreSignal (int score) |
| void | updateLevelSignal (int level) |
Public Member Functions | |
| QTetrixBoard (QWidget *parent=0, const char *name=0) | |
| void | gameOver () |
| void | startGame (int gameType=0, int fillRandomLines=0) |
| void | keyPressEvent (QKeyEvent *) |
Private Member Functions | |
| void | drawContents (QPainter *) |
| void | resizeEvent (QResizeEvent *) |
| void | drawSquare (int x, int y, int value) |
| void | drawNextSquare (int x, int y, int value) |
| void | updateRemoved (int noOfLines) |
| void | updateScore (int newScore) |
| void | updateLevel (int newLlevel) |
| void | pieceDropped (int dropHeight) |
| void | updateTimeoutTime () |
Private Attributes | |
| QTimer * | timer |
| int | xOffset |
| int | yOffset |
| int | blockWidth |
| int | blockHeight |
| int | timeoutTime |
| bool | noGame |
| bool | isPaused |
| bool | waitingAfterLine |
| QColor | colors [7] |
| QPainter * | paint |
|
||||||||||||
|
Definition at line 28 of file qtetrixb.cpp. References blockHeight, blockWidth, colors, FALSE, isPaused, noGame, paint, timeout(), timer, TRUE, updateTimeoutTime(), waitingAfterLine, xOffset, and yOffset. |
|
|
Definition at line 168 of file qtetrixb.cpp. References blockHeight, blockWidth, GenericTetrix::boardHeight(), GenericTetrix::boardWidth(), isPaused, paint, text, TRUE, GenericTetrix::updateBoard(), xOffset, and yOffset. |
|
||||||||||||||||
|
Reimplemented from GenericTetrix. Definition at line 111 of file qtetrixb.cpp. References colors, and drawNextSquareSignal(). |
|
||||||||||||||||
|
Referenced by drawNextSquare(). |
|
||||||||||||||||
|
Implements GenericTetrix. Definition at line 80 of file qtetrixb.cpp. References blockHeight, blockWidth, colors, drawTetrixButton(), p, paint, X, xOffset, and yOffset. |
|
|
Implements GenericTetrix. Definition at line 149 of file qtetrixb.cpp. References gameOverSignal(), noGame, timer, and TRUE. |
|
|
Referenced by gameOver(). |
|
|
Definition at line 42 of file qtetrixb.h. References keyPressEvent(). |
|
|
Definition at line 220 of file qtetrixb.cpp. References GenericTetrix::dropDown(), isPaused, Key_D, GenericTetrix::moveLeft(), GenericTetrix::moveRight(), noGame, GenericTetrix::oneLineDown(), GenericTetrix::rotateLeft(), and waitingAfterLine. Referenced by key(), and QTetrix::keyPressEvent(). |
|
|
Definition at line 65 of file qtetrixb.cpp. References GenericTetrix::hideBoard(), isPaused, noGame, timeoutTime, and timer. |
|
|
Reimplemented from GenericTetrix. Definition at line 142 of file qtetrixb.cpp. References GenericTetrix::newPiece(), and waitingAfterLine. |
|
|
Definition at line 207 of file qtetrixb.cpp. References blockHeight, blockWidth, xOffset, and yOffset. |
|
|
Definition at line 43 of file qtetrixb.h. References startGame(). |
|
||||||||||||
|
Reimplemented from GenericTetrix. Definition at line 54 of file qtetrixb.cpp. References FALSE, isPaused, noGame, and GenericTetrix::startGame(). Referenced by start(), and QTetrix::startGame(). |
|
|
Definition at line 156 of file qtetrixb.cpp. References FALSE, GenericTetrix::newPiece(), GenericTetrix::oneLineDown(), timeoutTime, timer, and waitingAfterLine. Referenced by QTetrixBoard(). |
|
|
Reimplemented from GenericTetrix. Definition at line 134 of file qtetrixb.cpp. References timeoutTime, timer, updateLevelSignal(), and updateTimeoutTime(). |
|
|
Referenced by updateLevel(). |
|
|
Reimplemented from GenericTetrix. Definition at line 41 of file qtetrixb.h. References GenericTetrix::updateNext(). |
|
|
Reimplemented from GenericTetrix. Definition at line 119 of file qtetrixb.cpp. References timer, TRUE, updateRemovedSignal(), waitAfterLineTime, and waitingAfterLine. |
|
|
Referenced by updateRemoved(). |
|
|
Reimplemented from GenericTetrix. Definition at line 129 of file qtetrixb.cpp. References updateScoreSignal(). |
|
|
Referenced by updateScore(). |
|
|
Definition at line 250 of file qtetrixb.cpp. References GenericTetrix::getLevel(), and timeoutTime. Referenced by QTetrixBoard(), and updateLevel(). |
|
|
Definition at line 70 of file qtetrixb.h. Referenced by drawContents(), drawSquare(), QTetrixBoard(), and resizeEvent(). |
|
|
Definition at line 70 of file qtetrixb.h. Referenced by drawContents(), drawSquare(), QTetrixBoard(), and resizeEvent(). |
|
|
Definition at line 76 of file qtetrixb.h. Referenced by drawNextSquare(), drawSquare(), and QTetrixBoard(). |
|
|
Definition at line 73 of file qtetrixb.h. Referenced by drawContents(), keyPressEvent(), pause(), QTetrixBoard(), and startGame(). |
|
|
Definition at line 72 of file qtetrixb.h. Referenced by gameOver(), keyPressEvent(), pause(), QTetrixBoard(), and startGame(). |
|
|
Definition at line 77 of file qtetrixb.h. Referenced by drawContents(), drawSquare(), and QTetrixBoard(). |
|
|
Definition at line 71 of file qtetrixb.h. Referenced by pause(), timeout(), updateLevel(), and updateTimeoutTime(). |
|
|
Definition at line 67 of file qtetrixb.h. Referenced by gameOver(), pause(), QTetrixBoard(), timeout(), updateLevel(), and updateRemoved(). |
|
|
Definition at line 74 of file qtetrixb.h. Referenced by keyPressEvent(), pieceDropped(), QTetrixBoard(), timeout(), and updateRemoved(). |
|
|
Definition at line 69 of file qtetrixb.h. Referenced by drawContents(), drawSquare(), QTetrixBoard(), and resizeEvent(). |
|
|
Definition at line 69 of file qtetrixb.h. Referenced by drawContents(), drawSquare(), QTetrixBoard(), and resizeEvent(). |
1.4.2