src/game.h

changeset 80
b980a7192b5a
parent 78
ceb9197b3c6d
child 83
ead00609e5e6
equal deleted inserted replaced
79:ffd452cf05ff 80:b980a7192b5a
29 29
30 #ifndef GAME_H 30 #ifndef GAME_H
31 #define GAME_H 31 #define GAME_H
32 32
33 #include "chess/game-info.h" 33 #include "chess/game-info.h"
34 #include <stdbool.h>
34 35
35 #ifdef __cplusplus 36 #ifdef __cplusplus
36 extern "C" { 37 extern "C" {
37 #endif 38 #endif
38 39
40 GameInfo gameinfo; 41 GameInfo gameinfo;
41 char* port; 42 char* port;
42 char* serverhost; /* NULL, if we are about to start a server */ 43 char* serverhost; /* NULL, if we are about to start a server */
43 char* continuepgn; 44 char* continuepgn;
44 char* analyzepgn; 45 char* analyzepgn;
45 _Bool singlemachine; 46 bool singlemachine;
46 _Bool unicode; 47 bool unicode;
47 } Settings; 48 } Settings;
48 49
49 #define is_server(settings) !((settings)->serverhost) 50 #define is_server(settings) !((settings)->serverhost)
50 51
51 void game_start(Settings *settings, int opponent); 52 void game_start(Settings *settings, int opponent);

mercurial