-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaws_c.h
executable file
·87 lines (71 loc) · 1.63 KB
/
aws_c.h
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef _AWS_C_H_
#define _AWS_C_H_
// This file is used by aws2c.c but not by its output files.
typedef unsigned char boolean;
#define true 1
#define false 0
typedef unsigned char word_type;
#define ADVERB 0
#define VERB 1
#define NAME 2
#define SEPARATOR 3
#define ACTOR 4
#define ADJECTIVE 5
typedef struct info_d {
char *version;
unsigned int textcolor;
unsigned int backcolor;
unsigned int textcolordark;
unsigned int backcolordark;
char *name;
char *author;
char *date;
char *description;
unsigned int code;
char *fontname;
unsigned int charsize;
unsigned int fontstyle;
unsigned int startroom;
boolean graphical;
unsigned int maxcarryingw;
unsigned int maxcarryings;
} info;
typedef struct word_d {
char *w;
unsigned int code;
word_type t;
} word;
typedef unsigned int room_code;
typedef struct room_d {
room_code code;
char *long_d;
char *s;
char *short_d;
#define NDIR 10
// north, sud, east, west, up, down, north east, north west, south east,
// south west
room_code directions[NDIR];
} room;
typedef struct message_d {
unsigned int code;
char *txt;
} message;
typedef unsigned int obj_code;
#define ISNOTMOVABLE 1
#define ISWEREABLE 2
typedef struct object_d {
obj_code code;
char *s;
char *desc;
unsigned int weight;
unsigned int size;
unsigned int position; // Always int, as carried =1500, weared=1600
unsigned char attributes;
} object;
typedef struct tree_d {
unsigned char c;
unsigned char son0idx;
unsigned char son1idx;
} tree;
void restart(void);
#endif