Subversion Repositories Games.Chess Giants

Rev

Rev 130 | Rev 140 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 130 Rev 136
Line 60... Line 60...
60
#define GUIBUTTON_ENABLE(button) { if ((button).state == 0) { (button).state = 1; /*the_board.reevaluate =*/ the_scene.update = true; } }
60
#define GUIBUTTON_ENABLE(button) { if ((button).state == 0) { (button).state = 1; /*the_board.reevaluate =*/ the_scene.update = true; } }
61
#define GUIBUTTON_DISABLE(button) { if ((button).state > 0) { (button).state = 0; /*the_board.reevaluate =*/ the_scene.update = true; } }
61
#define GUIBUTTON_DISABLE(button) { if ((button).state > 0) { (button).state = 0; /*the_board.reevaluate =*/ the_scene.update = true; } }
62
 
62
 
63
 
63
 
64
// menu item IDs
64
// menu item IDs
65
#define MENUID_GAME_NEWGAME 101
65
#define MENUID_RESOURCEBASE 20000
-
 
66
#define MENUID_GAME_NEWGAME                     (MENUID_RESOURCEBASE + 101)
66
#define MENUID_GAME_SETUPPOSITION 102
67
#define MENUID_GAME_SETUPPOSITION               (MENUID_RESOURCEBASE + 102)
67
#define MENUID_GAME_LOAD 103
68
#define MENUID_GAME_LOAD                        (MENUID_RESOURCEBASE + 103)
68
#define MENUID_GAME_SAVE 104
69
#define MENUID_GAME_SAVE                        (MENUID_RESOURCEBASE + 104)
69
#define MENUID_GAME_SAVEAS 105
70
#define MENUID_GAME_SAVEAS                      (MENUID_RESOURCEBASE + 105)
70
#define MENUID_GAME_SAVEPOSITIONAS 106
71
#define MENUID_GAME_SAVEPOSITIONAS              (MENUID_RESOURCEBASE + 106)
71
#define MENUID_GAME_PAUSE 107
72
#define MENUID_GAME_PAUSE                       (MENUID_RESOURCEBASE + 107)
72
#define MENUID_GAME_RESIGN 108
73
#define MENUID_GAME_RESIGN                      (MENUID_RESOURCEBASE + 108)
73
#define MENUID_GAME_STATISTICS 109
74
#define MENUID_GAME_STATISTICS                  (MENUID_RESOURCEBASE + 109)
74
#define MENUID_GAME_OPTIONS 110
75
#define MENUID_GAME_OPTIONS                     (MENUID_RESOURCEBASE + 110)
75
#define MENUID_GAME_QUIT 111
76
#define MENUID_GAME_QUIT                        (MENUID_RESOURCEBASE + 111)
76
#define MENUID_CHESSBOARD_SUGGESTMOVE 201
77
#define MENUID_MOVE_CANCELLASTMOVE              (MENUID_RESOURCEBASE + 201)
77
#define MENUID_CHESSBOARD_CANCELLASTMOVE 202
78
#define MENUID_MOVE_SUGGESTMOVE                 (MENUID_RESOURCEBASE + 202)
78
#define MENUID_CHESSBOARD_COMMENTMOVE 203
79
#define MENUID_MOVE_COMMENTMOVE                 (MENUID_RESOURCEBASE + 203)
79
#define MENUID_CHESSBOARD_GOTOMOVE 204
80
#define MENUID_MOVE_GOTOMOVE                    (MENUID_RESOURCEBASE + 204)
80
#define MENUID_CHESSBOARD_SWAPSIDES 205
81
#define MENUID_CHESSBOARD_SWAPSIDES             (MENUID_RESOURCEBASE + 205)
81
#define MENUID_CHESSBOARD_RENAMESIDES 206
82
#define MENUID_CHESSBOARD_RENAMESIDES           (MENUID_RESOURCEBASE + 206)
82
#define MENUID_CHESSBOARD_BEGINNINGOFGAME 207
83
#define MENUID_CHESSBOARD_BEGINNINGOFGAME       (MENUID_RESOURCEBASE + 207)
83
#define MENUID_CHESSBOARD_PREVIOUSMOVE 208
84
#define MENUID_CHESSBOARD_PREVIOUSMOVE          (MENUID_RESOURCEBASE + 208)
84
#define MENUID_CHESSBOARD_NEXTMOVE 209
85
#define MENUID_CHESSBOARD_NEXTMOVE              (MENUID_RESOURCEBASE + 209)
85
#define MENUID_CHESSBOARD_CURRENTSTATEOFGAME 210
86
#define MENUID_CHESSBOARD_CURRENTSTATEOFGAME    (MENUID_RESOURCEBASE + 210)
86
#define MENUID_CHESSBOARD_TOPVIEW 211
87
#define MENUID_CHESSBOARD_TOPVIEW               (MENUID_RESOURCEBASE + 211)
87
#define MENUID_CHESSBOARD_DEFAULTVIEW 212
88
#define MENUID_CHESSBOARD_DEFAULTVIEW           (MENUID_RESOURCEBASE + 212)
88
#define MENUID_CHESSBOARD_RESETVIEW 213
89
#define MENUID_CHESSBOARD_RESETVIEW             (MENUID_RESOURCEBASE + 213)
89
#define MENUID_CHESSBOARD_ZOOMIN 214
90
#define MENUID_CHESSBOARD_ZOOMIN                (MENUID_RESOURCEBASE + 214)
90
#define MENUID_CHESSBOARD_ZOOMOUT 215
91
#define MENUID_CHESSBOARD_ZOOMOUT               (MENUID_RESOURCEBASE + 215)
91
#define MENUID_CHESSBOARD_CHANGEAPPEARANCE 216
92
#define MENUID_CHESSBOARD_CHANGEAPPEARANCE      (MENUID_RESOURCEBASE + 216)
92
#define MENUID_CHESSBOARD_DISPLAYWINDOWSDESKTOP 217
93
#define MENUID_CHESSBOARD_DISPLAYWINDOWSDESKTOP (MENUID_RESOURCEBASE + 217)
93
#define MENUID_INTERNET_SHOWONLINEPLAYERS 301
94
#define MENUID_INTERNET_SHOWONLINEPLAYERS       (MENUID_RESOURCEBASE + 301)
94
#define MENUID_INTERNET_SHOWSOUGHTGAMES 302
95
#define MENUID_INTERNET_SHOWSOUGHTGAMES         (MENUID_RESOURCEBASE + 302)
95
#define MENUID_INTERNET_SEEKGAME 303
96
#define MENUID_INTERNET_SEEKGAME                (MENUID_RESOURCEBASE + 303)
96
#define MENUID_INTERNET_CHATTERCHANNELS 304
97
#define MENUID_INTERNET_CHATTERCHANNELS         (MENUID_RESOURCEBASE + 304)
97
#define MENUID_INTERNET_ENTERCHATTEXT 305
98
#define MENUID_INTERNET_ENTERCHATTEXT           (MENUID_RESOURCEBASE + 305)
98
#define MENUID_INTERNET_DISPLAYPLAYERCARD 306
99
#define MENUID_INTERNET_DISPLAYPLAYERCARD       (MENUID_RESOURCEBASE + 306)
99
#define MENUID_INTERNET_DISPLAYYOURCARD 307
100
#define MENUID_INTERNET_DISPLAYYOURCARD         (MENUID_RESOURCEBASE + 307)
100
#define MENUID_INTERNET_MOTD 308
101
#define MENUID_INTERNET_MOTD                    (MENUID_RESOURCEBASE + 308)
101
#define MENUID_HELP_HELP 401
102
#define MENUID_HELP_HELP                        (MENUID_RESOURCEBASE + 401)
102
#define MENUID_HELP_GETCHESSGAMES 402
103
#define MENUID_HELP_GETCHESSGAMES               (MENUID_RESOURCEBASE + 402)
103
#define MENUID_HELP_ADDMODIFYVISUALTHEMES 403
104
#define MENUID_HELP_ADDMODIFYVISUALTHEMES       (MENUID_RESOURCEBASE + 403)
104
#define MENUID_HELP_ADDMODIFYENGINES 404
105
#define MENUID_HELP_ADDMODIFYENGINES            (MENUID_RESOURCEBASE + 404)
105
#define MENUID_HELP_ADDMODIFYTRANSLATIONS 405
106
#define MENUID_HELP_ADDMODIFYTRANSLATIONS       (MENUID_RESOURCEBASE + 405)
106
#define MENUID_HELP_ABOUT 406
107
#define MENUID_HELP_ABOUT                       (MENUID_RESOURCEBASE + 406)
107
 
