X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/1eda81035bbddb81676f5def8c4c91d83ce69618..490c485f1c143e40825a6d0a86693135e73e9dbe:/usr/src/games/sail/extern.h diff --git a/usr/src/games/sail/extern.h b/usr/src/games/sail/extern.h index c3ddd3f59b..9c0a0dcdf1 100644 --- a/usr/src/games/sail/extern.h +++ b/usr/src/games/sail/extern.h @@ -1,5 +1,5 @@ /* - * @(#)extern.h 1.6 83/10/05 + * @(#)extern.h 2.2 83/11/03 */ #include #include @@ -21,7 +21,7 @@ #define Xfouled2(a,b) Snagged2(a, b, 0, 1) #define Xsnagged2(a,b) (Snagged2(a, b, 0, 1) || Snagged2(a, b, 1, 1)) -#define sterncolour(sp) ((sp)->file->stern+'0'-((sp)->file->captured?16:0)) +#define sterncolour(sp) ((sp)->file->stern+'0'-((sp)->file->captured?10:0)) #define sternrow(sp) ((sp)->file->row + dr[(sp)->file->dir]) #define sterncol(sp) ((sp)->file->col + dc[(sp)->file->dir]) @@ -64,7 +64,7 @@ #define W_LAST 13 #define W_OBP 14 #define W_PCREW 15 -#define W_PEOPLE 16 +/* 16 */ #define W_POINTS 17 #define W_QUAL 18 /* 19 */ @@ -76,7 +76,7 @@ #define W_SINK 25 #define W_STRUCK 26 #define W_TA 27 -#define W_TIME 28 +#define W_ALIVE 28 #define W_TURN 29 #define W_WIND 30 #define W_FS 31 @@ -85,6 +85,8 @@ #define W_RIG2 34 #define W_RIG3 35 #define W_RIG4 36 +#define W_BEGIN 37 +#define W_END 38 struct logs { char l_name[20]; @@ -105,16 +107,19 @@ struct snag { struct ship *toship; }; -#define NSCENE 31 +#define NSCENE nscene #define NSHIP 10 #define NBP 3 -#define NNATION 5 +#define NNATION 8 #define N_A 0 #define N_B 1 #define N_S 2 #define N_F 3 #define N_J 4 +#define N_D 5 +#define N_K 6 +#define N_O 7 struct File { char captain[20]; /* 0 */ @@ -132,7 +137,6 @@ struct File { char drift; /* 82 */ struct snag fouls[NSHIP]; /* 84 */ struct snag grapples[NSHIP]; /* 124 */ - char signal[60]; /* 164 */ char RH; /* 224 */ char RG; /* 226 */ char RR; /* 228 */ @@ -160,14 +164,12 @@ struct scenario { char winddir; /* 0 */ char windspeed; /* 2 */ char windchange; /* 4 */ - short turn; /* 6 */ - char people; /* 8 */ - char time; /* 10 */ char vessels; /* 12 */ char *name; /* 14 */ struct ship ship[NSHIP]; /* 16 */ }; -struct scenario scene[NSCENE]; +struct scenario scene[]; +int nscene; struct shipspecs { char bs; @@ -225,11 +227,13 @@ char rangeofshot[]; char dr[], dc[]; -long lastsync; -int winddir, windspeed, turn; +int winddir; +int windspeed; +int turn; int game; -char Outbuf[BUFSIZE]; -FILE *syncfile; +int alive; +int people; +char isplayer; char *info(); char *quality();