Rev 33 | Rev 44 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 33 | Rev 40 | ||
|---|---|---|---|
| Line 342... | Line 342... | ||
| 342 | gui_t gui; // GUI laid over this scene |
342 | gui_t gui; // GUI laid over this scene |
| 343 | bool update; // set to TRUE if the scene needs to be updated |
343 | bool update; // set to TRUE if the scene needs to be updated |
| 344 | } scene_t; |
344 | } scene_t; |
| 345 | 345 | ||
| 346 | 346 | ||
| 347 | // engine options definition |
347 | // engine program options definition (populated from "engines/<program>/engine.ini") |
| 348 | typedef struct |
348 | typedef struct engineprogramoptions_s |
| 349 | { |
349 | { |
| 350 | wchar_t program[MAX_PATH]; // chess engine program name (must be a subdirectory in "engines") |
- | |
| 351 | int depth; // chess engine's currently allowed search depth |
- | |
| 352 | int max_depth; // chess engine maximum search depth (used just for slider display) |
- | |
| 353 | int blunder_chances; // chess engine blunder chances, in percent |
- | |
| 354 | int obstinacy_level; // chess engine obstinacy level, in number of moves |
- | |
| 355 | bool is_expert_mode; // set to TRUE if this player claims to be an expert player (in the game settings) |
- | |
| 356 | // the following is populated from "engines/<program>/engine.ini" |
- | |
| 357 | wchar_t name[64]; // chess engine name (will be used as player name) |
350 | wchar_t name[64]; // chess engine name (will be used as player name) |
| 358 | wchar_t cmdline[MAX_PATH]; // chess engine binary startup command-line, e.g "gnuchess.exe" |
351 | wchar_t cmdline[MAX_PATH]; // chess engine binary startup command-line, e.g "gnuchess.exe" |
| 359 | wchar_t replystring_move[64]; // chess engine reply string for a move (positions come right after) |
352 | wchar_t replystring_move[64]; // chess engine reply string for a move (positions come right after) |
| 360 | wchar_t replystring_hint[64]; // chess engine reply string for a hint (positions come right after) |
353 | wchar_t replystring_hint[64]; // chess engine reply string for a hint (positions come right after) |
| 361 | wchar_t command_new[32]; // command to send the chess engine to tell him we are starting a new game |
354 | wchar_t command_new[32]; // command to send the chess engine to tell him we are starting a new game |
| Line 363... | Line 356... | ||
| 363 | wchar_t command_sd[32]; // command to send the chess engine to instruct it about its allowed depth (will be followed by numeric) |
356 | wchar_t command_sd[32]; // command to send the chess engine to instruct it about its allowed depth (will be followed by numeric) |
| 364 | wchar_t command_go[32]; // command to send the chess engine to make it play the current move |
357 | wchar_t command_go[32]; // command to send the chess engine to make it play the current move |
| 365 | wchar_t command_hint[32]; // command to send the chess engine to make it report a hint for the opponent |
358 | wchar_t command_hint[32]; // command to send the chess engine to make it report a hint for the opponent |
| 366 | wchar_t command_force[32]; // command to send the chess engine to force it to play a particular move instead of the one it wants |
359 | wchar_t command_force[32]; // command to send the chess engine to force it to play a particular move instead of the one it wants |
| 367 | wchar_t command_quit[32]; // command to send the chess engine to make it exit cleanly |
360 | wchar_t command_quit[32]; // command to send the chess engine to make it exit cleanly |
| - | 361 | } engineprogramoptions_t; |
|
| - | 362 | ||
| - | 363 | ||
| - | 364 | // engine options definition |
|
| - | 365 | typedef struct engineoptions_s |
|
| - | 366 | { |
|
| - | 367 | wchar_t program[MAX_PATH]; // chess engine program name (must be a subdirectory in "engines") |
|
| - | 368 | int depth; // chess engine's currently allowed search depth |
|
| - | 369 | int max_depth; // chess engine maximum search depth (used just for slider display) |
|
| - | 370 | int blunder_chances; // chess engine blunder chances, in percent |
|
| - | 371 | int obstinacy_level; // chess engine obstinacy level, in number of moves |
|
| - | 372 | bool is_expert_mode; // set to TRUE if this player claims to be an expert player (in the game settings) |
|
| - | 373 | engineprogramoptions_t program_options; // engine program options |
|
| 368 | } engineoptions_t; |
374 | } engineoptions_t; |
| 369 | 375 | ||
| 370 | 376 | ||
| 371 | // network options definition |
377 | // network options definition |
| 372 | typedef struct networkoptions_s |
378 | typedef struct networkoptions_s |