us.h revision 1.1 1 /* $Header: /tank/opengrok/rsync2/NetBSD/src/games/warp/us.h,v 1.1 2020/11/09 23:37:05 kamil Exp $ */
2
3 /* $Log: us.h,v $
4 /* Revision 1.1 2020/11/09 23:37:05 kamil
5 /* Add Warp Kit, Version 7.0 by Larry Wall
6 /*
7 /* Warp is a real-time space war game that doesn't get boring very quickly.
8 /* Read warp.doc and the manual page for more information.
9 /*
10 /* games/warp originally distributed with 4.3BSD-Reno, is back to the BSD
11 /* world via NetBSD. Its remnants were still mentioned in games/Makefile.
12 /*
13 /* Larry Wall, the original author and the copyright holder, generously
14 /* donated the game and copyright to The NetBSD Foundation, Inc.
15 /*
16 /* Import the game sources as-is from 4.3BSD-Reno, with the cession
17 /* of the copyright and license to BSD-2-clause NetBSD-style.
18 /*
19 /* Signed-off-by: Larry Wall <larry (at) wall.org>
20 /* Signed-off-by: Kamil Rytarowski <kamil (at) netbsd.org>
21 /*
22 * Revision 7.0.1.1 86/10/16 10:53:58 lwall
23 * Added Damage. Fixed random bugs.
24 *
25 * Revision 7.0 86/10/08 15:14:27 lwall
26 * Split into separate files. Added amoebas and pirates.
27 *
28 */
29
30 EXT bool cloaking;
31 EXT bool cloaked;
32
33 EXT int status;
34 EXT int entmode;
35
36 EXT int evely;
37 EXT int evelx;
38 EXT int bvely;
39 EXT int bvelx;
40
41 #define MAXDAMAGE 9
42 #define NOWARP 0
43 #define NOIMPULSE 1
44 #define NOPHASERS 2
45 #define NOTORPS 3
46 #define NOCLOAKING 4
47 #define NOSHIELDS 5
48 #define NOZAPPER 6
49 #define NODESTRUCT 7
50 #define NOTRACTORS 8
51
52 EXT int dam INIT(0);
53 EXT int lastdam INIT(-1);
54 EXT int damage INIT(0);
55 EXT int olddamage INIT(-1);
56
57 #ifdef DOINIT
58 char *dammess[MAXDAMAGE] = {
59 "WARP",
60 "IMPULSE",
61 "PHASERS",
62 "TORPS",
63 "CLOAKING",
64 "SHIELDS",
65 "ZAPPER",
66 "DESTRUCT",
67 "TRACTORS"
68 };
69 char damflag[MAXDAMAGE] = {0,0,0,0,0,0,0,0,0};
70 #else
71 extern char *dammess[];
72 extern char damflag[];
73 #endif
74
75 void do_direction();
76 void ctrl_direction();
77 void shift_direction();
78 void get_commands();
79 void us_init();
80