summaryrefslogtreecommitdiffstats
path: root/warp/us.h
blob: 15c7db1bb94eadf7906ef01f605ac3dc510de811 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* Header: us.h,v 7.0.1.1 86/10/16 10:53:58 lwall Exp */

/* Log:	us.h,v
 * Revision 7.0.1.1  86/10/16  10:53:58  lwall
 * Added Damage.  Fixed random bugs.
 * 
 * Revision 7.0  86/10/08  15:14:27  lwall
 * Split into separate files.  Added amoebas and pirates.
 * 
 */

EXT bool cloaking;
EXT bool cloaked;

EXT int status;
EXT int entmode;

EXT int evely;
EXT int evelx;
EXT int bvely;
EXT int bvelx;

#define MAXDAMAGE 9
#define NOWARP 0
#define NOIMPULSE 1
#define NOPHASERS 2
#define NOTORPS 3
#define NOCLOAKING 4
#define NOSHIELDS 5
#define NOZAPPER 6
#define NODESTRUCT 7
#define NOTRACTORS 8

EXT int dam INIT(0);
EXT int lastdam INIT(-1);
EXT int damage INIT(0);
EXT int olddamage INIT(-1);

#ifdef DOINIT
char *dammess[MAXDAMAGE] = {
    "WARP",
    "IMPULSE",
    "PHASERS",
    "TORPS",
    "CLOAKING",
    "SHIELDS",
    "ZAPPER",
    "DESTRUCT",
    "TRACTORS"
};
char damflag[MAXDAMAGE] = {0,0,0,0,0,0,0,0,0};
#else
extern char *dammess[];
extern char damflag[];
#endif

void do_direction();
void ctrl_direction();
void shift_direction();
void get_commands();
void us_init();