Diffstat (limited to 'noncore/games/oyatzee/oyatzee.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/oyatzee/oyatzee.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/games/oyatzee/oyatzee.h b/noncore/games/oyatzee/oyatzee.h index 048a733..a38182d 100644 --- a/noncore/games/oyatzee/oyatzee.h +++ b/noncore/games/oyatzee/oyatzee.h | |||
@@ -9,48 +9,49 @@ | |||
9 | 9 | ||
10 | #include <stdlib.h> // rand() function | 10 | #include <stdlib.h> // rand() function |
11 | #include <qdatetime.h> // seed for rand() | 11 | #include <qdatetime.h> // seed for rand() |
12 | 12 | ||
13 | class Dice; | 13 | class Dice; |
14 | class Game; | 14 | class Game; |
15 | class Scoreboard; | 15 | class Scoreboard; |
16 | class DiceWidget; | 16 | class DiceWidget; |
17 | class Resultboard; | 17 | class Resultboard; |
18 | class Player; | 18 | class Player; |
19 | 19 | ||
20 | class QPoint; | 20 | class QPoint; |
21 | 21 | ||
22 | typedef QList<Dice> dicesList; | 22 | typedef QList<Dice> dicesList; |
23 | typedef QList<Resultboard> resultboardList; | 23 | typedef QList<Resultboard> resultboardList; |
24 | typedef QValueList<int> QValueListInt; | 24 | typedef QValueList<int> QValueListInt; |
25 | typedef QList<Player> playerList; | 25 | typedef QList<Player> playerList; |
26 | typedef QMap<int,int> pointMap; | 26 | typedef QMap<int,int> pointMap; |
27 | 27 | ||
28 | class OYatzee : public QMainWindow { | 28 | class OYatzee : public QMainWindow { |
29 | Q_OBJECT | 29 | Q_OBJECT |
30 | public: | 30 | public: |
31 | OYatzee( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 31 | OYatzee( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
32 | ~OYatzee(); | 32 | ~OYatzee(); |
33 | static QString appName() { return QString::fromLatin1("oyatzee"); } | ||
33 | 34 | ||
34 | Game *g(); | 35 | Game *g(); |
35 | DiceWidget *dw; | 36 | DiceWidget *dw; |
36 | Scoreboard *sb; | 37 | Scoreboard *sb; |
37 | 38 | ||
38 | QValueListInt posibilities; | 39 | QValueListInt posibilities; |
39 | playerList ps; | 40 | playerList ps; |
40 | 41 | ||
41 | void setPlayerNumber( const int num ); | 42 | void setPlayerNumber( const int num ); |
42 | void setRoundsNumber( const int num ); | 43 | void setRoundsNumber( const int num ); |
43 | 44 | ||
44 | enum { Ones = 1, | 45 | enum { Ones = 1, |
45 | Twos = 2, | 46 | Twos = 2, |
46 | Threes = 3, | 47 | Threes = 3, |
47 | Fours = 4, | 48 | Fours = 4, |
48 | Fives = 5, | 49 | Fives = 5, |
49 | Sixes = 6, | 50 | Sixes = 6, |
50 | ThreeOfAKind = 9, //12444 | 51 | ThreeOfAKind = 9, //12444 |
51 | FourOfAKind = 10, //14444 | 52 | FourOfAKind = 10, //14444 |
52 | FullHouse = 11, //22555 | 53 | FullHouse = 11, //22555 |
53 | SStraight = 12, //13456 | 54 | SStraight = 12, //13456 |
54 | LStraight = 13, //12345 | 55 | LStraight = 13, //12345 |
55 | Yatzee = 14, //55555 | 56 | Yatzee = 14, //55555 |
56 | Chance = 15}; | 57 | Chance = 15}; |