#include </home/clem/local/src/opie/noncore/games/oyatzee/oyatzee.h>
Collaboration diagram for OYatzee:

Public Types | |
| enum | { Ones = 1, Twos = 2, Threes = 3, Fours = 4, Fives = 5, Sixes = 6, ThreeOfAKind = 9, FourOfAKind = 10, FullHouse = 11, SStraight = 12, LStraight = 13, Yatzee = 14, Chance = 15 } |
Public Slots | |
| void | slotStartGame () |
| void | slotRollDices () |
| void | slotEndRound (int) |
Public Member Functions | |
| OYatzee (QWidget *parent=0, const char *name=0, WFlags fl=0) | |
| ~OYatzee () | |
| Game * | g () |
| void | setPlayerNumber (const int num) |
| void | setRoundsNumber (const int num) |
Static Public Member Functions | |
| static QString | appName () |
Public Attributes | |
| DiceWidget * | dw |
| Scoreboard * | sb |
| QValueListInt | posibilities |
| playerList | ps |
Private Member Functions | |
| void | nextPlayer () |
| void | detectPosibilities () |
| void | displayPossibilites () |
| int | getPoints (const int, QValueListInt) |
| void | startGame () |
| void | stopGame () |
Private Attributes | |
| int | numOfPlayers |
| int | numOfRounds |
| int | currentPlayer |
| int | oakPoints |
| bool | lastPlayerFinished |
|
|
|
|
||||||||||||||||
|
Definition at line 16 of file oyatzee.cpp. References currentPlayer, dw, lastPlayerFinished, Scoreboard::pb, Player, ps, DiceWidget::rollButton, sb, setPlayerNumber(), setRoundsNumber(), slotEndRound(), slotRollDices(), and tr. |
|
|
Definition at line 158 of file oyatzee.cpp. |
|
|
Definition at line 33 of file oyatzee.h. References QString::fromLatin1(). |
|
|
Definition at line 162 of file oyatzee.cpp. References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::clear(), d, DiceWidget::diceList, dw, QValueList< T >::end(), QValueList< T >::find(), Dice::hasValue(), i, odebug, oendl, and posibilities. Referenced by slotRollDices(). |
|
|
Definition at line 266 of file oyatzee.cpp. References Scoreboard::pb, posibilities, sb, and Possibilityboard::setIntlist(). |
|
|
|
|
||||||||||||
|
Definition at line 133 of file oyatzee.cpp. References QValueList< T >::begin(), Chance, and QValueList< T >::end(). Referenced by slotEndRound(). |
|
|
Definition at line 121 of file oyatzee.cpp. References currentPlayer, numOfPlayers, and ps. Referenced by slotEndRound(). |
|
|
Definition at line 328 of file oyatzee.cpp. References numOfPlayers. Referenced by OYatzee(). |
|
|
Definition at line 333 of file oyatzee.cpp. References numOfRounds. Referenced by OYatzee(). |
|
|
Definition at line 48 of file oyatzee.cpp. References QValueList< T >::append(), Chance, currentPlayer, d, DiceWidget::diceList, dw, QValueList< T >::end(), QValueList< T >::find(), Fives, FourOfAKind, Fours, FullHouse, getPoints(), Dice::hasValue(), LStraight, nextPlayer(), Scoreboard::nextRB(), oakPoints, odebug, oendl, Ones, posibilities, sb, Sixes, SStraight, ThreeOfAKind, Threes, Twos, and Yatzee. Referenced by OYatzee(). |
|
|
Definition at line 342 of file oyatzee.cpp. References currentPlayer, d, detectPosibilities(), DiceWidget::diceList, dw, Dice::isSelected, odebug, oendl, ps, Dice::roll(), and tr. Referenced by OYatzee(). |
|
|
Definition at line 338 of file oyatzee.cpp. |
|
|
Definition at line 319 of file oyatzee.cpp. |
|
|
Definition at line 326 of file oyatzee.cpp. |
|
|
Definition at line 67 of file oyatzee.h. Referenced by nextPlayer(), OYatzee(), slotEndRound(), and slotRollDices(). |
|
|
Definition at line 36 of file oyatzee.h. Referenced by detectPosibilities(), OYatzee(), slotEndRound(), and slotRollDices(). |
|
|
Definition at line 73 of file oyatzee.h. Referenced by OYatzee(). |
|
|
Definition at line 65 of file oyatzee.h. Referenced by nextPlayer(), and setPlayerNumber(). |
|
|
Definition at line 66 of file oyatzee.h. Referenced by setRoundsNumber(). |
|
|
Definition at line 69 of file oyatzee.h. Referenced by slotEndRound(). |
|
|
Definition at line 39 of file oyatzee.h. Referenced by detectPosibilities(), displayPossibilites(), and slotEndRound(). |
|
|
Definition at line 40 of file oyatzee.h. Referenced by nextPlayer(), OYatzee(), and slotRollDices(). |
|
|
Definition at line 37 of file oyatzee.h. Referenced by displayPossibilites(), OYatzee(), and slotEndRound(). |
1.4.2