⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 externs.h

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 H
字号:
/* *	@(#)externs.h	4.3	(ULTRIX)	9/1/88 */#include <stdio.h>#include <signal.h>#include <ctype.h>#include "machdep.h"#define NUMOFSCENES 31#define die() (((rand() >> 6) % 6) + 1)#define fouled(a) Fouled(a, 342)#define grappled(a) Fouled(a, 382)#define grapple(a,b) Grapple(a,b,382)#define foul(a,b) Grapple(a,b,342)#define sqr(a) ((a) * (a))#define abs(a) ((a) > 0 ? (a) : -(a))#define min(a,b) ((a) < (b) ? (a) : (b))#define GRAPE   1#define CHAIN   2#define ROUND   3#define DOUBLE  4#define HULL    0#define RIGGING 1#define SPECS	32#define FILES	64#define SCENARIO	128struct logs {    char fname[20];    int uid, fshipnum, fgamenum, netpoints;};struct BP {	int turnsent, toship, mensent;};struct snag {	int turnfoul, toship;};typedef struct {	int row, col, dir;} postype;postype pos[20];struct File {	char captain[20];	int points;	int loadL, loadR, readyL, readyR;	struct BP OBP[3], DBP[3];	int struck, captured, pcrew;	char last[10];	int drift;	struct snag fouls[10], grapples[10];	char signal[60];	int RH, RG, RR, FS, explode, sink;};typedef struct {	char *shipname;	int shipnum, nationality;	int shiprow, shipcol, shipdir;	struct File *file;} ships;struct scenario {	int winddir, windspeed, windchange;	int turn, people, time, vessels;	char *name;	ships ship[10];};extern struct scenario scene[];struct shipspecs {	int bs, fs, ta, guns, class, hull, qual, crew1,		crew2, crew3, gunL, gunR, carL, carR,		rig1, rig2, rig3, rig4, pts;};extern struct shipspecs specs[];struct windeffects {	int A, B, C, D;};struct windeffects WET[7][6];struct Tables {	int H, G, C, R;};struct Tables RigTable[11][6];struct Tables HullTable[11][6];int AMMO[9][4];int HDT[9][10];int HDTrake[9][10];int QUAL[9][5];int MT[9][3];int loaded, fired, changed, repaired, buffercount, xlast, ylast;long lastsync;int winddir, windspeed, turn, viewrow, viewcol;int player, nation[5], numscroll, game;int MIGHTYCAPTAIN;char Outbuf[BUFSIZE], movebuf[10], loadwith[20];FILE *syncfile;char colours();char gunsbear();char *info();char iinitial();char *quality();char sterncolor();char strend();char symbol();double arctan();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -