1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
|
|
4 | * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
8 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
10 | * the terms of the Affero GNU General Public License as published by the |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * option) any later version. |
12 | * option) any later version. |
12 | * |
13 | * |
13 | * This program is distributed in the hope that it will be useful, |
14 | * This program is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | * GNU General Public License for more details. |
17 | * GNU General Public License for more details. |
17 | * |
18 | * |
18 | * You should have received a copy of the Affero GNU General Public License |
19 | * You should have received a copy of the Affero GNU General Public License |
19 | * and the GNU General Public License along with this program. If not, see |
20 | * and the GNU General Public License along with this program. If not, see |
20 | * <http://www.gnu.org/licenses/>. |
21 | * <http://www.gnu.org/licenses/>. |
21 | * |
22 | * |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
23 | * The authors can be reached via e-mail to <support@deliantra.net> |
23 | */ |
24 | */ |
24 | |
25 | |
25 | #ifndef GLOBAL_H |
26 | #ifndef GLOBAL_H |
26 | #define GLOBAL_H |
27 | #define GLOBAL_H |
… | |
… | |
50 | |
51 | |
51 | #ifndef FALSE |
52 | #ifndef FALSE |
52 | #define FALSE 0 |
53 | #define FALSE 0 |
53 | #endif |
54 | #endif |
54 | |
55 | |
55 | extern short freearr_x[SIZEOFFREE], freearr_y[SIZEOFFREE]; |
56 | extern int freearr_x[SIZEOFFREE]; |
|
|
57 | extern int freearr_y[SIZEOFFREE]; |
56 | extern int freedir[SIZEOFFREE]; |
58 | extern int freedir[SIZEOFFREE]; |
57 | extern int rightof_x[9], rightof_y[9]; |
59 | extern int rightof_x[9], rightof_y[9]; |
58 | extern int leftof_x[9], leftof_y[9]; |
60 | extern int leftof_x[9], leftof_y[9]; |
59 | |
61 | |
60 | extern sint64 levels [MAXNUMLEVELS]; |
62 | extern sint64 levels [MAXNUMLEVELS]; |
… | |
… | |
93 | /* pull in treasure structure */ |
95 | /* pull in treasure structure */ |
94 | #include "treasure.h" |
96 | #include "treasure.h" |
95 | |
97 | |
96 | /* pull in book structures */ |
98 | /* pull in book structures */ |
97 | #include "book.h" |
99 | #include "book.h" |
|
|
100 | |
|
|
101 | #include "quadland.h" |
|
|
102 | |
98 | /* |
103 | /* |
99 | * So far only used when dealing with artifacts. |
104 | * So far only used when dealing with artifacts. |
100 | * (now used by alchemy and other code too. Nov 95 b.t). |
105 | * (now used by alchemy and other code too. Nov 95 b.t). |
101 | */ |
106 | */ |
102 | struct linked_char |
107 | struct linked_char |
… | |
… | |
134 | */ |
139 | */ |
135 | |
140 | |
136 | EXTERN bool init_done; /* Ignores signals until init_done is true */ |
141 | EXTERN bool init_done; /* Ignores signals until init_done is true */ |
137 | EXTERN bool in_cleanup; /* True when cleanup() is reached */ |
142 | EXTERN bool in_cleanup; /* True when cleanup() is reached */ |
138 | |
143 | |
139 | extern tick_t pticks; /* used by various function to determine */ |
144 | extern tick_t server_tick; /* used by various function to determine */ |
140 | /* how often to save the character */ |
145 | /* how often to save the character */ |
141 | /* |
146 | /* |
142 | * Misc global variables: |
147 | * Misc global variables: |
143 | */ |
148 | */ |
144 | EXTERN shstr first_map_path; /* The start-level */ |
149 | EXTERN shstr first_map_path; /* The start-level */ |