Fix bug in setting up w3 and w4 games
[capablanca.git] / lasker-2.2.3 / src / pending.h
1 /*
2  pending.h
3
4 */
5
6 #ifndef _PENDING_H
7 #define _PENDING_H
8
9 #define PEND_MATCH 0 
10 #define PEND_DRAW 1
11 #define PEND_ABORT 2
12 #define PEND_TAKEBACK 3
13 #define PEND_ADJOURN 4
14 #define PEND_SWITCH 5
15 #define PEND_SIMUL 6
16 #define PEND_PAUSE 7
17 #define PEND_PARTNER 8
18 #define PEND_BUGHOUSE 9
19 #define PEND_UNPAUSE 10
20 #define PEND_ALL -1
21
22 #define DO_DECLINE 0x01
23 #define DO_WITHDRAW 0x02
24
25 GENSTRUCT enum rated {UNRATED=0, RATED=1};
26
27 GENSTRUCT struct pending {/*Params 1=wt 2=winc 3=bt 4=binc 5=rated 6=white*/
28         int type;              /* 7=type */
29         int whoto; /* who is offered */
30         int whofrom; /* who offered it */
31         int wtime;
32         int winc;
33         int btime;
34         int binc;
35         enum rated rated;
36         int seek_color; /* for matches */
37         enum gametype game_type;
38         int status; /* for seek/sought */
39         char *category;
40         char *board_type;
41         struct pending *next;
42 };
43
44 #endif