Home | History | Annotate | Line # | Download | only in trek
trek.h revision 1.6
      1  1.6   hubertf /*	$NetBSD: trek.h,v 1.6 1999/07/21 13:19:11 hubertf Exp $	*/
      2  1.3       cgd 
      3  1.1       cgd /*
      4  1.3       cgd  * Copyright (c) 1980, 1993
      5  1.3       cgd  *	The Regents of the University of California.  All rights reserved.
      6  1.1       cgd  *
      7  1.1       cgd  * Redistribution and use in source and binary forms, with or without
      8  1.1       cgd  * modification, are permitted provided that the following conditions
      9  1.1       cgd  * are met:
     10  1.1       cgd  * 1. Redistributions of source code must retain the above copyright
     11  1.1       cgd  *    notice, this list of conditions and the following disclaimer.
     12  1.1       cgd  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1       cgd  *    notice, this list of conditions and the following disclaimer in the
     14  1.1       cgd  *    documentation and/or other materials provided with the distribution.
     15  1.1       cgd  * 3. All advertising materials mentioning features or use of this software
     16  1.1       cgd  *    must display the following acknowledgement:
     17  1.1       cgd  *	This product includes software developed by the University of
     18  1.1       cgd  *	California, Berkeley and its contributors.
     19  1.1       cgd  * 4. Neither the name of the University nor the names of its contributors
     20  1.1       cgd  *    may be used to endorse or promote products derived from this software
     21  1.1       cgd  *    without specific prior written permission.
     22  1.1       cgd  *
     23  1.1       cgd  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     24  1.1       cgd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     25  1.1       cgd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     26  1.1       cgd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     27  1.1       cgd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     28  1.1       cgd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     29  1.1       cgd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30  1.1       cgd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31  1.1       cgd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32  1.1       cgd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33  1.1       cgd  * SUCH DAMAGE.
     34  1.1       cgd  *
     35  1.3       cgd  *	@(#)trek.h	8.1 (Berkeley) 5/31/93
     36  1.1       cgd  */
     37  1.1       cgd 
     38  1.1       cgd /*
     39  1.1       cgd **  Global Declarations
     40  1.1       cgd **
     41  1.1       cgd **	Virtually all non-local variable declarations are made in this
     42  1.1       cgd **	file.  Exceptions are those things which are initialized, which
     43  1.1       cgd **	are defined in "externs.c", and things which are local to one
     44  1.1       cgd **	program file.
     45  1.1       cgd **
     46  1.1       cgd **	So far as I know, nothing in here must be preinitialized to
     47  1.1       cgd **	zero.
     48  1.1       cgd **
     49  1.1       cgd **	You may have problems from the loader if you move this to a
     50  1.1       cgd **	different machine.  These things actually get allocated in each
     51  1.1       cgd **	source file, which UNIX allows; however, you may (on other
     52  1.1       cgd **	systems) have to change everything in here to be "extern" and
     53  1.1       cgd **	actually allocate stuff in "externs.c"
     54  1.1       cgd */
     55  1.1       cgd 
     56  1.1       cgd /* external function definitions */
     57  1.1       cgd 
     58  1.1       cgd /*********************  GALAXY  **************************/
     59  1.1       cgd 
     60  1.1       cgd /* galactic parameters */
     61  1.1       cgd # define	NSECTS		10	/* dimensions of quadrant in sectors */
     62  1.1       cgd # define	NQUADS		8	/* dimension of galazy in quadrants */
     63  1.1       cgd # define	NINHAB		32	/* number of quadrants which are inhabited */
     64  1.1       cgd 
     65  1.1       cgd struct quad		/* definition for each quadrant */
     66  1.1       cgd {
     67  1.5  christos 	unsigned char	bases;	/* number of bases in this quadrant */
     68  1.1       cgd 	char	klings;		/* number of Klingons in this quadrant */
     69  1.1       cgd 	char	holes;		/* number of black holes in this quadrant */
     70  1.1       cgd 	int	scanned;	/* star chart entry (see below) */
     71  1.4   thorpej 	short	stars;		/* number of stars in this quadrant */
     72  1.1       cgd 	char	qsystemname;	/* starsystem name (see below) */
     73  1.1       cgd };
     74  1.1       cgd 
     75  1.1       cgd # define	Q_DISTRESSED	0200
     76  1.1       cgd # define	Q_SYSTEM	077
     77  1.1       cgd 
     78  1.1       cgd /*  systemname conventions:
     79  1.1       cgd  *	1 -> NINHAB	index into Systemname table for live system.
     80  1.1       cgd  *	+ Q_DISTRESSED	distressed starsystem -- systemname & Q_SYSTEM
     81  1.1       cgd  *			is the index into the Event table which will
     82  1.1       cgd  *			have the system name
     83  1.1       cgd  *	0		dead or nonexistent starsystem
     84  1.1       cgd  *
     85  1.1       cgd  *  starchart ("scanned") conventions:
     86  1.1       cgd  *	0 -> 999	taken as is
     87  1.1       cgd  *	-1		not yet scanned ("...")
     88  1.1       cgd  *	1000		supernova ("///")
     89  1.1       cgd  *	1001		starbase + ??? (".1.")
     90  1.1       cgd */
     91  1.1       cgd 
     92  1.1       cgd /* ascii names of systems */
     93  1.6   hubertf extern const char	*const Systemname[NINHAB];
     94  1.1       cgd 
     95  1.1       cgd /* quadrant definition */
     96  1.1       cgd struct quad	Quad[NQUADS][NQUADS];
     97  1.1       cgd 
     98  1.1       cgd /* defines for sector map  (below) */
     99  1.1       cgd # define	EMPTY		'.'
    100  1.1       cgd # define	STAR		'*'
    101  1.1       cgd # define	BASE		'#'
    102  1.1       cgd # define	ENTERPRISE	'E'
    103  1.1       cgd # define	QUEENE		'Q'
    104  1.1       cgd # define	KLINGON		'K'
    105  1.1       cgd # define	INHABIT		'@'
    106  1.1       cgd # define	HOLE		' '
    107  1.1       cgd 
    108  1.1       cgd /* current sector map */
    109  1.1       cgd char	Sect[NSECTS][NSECTS];
    110  1.1       cgd 
    111  1.1       cgd 
    112  1.5  christos 
    113  1.1       cgd /************************ DEVICES ******************************/
    114  1.1       cgd 
    115  1.1       cgd # define	NDEV		16	/* max number of devices */
    116  1.1       cgd 
    117  1.1       cgd /* device tokens */
    118  1.1       cgd # define	WARP		0	/* warp engines */
    119  1.1       cgd # define	SRSCAN		1	/* short range scanners */
    120  1.1       cgd # define	LRSCAN		2	/* long range scanners */
    121  1.1       cgd # define	PHASER		3	/* phaser control */
    122  1.1       cgd # define	TORPED		4	/* photon torpedo control */
    123  1.1       cgd # define	IMPULSE		5	/* impulse engines */
    124  1.1       cgd # define	SHIELD		6	/* shield control */
    125  1.1       cgd # define	COMPUTER	7	/* on board computer */
    126  1.1       cgd # define	SSRADIO		8	/* subspace radio */
    127  1.1       cgd # define	LIFESUP		9	/* life support systems */
    128  1.1       cgd # define	SINS		10	/* Space Inertial Navigation System */
    129  1.1       cgd # define	CLOAK		11	/* cloaking device */
    130  1.1       cgd # define	XPORTER		12	/* transporter */
    131  1.1       cgd # define	SHUTTLE		13	/* shuttlecraft */
    132  1.1       cgd 
    133  1.1       cgd /* device names */
    134  1.1       cgd struct device
    135  1.1       cgd {
    136  1.6   hubertf 	const char	*name;		/* device name */
    137  1.6   hubertf 	const char	*person;	/* the person who fixes it */
    138  1.1       cgd };
    139  1.1       cgd 
    140  1.6   hubertf const struct device	Device[NDEV];
    141  1.1       cgd 
    142  1.1       cgd /***************************  EVENTS  ****************************/
    143  1.1       cgd 
    144  1.1       cgd # define	NEVENTS		12	/* number of different event types */
    145  1.1       cgd 
    146  1.1       cgd # define	E_LRTB		1	/* long range tractor beam */
    147  1.1       cgd # define	E_KATSB		2	/* Klingon attacks starbase */
    148  1.1       cgd # define	E_KDESB		3	/* Klingon destroys starbase */
    149  1.1       cgd # define	E_ISSUE		4	/* distress call is issued */
    150  1.1       cgd # define	E_ENSLV		5	/* Klingons enslave a quadrant */
    151  1.1       cgd # define	E_REPRO		6	/* a Klingon is reproduced */
    152  1.1       cgd # define	E_FIXDV		7	/* fix a device */
    153  1.1       cgd # define	E_ATTACK	8	/* Klingon attack during rest period */
    154  1.1       cgd # define	E_SNAP		9	/* take a snapshot for time warp */
    155  1.1       cgd # define	E_SNOVA		10	/* supernova occurs */
    156  1.1       cgd 
    157  1.1       cgd # define	E_GHOST		0100	/* ghost of a distress call if ssradio out */
    158  1.1       cgd # define	E_HIDDEN	0200	/* event that is unreportable because ssradio out */
    159  1.1       cgd # define	E_EVENT		077	/* mask to get event code */
    160  1.1       cgd 
    161  1.1       cgd struct event
    162  1.1       cgd {
    163  1.5  christos 	unsigned char 	x, y;		/* coordinates */
    164  1.5  christos 	double		date;		/* trap stardate */
    165  1.5  christos 	char		evcode;		/* event type */
    166  1.5  christos 	unsigned char	systemname;	/* starsystem name */
    167  1.1       cgd };
    168  1.1       cgd /* systemname conventions:
    169  1.1       cgd  *	1 -> NINHAB	index into Systemname table for reported distress calls
    170  1.1       cgd  *
    171  1.1       cgd  * evcode conventions:
    172  1.1       cgd  *	1 -> NEVENTS-1	event type
    173  1.1       cgd  *	+ E_HIDDEN	unreported (SSradio out)
    174  1.1       cgd  *	+ E_GHOST	actually already expired
    175  1.1       cgd  *	0		unallocated
    176  1.1       cgd  */
    177  1.1       cgd 
    178  1.1       cgd # define	MAXEVENTS	25	/* max number of concurrently pending events */
    179  1.1       cgd 
    180  1.1       cgd struct event	Event[MAXEVENTS];	/* dynamic event list; one entry per pending event */
    181  1.1       cgd 
    182  1.1       cgd /*****************************  KLINGONS  *******************************/
    183  1.1       cgd 
    184  1.1       cgd struct kling
    185  1.1       cgd {
    186  1.5  christos 	unsigned char	x, y;	/* coordinates */
    187  1.1       cgd 	int	power;		/* power left */
    188  1.1       cgd 	double	dist;		/* distance to Enterprise */
    189  1.1       cgd 	double	avgdist;	/* average over this move */
    190  1.1       cgd 	char	srndreq;	/* set if surrender has been requested */
    191  1.1       cgd };
    192  1.1       cgd 
    193  1.1       cgd # define	MAXKLQUAD	9	/* maximum klingons per quadrant */
    194  1.1       cgd 
    195  1.1       cgd /********************** MISCELLANEOUS ***************************/
    196  1.1       cgd 
    197  1.1       cgd /* condition codes */
    198  1.1       cgd # define	GREEN		0
    199  1.1       cgd # define	DOCKED		1
    200  1.1       cgd # define	YELLOW		2
    201  1.1       cgd # define	RED		3
    202  1.1       cgd 
    203  1.1       cgd /* starbase coordinates */
    204  1.1       cgd # define	MAXBASES	9	/* maximum number of starbases in galaxy */
    205  1.1       cgd 
    206  1.1       cgd /*  distress calls  */
    207  1.1       cgd # define	MAXDISTR	5	/* maximum concurrent distress calls */
    208  1.1       cgd 
    209  1.1       cgd /* phaser banks */
    210  1.1       cgd # define	NBANKS		6	/* number of phaser banks */
    211  1.1       cgd 
    212  1.1       cgd struct xy
    213  1.1       cgd {
    214  1.5  christos 	unsigned char	x, y;		/* coordinates */
    215  1.1       cgd };
    216  1.1       cgd 
    217  1.1       cgd 
    218  1.6   hubertf extern const struct cvntab	Skitab[];
    219  1.6   hubertf extern const struct cvntab	Lentab[];
    220  1.5  christos 
    221  1.1       cgd /*
    222  1.1       cgd  *	note that much of the stuff in the following structs CAN NOT
    223  1.1       cgd  *	be moved around!!!!
    224  1.1       cgd  */
    225  1.1       cgd 
    226  1.1       cgd 
    227  1.1       cgd /* information regarding the state of the starship */
    228  1.1       cgd struct
    229  1.1       cgd {
    230  1.1       cgd 	double	warp;		/* warp factor */
    231  1.1       cgd 	double	warp2;		/* warp factor squared */
    232  1.1       cgd 	double	warp3;		/* warp factor cubed */
    233  1.1       cgd 	char	shldup;		/* shield up flag */
    234  1.1       cgd 	char	cloaked;	/* set if cloaking device on */
    235  1.1       cgd 	int	energy;		/* starship's energy */
    236  1.1       cgd 	int	shield;		/* energy in shields */
    237  1.1       cgd 	double	reserves;	/* life support reserves */
    238  1.1       cgd 	int	crew;		/* ship's complement */
    239  1.1       cgd 	int	brigfree;	/* space left in brig */
    240  1.1       cgd 	char	torped;		/* torpedoes */
    241  1.1       cgd 	char	cloakgood;	/* set if we have moved */
    242  1.1       cgd 	int	quadx;		/* quadrant x coord */
    243  1.1       cgd 	int	quady;		/* quadrant y coord */
    244  1.1       cgd 	int	sectx;		/* sector x coord */
    245  1.1       cgd 	int	secty;		/* sector y coord */
    246  1.5  christos 	unsigned char	cond;	/* condition code */
    247  1.1       cgd 	char	sinsbad;	/* Space Inertial Navigation System condition */
    248  1.6   hubertf 	const char *shipname;	/* name of current starship */
    249  1.1       cgd 	char	ship;		/* current starship */
    250  1.1       cgd 	int	distressed;	/* number of distress calls */
    251  1.1       cgd }	Ship;
    252  1.1       cgd 
    253  1.1       cgd /* sinsbad is set if SINS is working but not calibrated */
    254  1.1       cgd 
    255  1.1       cgd /* game related information, mostly scoring */
    256  1.1       cgd struct
    257  1.1       cgd {
    258  1.1       cgd 	int	killk;		/* number of klingons killed */
    259  1.1       cgd 	int	deaths;		/* number of deaths onboard Enterprise */
    260  1.1       cgd 	char	negenbar;	/* number of hits on negative energy barrier */
    261  1.1       cgd 	char	killb;		/* number of starbases killed */
    262  1.1       cgd 	int	kills;		/* number of stars killed */
    263  1.1       cgd 	char	skill;		/* skill rating of player */
    264  1.1       cgd 	char	length;		/* length of game */
    265  1.1       cgd 	char	killed;		/* set if you were killed */
    266  1.1       cgd 	char	killinhab;	/* number of inhabited starsystems killed */
    267  1.1       cgd 	char	tourn;		/* set if a tournament game */
    268  1.1       cgd 	char	passwd[15];	/* game password */
    269  1.1       cgd 	char	snap;		/* set if snapshot taken */
    270  1.1       cgd 	char	helps;		/* number of help calls */
    271  1.1       cgd 	int	captives;	/* total number of captives taken */
    272  1.1       cgd }	Game;
    273  1.1       cgd 
    274  1.1       cgd /* per move information */
    275  1.1       cgd struct
    276  1.1       cgd {
    277  1.1       cgd 	char	free;		/* set if a move is free */
    278  1.1       cgd 	char	endgame;	/* end of game flag */
    279  1.1       cgd 	char	shldchg;	/* set if shields changed this move */
    280  1.1       cgd 	char	newquad;	/* set if just entered this quadrant */
    281  1.1       cgd 	char	resting;	/* set if this move is a rest */
    282  1.1       cgd 	double	time;		/* time used this move */
    283  1.1       cgd }	Move;
    284  1.1       cgd 
    285  1.1       cgd /* parametric information */
    286  1.1       cgd struct
    287  1.1       cgd {
    288  1.5  christos 	unsigned char	bases;	/* number of starbases */
    289  1.1       cgd 	char	klings;		/* number of klingons */
    290  1.1       cgd 	double	date;		/* stardate */
    291  1.1       cgd 	double	time;		/* time left */
    292  1.1       cgd 	double	resource;	/* Federation resources */
    293  1.1       cgd 	int	energy;		/* starship's energy */
    294  1.1       cgd 	int	shield;		/* energy in shields */
    295  1.1       cgd 	double	reserves;	/* life support reserves */
    296  1.1       cgd 	int	crew;		/* size of ship's complement */
    297  1.1       cgd 	int	brigfree;	/* max possible number of captives */
    298  1.1       cgd 	char	torped;		/* photon torpedos */
    299  1.1       cgd 	double	damfac[NDEV];	/* damage factor */
    300  1.1       cgd 	double	dockfac;	/* docked repair time factor */
    301  1.1       cgd 	double	regenfac;	/* regeneration factor */
    302  1.1       cgd 	int	stopengy;	/* energy to do emergency stop */
    303  1.1       cgd 	int	shupengy;	/* energy to put up shields */
    304  1.1       cgd 	int	klingpwr;	/* Klingon initial power */
    305  1.1       cgd 	int	warptime;	/* time chewer multiplier */
    306  1.1       cgd 	double	phasfac;	/* Klingon phaser power eater factor */
    307  1.1       cgd 	char	moveprob[6];	/* probability that a Klingon moves */
    308  1.1       cgd 	double	movefac[6];	/* Klingon move distance multiplier */
    309  1.1       cgd 	double	eventdly[NEVENTS];	/* event time multipliers */
    310  1.1       cgd 	double	navigcrud[2];	/* navigation crudup factor */
    311  1.1       cgd 	int	cloakenergy;	/* cloaking device energy per stardate */
    312  1.1       cgd 	double	damprob[NDEV];	/* damage probability */
    313  1.1       cgd 	double	hitfac;		/* Klingon attack factor */
    314  1.1       cgd 	int	klingcrew;	/* number of Klingons in a crew */
    315  1.1       cgd 	double	srndrprob;	/* surrender probability */
    316  1.1       cgd 	int	energylow;	/* low energy mark (cond YELLOW) */
    317  1.1       cgd }	Param;
    318  1.1       cgd 
    319  1.1       cgd /* Sum of damage probabilities must add to 1000 */
    320  1.1       cgd 
    321  1.1       cgd /* other information kept in a snapshot */
    322  1.1       cgd struct
    323  1.1       cgd {
    324  1.5  christos 	unsigned char	bases;	/* number of starbases */
    325  1.1       cgd 	char	klings;		/* number of klingons */
    326  1.1       cgd 	double	date;		/* stardate */
    327  1.1       cgd 	double	time;		/* time left */
    328  1.1       cgd 	double	resource;	/* Federation resources */
    329  1.1       cgd 	char	distressed;	/* number of currently distressed quadrants */
    330  1.1       cgd 	struct event	*eventptr[NEVENTS];	/* pointer to event structs */
    331  1.1       cgd 	struct xy	base[MAXBASES];		/* locations of starbases */
    332  1.1       cgd }	Now;
    333  1.1       cgd 
    334  1.1       cgd /* Other stuff, not dumped in a snapshot */
    335  1.1       cgd struct
    336  1.1       cgd {
    337  1.1       cgd 	struct kling	klingon[MAXKLQUAD];	/* sorted Klingon list */
    338  1.4   thorpej 	short		nkling;			/* number of Klingons in this sector */
    339  1.1       cgd 						/* < 0 means automatic override mode */
    340  1.1       cgd 	char		fast;			/* set if speed > 300 baud */
    341  1.1       cgd 	struct xy	starbase;	/* starbase in current quadrant */
    342  1.1       cgd 	char		snapshot[sizeof Quad + sizeof Event + sizeof Now];	/* snapshot for time warp */
    343  1.1       cgd 	char		statreport;		/* set to get a status report on a srscan */
    344  1.1       cgd }	Etc;
    345  1.1       cgd 
    346  1.1       cgd /*
    347  1.1       cgd  *	eventptr is a pointer to the event[] entry of the last
    348  1.1       cgd  *	scheduled event of each type.  Zero if no such event scheduled.
    349  1.1       cgd  */
    350  1.1       cgd 
    351  1.1       cgd /* Klingon move indicies */
    352  1.1       cgd # define	KM_OB		0	/* Old quadrant, Before attack */
    353  1.1       cgd # define	KM_OA		1	/* Old quadrant, After attack */
    354  1.1       cgd # define	KM_EB		2	/* Enter quadrant, Before attack */
    355  1.1       cgd # define	KM_EA		3	/* Enter quadrant, After attack */
    356  1.1       cgd # define	KM_LB		4	/* Leave quadrant, Before attack */
    357  1.1       cgd # define	KM_LA		5	/* Leave quadrant, After attack */
    358  1.1       cgd 
    359  1.1       cgd /* you lose codes */
    360  1.1       cgd # define	L_NOTIME	1	/* ran out of time */
    361  1.1       cgd # define	L_NOENGY	2	/* ran out of energy */
    362  1.1       cgd # define	L_DSTRYD	3	/* destroyed by a Klingon */
    363  1.1       cgd # define	L_NEGENB	4	/* ran into the negative energy barrier */
    364  1.1       cgd # define	L_SUICID	5	/* destroyed in a nova */
    365  1.1       cgd # define	L_SNOVA		6	/* destroyed in a supernova */
    366  1.1       cgd # define	L_NOLIFE	7	/* life support died (so did you) */
    367  1.1       cgd # define	L_NOHELP	8	/* you could not be rematerialized */
    368  1.1       cgd # define	L_TOOFAST	9	/* pretty stupid going at warp 10 */
    369  1.1       cgd # define	L_STAR		10	/* ran into a star */
    370  1.1       cgd # define	L_DSTRCT	11	/* self destructed */
    371  1.1       cgd # define	L_CAPTURED	12	/* captured by Klingons */
    372  1.1       cgd # define	L_NOCREW	13	/* you ran out of crew */
    373  1.1       cgd 
    374  1.1       cgd /******************  COMPILE OPTIONS  ***********************/
    375  1.1       cgd 
    376  1.1       cgd /* Trace info */
    377  1.1       cgd # define	xTRACE		1
    378  1.1       cgd int	Trace;
    379  1.5  christos 
    380  1.5  christos /* abandon.c */
    381  1.5  christos void abandon __P((int));
    382  1.5  christos 
    383  1.5  christos /* attack.c */
    384  1.5  christos void attack __P((int));
    385  1.5  christos 
    386  1.5  christos /* autover.c */
    387  1.5  christos void autover __P((void));
    388  1.5  christos 
    389  1.5  christos /* capture.c */
    390  1.5  christos void capture __P((int));
    391  1.5  christos struct kling *selectklingon __P((void));
    392  1.5  christos 
    393  1.5  christos /* cgetc.c */
    394  1.5  christos char cgetc __P((int));
    395  1.5  christos 
    396  1.5  christos /* check_out.c */
    397  1.5  christos int check_out __P((int));
    398  1.5  christos 
    399  1.5  christos /* checkcond.c */
    400  1.5  christos void checkcond __P((void));
    401  1.5  christos 
    402  1.5  christos /* compkl.c */
    403  1.5  christos void compkldist __P((int));
    404  1.5  christos 
    405  1.5  christos /* computer.c */
    406  1.5  christos void computer __P((int));
    407  1.5  christos 
    408  1.5  christos /* damage.c */
    409  1.5  christos void damage __P((int, double));
    410  1.5  christos 
    411  1.5  christos /* damaged.c */
    412  1.5  christos int damaged __P((int));
    413  1.5  christos 
    414  1.5  christos /* dcrept.c */
    415  1.5  christos void dcrept __P((int));
    416  1.5  christos 
    417  1.5  christos /* destruct.c */
    418  1.5  christos void destruct __P((int));
    419  1.5  christos 
    420  1.5  christos /* dock.c */
    421  1.5  christos void dock __P((int));
    422  1.5  christos void undock __P((int));
    423  1.5  christos 
    424  1.5  christos /* dumpgame.c */
    425  1.5  christos void dumpgame __P((int));
    426  1.5  christos int restartgame __P((void));
    427  1.5  christos 
    428  1.5  christos /* dumpme.c */
    429  1.5  christos void dumpme __P((int));
    430  1.5  christos 
    431  1.5  christos /* dumpssradio.c */
    432  1.5  christos int dumpssradio __P((void));
    433  1.5  christos 
    434  1.5  christos /* events.c */
    435  1.5  christos int events __P((int));
    436  1.5  christos 
    437  1.5  christos /* externs.c */
    438  1.5  christos 
    439  1.5  christos /* getcodi.c */
    440  1.5  christos int getcodi __P((int *, double *));
    441  1.5  christos 
    442  1.5  christos /* help.c */
    443  1.5  christos void help __P((int));
    444  1.5  christos 
    445  1.5  christos /* impulse.c */
    446  1.5  christos void impulse __P((int));
    447  1.5  christos 
    448  1.5  christos /* initquad.c */
    449  1.5  christos void initquad __P((int));
    450  1.5  christos void sector __P((int *, int *));
    451  1.5  christos 
    452  1.5  christos /* kill.c */
    453  1.5  christos void killk __P((int, int ));
    454  1.5  christos void killb __P((int, int ));
    455  1.5  christos void kills __P((int, int , int));
    456  1.5  christos void killd __P((int, int , int));
    457  1.5  christos 
    458  1.5  christos /* klmove.c */
    459  1.5  christos void klmove __P((int));
    460  1.5  christos 
    461  1.5  christos /* lose.c */
    462  1.5  christos void lose __P((int));
    463  1.5  christos 
    464  1.5  christos /* lrscan.c */
    465  1.5  christos void lrscan __P((int));
    466  1.5  christos 
    467  1.5  christos /* move.c */
    468  1.5  christos double move __P((int, int, double, double));
    469  1.5  christos 
    470  1.5  christos /* nova.c */
    471  1.5  christos void nova __P((int, int ));
    472  1.5  christos 
    473  1.5  christos /* out.c */
    474  1.5  christos void out __P((int));
    475  1.5  christos 
    476  1.5  christos /* phaser.c */
    477  1.5  christos void phaser __P((int));
    478  1.5  christos 
    479  1.5  christos /* play.c */
    480  1.5  christos void myreset __P((int));
    481  1.5  christos void play __P((void));
    482  1.5  christos 
    483  1.5  christos /* ram.c */
    484  1.5  christos void ram __P((int, int ));
    485  1.5  christos 
    486  1.5  christos /* ranf.c */
    487  1.5  christos int ranf __P((int));
    488  1.5  christos double franf __P((void));
    489  1.5  christos 
    490  1.5  christos /* rest.c */
    491  1.5  christos void rest __P((int));
    492  1.5  christos 
    493  1.5  christos /* schedule.c */
    494  1.5  christos struct event *schedule __P((int, double, int, int , int));
    495  1.5  christos void reschedule __P((struct event *, double));
    496  1.5  christos void unschedule __P((struct event *));
    497  1.5  christos struct event *xsched __P((int, int, int, int , int ));
    498  1.5  christos void xresched __P((struct event *, int, int));
    499  1.5  christos 
    500  1.5  christos /* score.c */
    501  1.5  christos long score __P((void));
    502  1.5  christos 
    503  1.5  christos /* setup.c */
    504  1.5  christos void setup __P((void));
    505  1.5  christos 
    506  1.5  christos /* setwarp.c */
    507  1.5  christos void setwarp __P((int));
    508  1.5  christos 
    509  1.5  christos /* shield.c */
    510  1.5  christos void shield __P((int));
    511  1.5  christos 
    512  1.5  christos /* snova.c */
    513  1.5  christos void snova __P((int, int ));
    514  1.5  christos 
    515  1.5  christos /* srscan.c */
    516  1.5  christos void srscan __P((int));
    517  1.5  christos 
    518  1.5  christos /* systemname.c */
    519  1.6   hubertf const char *systemname __P((const struct quad *));
    520  1.5  christos 
    521  1.5  christos /* torped.c */
    522  1.5  christos void torped __P((int));
    523  1.5  christos 
    524  1.5  christos /* visual.c */
    525  1.5  christos void visual __P((int));
    526  1.5  christos 
    527  1.5  christos /* warp.c */
    528  1.5  christos void dowarp __P((int));
    529  1.5  christos void warp __P((int, int, double));
    530  1.5  christos 
    531  1.5  christos /* win.c */
    532  1.5  christos void win __P((void));
    533