… | |
… | |
64 | |
64 | |
65 | #include "attack.h" /* needs to be before material.h */ |
65 | #include "attack.h" /* needs to be before material.h */ |
66 | #include "material.h" |
66 | #include "material.h" |
67 | #include "living.h" |
67 | #include "living.h" |
68 | #include "object.h" |
68 | #include "object.h" |
|
|
69 | #include "region.h" |
69 | #include "map.h" |
70 | #include "map.h" |
70 | #include "tod.h" |
71 | #include "tod.h" |
71 | |
72 | |
72 | #include "skills.h" |
73 | #include "skills.h" |
73 | |
74 | |
… | |
… | |
124 | |
125 | |
125 | /* |
126 | /* |
126 | * Variables set by different flags (see init.c): |
127 | * Variables set by different flags (see init.c): |
127 | */ |
128 | */ |
128 | |
129 | |
129 | EXTERN bool warn_archetypes; /* If true, write warnings when failing */ |
|
|
130 | /* to find archetypes when loading from file */ |
|
|
131 | EXTERN bool init_done; /* Ignores signals until init_done is true */ |
130 | EXTERN bool init_done; /* Ignores signals until init_done is true */ |
132 | EXTERN bool in_cleanup; /* True when cleanup() is reached */ |
131 | EXTERN bool in_cleanup; /* True when cleanup() is reached */ |
133 | |
132 | |
134 | extern long pticks; /* used by various function to determine */ |
133 | extern long pticks; /* used by various function to determine */ |
135 | /* how often to save the character */ |
134 | /* how often to save the character */ |
136 | /* |
135 | /* |
137 | * Misc global variables: |
136 | * Misc global variables: |
138 | */ |
137 | */ |
139 | EXTERN FILE *logfile; /* Used by server/daemon.c */ |
138 | EXTERN FILE *logfile; /* Used by server/daemon.c */ |
140 | EXTERN int exiting; /* True if the game is about to exit */ |
|
|
141 | EXTERN long nroftreasures; /* Only used in malloc_info() */ |
|
|
142 | EXTERN long nrofartifacts; /* Only used in malloc_info() */ |
|
|
143 | EXTERN long nrofallowedstr; /* Only used in malloc_info() */ |
|
|
144 | |
139 | |
145 | EXTERN archetype *empty_archetype; /* Nice to have fast access to it */ |
140 | EXTERN archetype *empty_archetype; /* Nice to have fast access to it */ |
146 | EXTERN archetype *map_archeytpe; |
141 | EXTERN archetype *map_archeytpe; |
147 | EXTERN shstr first_map_path; /* The start-level */ |
142 | EXTERN shstr first_map_path; /* The start-level */ |
148 | EXTERN shstr first_map_ext_path; /* Path used for per-race start maps */ |
143 | EXTERN shstr first_map_ext_path; /* Path used for per-race start maps */ |