#include </home/clem/local/src/opie/noncore/games/tetrix/tpiece.h>
Public Member Functions | |
| TetrixPiece () | |
| TetrixPiece (int type) | |
| void | setRandomType () |
| void | rotateLeft () |
| void | rotateRight () |
| int | getType () |
| int | getXCoord (int index) |
| int | getYCoord (int index) |
| void | getCoord (int index, int &x, int &y) |
| int | getMinX () |
| int | getMaxX () |
| int | getMinY () |
| int | getMaxY () |
Static Public Member Functions | |
| static void | setRandomSeed (double seed) |
| static int | randomValue (int maxPlusOne) |
Private Member Functions | |
| void | setXCoord (int index, int value) |
| void | setYCoord (int index, int value) |
| void | setCoords (int index, int x, int y) |
| void | initialize (int type) |
Private Attributes | |
| int | pieceType |
| int | coordinates [4][2] |
Static Private Attributes | |
| static double | randomSeed = 0.33333 |
|
|
Definition at line 28 of file tpiece.h. References setRandomType(). |
|
|
Definition at line 29 of file tpiece.h. References initialize(). |
|
||||||||||||||||
|
Definition at line 39 of file tpiece.h. References coordinates. Referenced by GenericTetrix::canMoveTo(), GenericTetrix::canPosition(), GenericTetrix::erasePiece(), GenericTetrix::gluePiece(), GenericTetrix::optimizedMove(), GenericTetrix::showNextPiece(), and GenericTetrix::showPiece(). |
|
|
Definition at line 60 of file tpiece.cpp. References coordinates. Referenced by GenericTetrix::showNextPiece(). |
|
|
Definition at line 79 of file tpiece.cpp. References coordinates. Referenced by GenericTetrix::showNextPiece(). |
|
|
Definition at line 51 of file tpiece.cpp. References coordinates, and i. Referenced by GenericTetrix::showNextPiece(). |
|
|
Definition at line 70 of file tpiece.cpp. References coordinates. Referenced by GenericTetrix::gluePiece(), GenericTetrix::newPiece(), and GenericTetrix::showNextPiece(). |
|
|
Definition at line 36 of file tpiece.h. References pieceType. Referenced by GenericTetrix::gluePiece(), GenericTetrix::optimizedMove(), GenericTetrix::showNextPiece(), and GenericTetrix::showPiece(). |
|
|
Definition at line 37 of file tpiece.h. References coordinates. Referenced by rotateLeft(), and rotateRight(). |
|
|
Definition at line 38 of file tpiece.h. References coordinates. Referenced by rotateLeft(), and rotateRight(). |
|
|
Definition at line 88 of file tpiece.cpp. References coordinates, i, and pieceType. Referenced by setRandomType(), and TetrixPiece(). |
|
|
Definition at line 192 of file tpiece.cpp. References randomSeed. Referenced by GenericTetrix::fillRandom(), and setRandomType(). |
|
|
Definition at line 27 of file tpiece.cpp. References getXCoord(), getYCoord(), i, pieceType, setXCoord(), and setYCoord(). Referenced by GenericTetrix::rotateLeft(). |
|
|
Definition at line 39 of file tpiece.cpp. References getXCoord(), getYCoord(), i, pieceType, setXCoord(), and setYCoord(). Referenced by GenericTetrix::rotateRight(). |
|
||||||||||||||||
|
Definition at line 52 of file tpiece.h. References coordinates. |
|
|
Definition at line 174 of file tpiece.cpp. References i, randomSeed, and QCString::sprintf(). Referenced by QTetrix::QTetrix(). |
|
|
Definition at line 31 of file tpiece.h. References initialize(), and randomValue(). Referenced by GenericTetrix::newPiece(), and TetrixPiece(). |
|
||||||||||||
|
Definition at line 50 of file tpiece.h. References coordinates. Referenced by rotateLeft(), and rotateRight(). |
|
||||||||||||
|
Definition at line 51 of file tpiece.h. References coordinates. Referenced by rotateLeft(), and rotateRight(). |
|
|
Definition at line 57 of file tpiece.h. Referenced by getCoord(), getMaxX(), getMaxY(), getMinX(), getMinY(), getXCoord(), getYCoord(), initialize(), setCoords(), setXCoord(), and setYCoord(). |
|
|
Definition at line 56 of file tpiece.h. Referenced by getType(), initialize(), rotateLeft(), and rotateRight(). |
|
|
Definition at line 172 of file tpiece.cpp. Referenced by randomValue(), and setRandomSeed(). |
1.4.2