1 | /* |
|
|
2 | * static char *rcsid_global_h = |
|
|
3 | * "$Id: global.h,v 1.14 2006/09/04 11:07:59 root Exp $"; |
|
|
4 | */ |
|
|
5 | |
|
|
6 | /* |
1 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
8 | |
3 | |
9 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
10 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
75 | #endif |
70 | #endif |
76 | |
71 | |
77 | typedef signed char sint8; |
72 | typedef signed char sint8; |
78 | #define SINT8_MAX 127 |
73 | #define SINT8_MAX 127 |
79 | |
74 | |
80 | |
|
|
81 | typedef unsigned short Fontindex; |
75 | typedef unsigned short Fontindex; |
82 | |
76 | |
83 | #ifdef WIN32 |
77 | #ifdef WIN32 |
84 | /* Python plugin stuff defines SIZEOF_LONG_LONG as 8, and besides __int64 is a 64b type on MSVC... |
78 | /* Python plugin stuff defines SIZEOF_LONG_LONG as 8, and besides __int64 is a 64b type on MSVC... |
85 | * So let's force the typedef */ |
79 | * So let's force the typedef */ |
… | |
… | |
107 | |
101 | |
108 | #endif |
102 | #endif |
109 | |
103 | |
110 | #include <vector> |
104 | #include <vector> |
111 | |
105 | |
|
|
106 | #define ACC_CLASS(name) |
|
|
107 | #define ACC(meta,member) member |
|
|
108 | |
112 | #include "keyword.h" |
109 | #include "keyword.h" |
113 | #include "traits.h" |
110 | #include "traits.h" |
114 | #include "dynbuf.h" |
111 | #include "dynbuf.h" |
115 | #include "util.h" |
112 | #include "util.h" |
116 | #include "shstr.h" |
113 | #include "shstr.h" |
… | |
… | |
142 | #include "book.h" |
139 | #include "book.h" |
143 | /* |
140 | /* |
144 | * So far only used when dealing with artifacts. |
141 | * So far only used when dealing with artifacts. |
145 | * (now used by alchemy and other code too. Nov 95 b.t). |
142 | * (now used by alchemy and other code too. Nov 95 b.t). |
146 | */ |
143 | */ |
147 | typedef struct linked_char { |
144 | struct linked_char |
|
|
145 | { |
148 | shstr name; |
146 | shstr name; |
149 | struct linked_char *next; |
147 | struct linked_char *next; |
150 | } linked_char; |
148 | }; |
151 | |
|
|
152 | |
149 | |
153 | /* Pull in artifacts */ |
150 | /* Pull in artifacts */ |
154 | #include "artifact.h" |
151 | #include "artifact.h" |
155 | |
152 | |
156 | /* Now for gods */ |
153 | /* Now for gods */ |
… | |
… | |
175 | |
172 | |
176 | /* |
173 | /* |
177 | * These are the beginnings of linked lists: |
174 | * These are the beginnings of linked lists: |
178 | */ |
175 | */ |
179 | EXTERN player *first_player; |
176 | EXTERN player *first_player; |
180 | EXTERN mapstruct *first_map; |
177 | EXTERN maptile *first_map; |
181 | EXTERN region *first_region; |
178 | EXTERN region *first_region; |
182 | EXTERN treasurelist *first_treasurelist; |
179 | EXTERN treasurelist *first_treasurelist; |
183 | EXTERN artifactlist *first_artifactlist; |
180 | EXTERN artifactlist *first_artifactlist; |
184 | EXTERN archetype *first_archetype; |
181 | EXTERN archetype *first_archetype; |
185 | EXTERN objectlink *first_friendly_object; /* Objects monsters will go after */ |
182 | EXTERN objectlink *first_friendly_object; /* Objects monsters will go after */ |
… | |
… | |
407 | void free (object *); |
404 | void free (object *); |
408 | void free (archetype *); |
405 | void free (archetype *); |
409 | void free (recipe *); |
406 | void free (recipe *); |
410 | void free (linked_char *); |
407 | void free (linked_char *); |
411 | void free (godlink *); |
408 | void free (godlink *); |
|
|
409 | void free (objectlink *); |
|
|
410 | void free (oblinkpt *); |
412 | void free (mapstruct *); |
411 | void free (maptile *); |
413 | void free (key_value *); |
412 | void free (key_value *); |
414 | void free (treasure *); |
413 | void free (treasure *); |
415 | void free (materialtype_t *); |
414 | void free (materialtype_t *); |
416 | void free (player *); |
415 | void free (player *); |
417 | void free (New_Face *); |
416 | void free (New_Face *); |
|
|
417 | void free (racelink *); |
418 | |
418 | |
419 | #endif /* GLOBAL_H */ |
419 | #endif /* GLOBAL_H */ |
420 | |
420 | |