108
 
108
 
109
 
109
// sound IDs
110
// sound IDs
110
#define SOUNDTYPE_NONE 0
111
#define SOUNDTYPE_NONE 0
111
#define SOUNDTYPE_MOVE 1
112
#define SOUNDTYPE_MOVE 1
Line 174... Line 175...
174
#define STATE_BLACKWIN_RESIGNORFORFEIT 6
175
#define STATE_BLACKWIN_RESIGNORFORFEIT 6
175
#define STATE_DRAW_STALEMATE 7
176
#define STATE_DRAW_STALEMATE 7
176
#define STATE_DRAW_AGREEMENT 8
177
#define STATE_DRAW_AGREEMENT 8
177
#define STATE_DRAW_OTHER 9
178
#define STATE_DRAW_OTHER 9
178
#define STATE_ADJOURNED 10
179
#define STATE_ADJOURNED 10
-
 
180
 
-
 
181
 
-
 
182
// resign types
-
 
183
#define RESIGNTYPE_UNDEFINED 0
-
 
184
#define RESIGNTYPE_NEWGAME 1
-
 
185
#define RESIGNTYPE_LOADGAME 2
179
 
186
 
180
 
187
 
181
// player types
188
// player types
182
#define PLAYER_HUMAN 0
189
#define PLAYER_HUMAN 0
183
#define PLAYER_COMPUTER 1
190
#define PLAYER_COMPUTER 1