xref: /dragonfly/games/trek/externs.c (revision 7ad467de)
1 /*	@(#)externs.c	8.1 (Berkeley) 5/31/93				*/
2 /*	$NetBSD: externs.c,v 1.10 2009/05/24 21:44:56 dholland Exp $	*/
3 
4 /*
5  * Copyright (c) 1980, 1993
6  *	The Regents of the University of California.  All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  * 3. Neither the name of the University nor the names of its contributors
17  *    may be used to endorse or promote products derived from this software
18  *    without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30  * SUCH DAMAGE.
31  */
32 
33 #include "trek.h"
34 
35 /*
36 **	global variable definitions
37 */
38 
39 const struct device Device[NDEV] = {
40 	{ "warp drive",		"Scotty" },
41 	{ "S.R. scanners",	"Scotty" },
42 	{ "L.R. scanners",	"Scotty" },
43 	{ "phasers",		"Sulu" },
44 	{ "photon tubes",	"Sulu" },
45 	{ "impulse engines",	"Scotty" },
46 	{ "shield control",	"Sulu" },
47 	{ "computer",		"Spock" },
48 	{ "subspace radio",	"Uhura" },
49 	{ "life support",	"Scotty" },
50 	{ "navigation system",	"Chekov" },
51 	{ "cloaking device",	"Scotty" },
52 	{ "transporter",	"Scotty" },
53 	{ "shuttlecraft",	"Scotty" },
54 	{ "*ERR 14*",		"Nobody" },
55 	{ "*ERR 15*",		"Nobody" }
56 };
57 
58 const char *const Systemname[NINHAB] = {
59 	"ERROR",
60 	"Talos IV",
61 	"Rigel III",
62 	"Deneb VII",
63 	"Canopus V",
64 	"Icarus I",
65 	"Prometheus II",
66 	"Omega VII",
67 	"Elysium I",
68 	"Scalos IV",
69 	"Procyon IV",
70 	"Arachnid I",
71 	"Argo VIII",
72 	"Triad III",
73 	"Echo IV",
74 	"Nimrod III",
75 	"Nemisis IV",
76 	"Centarurus I",
77 	"Kronos III",
78 	"Spectros V",
79 	"Beta III",
80 	"Gamma Tranguli VI",
81 	"Pyris III",
82 	"Triachus",
83 	"Marcus XII",
84 	"Kaland",
85 	"Ardana",
86 	"Stratos",
87 	"Eden",
88 	"Arrikis",
89 	"Epsilon Eridani IV",
90 	"Exo III"
91 };
92 
93 struct quad	Quad[NQUADS][NQUADS];
94 
95 /* current sector map */
96 char	Sect[NSECTS][NSECTS];
97 
98 /* dynamic event list; one entry per pending event */
99 struct event Event[MAXEVENTS];
100 
101 struct Ship_struct Ship;
102 struct Game_struct Game;
103 struct Move_struct Move;
104 struct Param_struct Param;
105 struct Now_struct Now;
106 struct Etc_struct Etc;
107 
108 int Trace;
109