summaryrefslogtreecommitdiff
path: root/noncore/games/oyatzee/oyatzee.h
authorcniehaus <cniehaus>2003-08-12 19:06:14 (UTC)
committer cniehaus <cniehaus>2003-08-12 19:06:14 (UTC)
commitdb952faa29fa56602b061ef4faff61cc57f71243 (patch) (side-by-side diff)
tree9b4d36895e0e9a07ff6c66e17c1bb9e0bf9daca0 /noncore/games/oyatzee/oyatzee.h
parent713725e85c03c3bbbc0358301ed84241c6d0dd5b (diff)
downloadopie-db952faa29fa56602b061ef4faff61cc57f71243.zip
opie-db952faa29fa56602b061ef4faff61cc57f71243.tar.gz
opie-db952faa29fa56602b061ef4faff61cc57f71243.tar.bz2
ok, now OYatzee checks for what the user got (Full House and such)
Diffstat (limited to 'noncore/games/oyatzee/oyatzee.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/oyatzee/oyatzee.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/noncore/games/oyatzee/oyatzee.h b/noncore/games/oyatzee/oyatzee.h
index 01ab36d..65a18fc 100644
--- a/noncore/games/oyatzee/oyatzee.h
+++ b/noncore/games/oyatzee/oyatzee.h
@@ -14,6 +14,7 @@ class Scoreboard;
class DiceWidget;
typedef QList<Dice> dicesList;
+typedef QValueList<int> QValueListInt;
class OYatzee : public QMainWindow {
Q_OBJECT
@@ -25,9 +26,25 @@ class OYatzee : public QMainWindow {
DiceWidget *dw;
Scoreboard *sb;
+ QValueListInt posibilities;
void setPlayerNumber( const int num );
void setRoundsNumber( const int num );
+
+ enum {
+ Ones=1,
+ Twos = 2,
+ Threes = 3,
+ Fours = 4,
+ Fives = 5,
+ Sixes = 6,
+ ThreeOfAKind = 7, //12444
+ FourOfAKind = 8, //14444
+ FullHouse = 9, //22555
+ SStraight = 10, //13456
+ LStraight = 11, //12345
+ Yatzee = 12, //55555
+ Chance = 13};
public slots:
void slotStartGame();
@@ -38,6 +55,8 @@ class OYatzee : public QMainWindow {
int numOfRounds;
void detectPosibilities();
+ void displayPossibilites();
+
};
class Dice : public QFrame