… | |
… | |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
20 | |
20 | |
21 | The author can be reached via e-mail to mark@pyramid.com |
21 | The author can be reached via e-mail to mark@pyramid.com |
22 | */ |
22 | */ |
23 | |
23 | |
24 | |
|
|
25 | /* New face structure - this enforces the notion that data is face by |
24 | /* New face structure - this enforces the notion that data is face by |
26 | * face only - you can not change the color of an item - you need to instead |
25 | * face only - you can not change the color of an item - you need to instead |
27 | * create a new face with that color. |
26 | * create a new face with that color. |
28 | */ |
27 | */ |
29 | typedef struct new_face_struct |
28 | struct New_Face |
30 | { |
29 | { |
31 | uint16 number; /* This is the image id. It should be the */ |
30 | uint16 number; /* This is the image id. It should be the */ |
32 | /* same value as its position in the array */ |
31 | /* same value as its position in the array */ |
33 | shstr name; |
32 | shstr name; |
34 | uint8 visibility; |
33 | uint8 visibility; |
35 | uint8 magicmap; /* Color to show this in magic map */ |
34 | uint8 magicmap; /* Color to show this in magic map */ |
36 | } |
35 | }; |
37 | New_Face; |
|
|
38 | |
36 | |
39 | typedef struct map_look_struct |
37 | struct MapLook |
40 | { |
38 | { |
41 | New_Face *face; |
39 | New_Face *face; |
42 | uint8 flags; |
40 | uint8 flags; |
43 | } MapLook; |
41 | }; |
44 | |
42 | |
45 | typedef struct |
43 | struct Animations |
46 | { |
44 | { |
47 | shstr name; /* Name of the animation sequence */ |
45 | shstr name; /* Name of the animation sequence */ |
48 | uint8 num_animations; /* How many different faces to animate */ |
46 | uint8 num_animations; /* How many different faces to animate */ |
49 | uint8 facings; /* How many facings (1,2,4,8) */ |
47 | uint8 facings; /* How many facings (1,2,4,8) */ |
50 | Fontindex *faces; /* The different animations */ |
48 | Fontindex *faces; /* The different animations */ |
51 | uint16 num; /* Where we are in the array */ |
49 | uint16 num; /* Where we are in the array */ |
52 | } Animations; |
50 | }; |
53 | |
51 | |
54 | |
|
|