Diffstat (limited to 'noncore/games/backgammon/backgammon.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/backgammon/backgammon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/games/backgammon/backgammon.h b/noncore/games/backgammon/backgammon.h index e3276f1..fb50500 100644 --- a/noncore/games/backgammon/backgammon.h +++ b/noncore/games/backgammon/backgammon.h | |||
@@ -56,64 +56,65 @@ private: | |||
56 | int player; | 56 | int player; |
57 | bool dice1_played; | 57 | bool dice1_played; |
58 | bool dice2_played; | 58 | bool dice2_played; |
59 | bool dice3_played; | 59 | bool dice3_played; |
60 | bool dice4_played; | 60 | bool dice4_played; |
61 | bool dice_rolled; | 61 | bool dice_rolled; |
62 | //computer opponent | 62 | //computer opponent |
63 | bool player1_auto; | 63 | bool player1_auto; |
64 | bool player2_auto; | 64 | bool player2_auto; |
65 | 65 | ||
66 | //the images; | 66 | //the images; |
67 | QString theme_name; | 67 | QString theme_name; |
68 | QString board_name; | 68 | QString board_name; |
69 | QString piecesA_name; | 69 | QString piecesA_name; |
70 | QString piecesB_name; | 70 | QString piecesB_name; |
71 | QString diceA_name; | 71 | QString diceA_name; |
72 | QString diceB_name; | 72 | QString diceB_name; |
73 | QString odds_name; | 73 | QString odds_name; |
74 | QString table_name; | 74 | QString table_name; |
75 | 75 | ||
76 | //save game | 76 | //save game |
77 | QString game_name; | 77 | QString game_name; |
78 | 78 | ||
79 | //the rules | 79 | //the rules |
80 | Rules rules; | 80 | Rules rules; |
81 | 81 | ||
82 | //display settings | 82 | //display settings |
83 | Display display; | 83 | Display display; |
84 | //is the game finished ? | 84 | //is the game finished ? |
85 | bool gameFinished; | 85 | bool gameFinished; |
86 | 86 | ||
87 | public: | 87 | public: |
88 | static QString appName() { return QString::fromLatin1("backgammon"); } | ||
88 | BackGammon( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 89 | BackGammon( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
89 | ~BackGammon(); | 90 | ~BackGammon(); |
90 | private slots: | 91 | private slots: |
91 | void newgame(); | 92 | void newgame(); |
92 | void playerselect(); | 93 | void playerselect(); |
93 | void loadgame(); | 94 | void loadgame(); |
94 | void savegame(); | 95 | void savegame(); |
95 | void deletegame(); | 96 | void deletegame(); |
96 | void newtheme(); | 97 | void newtheme(); |
97 | void loadtheme(); | 98 | void loadtheme(); |
98 | void savetheme(); | 99 | void savetheme(); |
99 | void themedefault(); | 100 | void themedefault(); |
100 | void deletetheme(); | 101 | void deletetheme(); |
101 | void modify_AI(); | 102 | void modify_AI(); |
102 | void setrules(); | 103 | void setrules(); |
103 | void mouse(int x,int y); | 104 | void mouse(int x,int y); |
104 | void done_dice1(); | 105 | void done_dice1(); |
105 | void done_dice2(); | 106 | void done_dice2(); |
106 | void done_dice3(); | 107 | void done_dice3(); |
107 | void done_dice4(); | 108 | void done_dice4(); |
108 | void nomove(); | 109 | void nomove(); |
109 | void nomove2(); | 110 | void nomove2(); |
110 | void finished(int theplayer); | 111 | void finished(int theplayer); |
111 | void autoroll_dice1(); | 112 | void autoroll_dice1(); |
112 | void autoroll_dice2(); | 113 | void autoroll_dice2(); |
113 | private: | 114 | private: |
114 | void draw(); | 115 | void draw(); |
115 | void showdice(); | 116 | void showdice(); |
116 | void setplayer(); | 117 | void setplayer(); |
117 | void applytheme(); | 118 | void applytheme(); |
118 | }; | 119 | }; |
119 | 120 | ||