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,2011,2012 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 |
… | |
… | |
38 | #define MTH |
39 | #define MTH |
39 | #define GENCONST_IV(patterns) |
40 | #define GENCONST_IV(patterns) |
40 | |
41 | |
41 | #include "includes.h" |
42 | #include "includes.h" |
42 | #include "config.h" |
43 | #include "config.h" |
43 | #include "compiler.h" |
44 | #include "ecb.h" |
44 | #include "define.h" |
45 | #include "define.h" |
45 | #include "traits.h" |
46 | #include "traits.h" |
46 | |
47 | |
47 | #ifndef TRUE |
48 | #ifndef TRUE |
48 | #define TRUE 1 |
49 | #define TRUE 1 |
… | |
… | |
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]; |
… | |
… | |
148 | EXTERN shstr first_map_ext_path; /* Path used for per-race start maps */ |
150 | EXTERN shstr first_map_ext_path; /* Path used for per-race start maps */ |
149 | |
151 | |
150 | EXTERN long ob_count; |
152 | EXTERN long ob_count; |
151 | |
153 | |
152 | extern dynbuf_text msg_dynbuf; // a dynbuf for text messages and other temporary data |
154 | extern dynbuf_text msg_dynbuf; // a dynbuf for text messages and other temporary data |
153 | |
|
|
154 | /* do not use these in new code, see object.h::animation */ |
|
|
155 | #define SET_ANIMATION(ob,frame) ob->set_anim_frame (frame) |
|
|
156 | #define NUM_ANIMATIONS(ob) (ob)->anim_frames () |
|
|
157 | #define NUM_FACINGS(ob) (ob)->anim_facings () |
|
|
158 | |
|
|
159 | // used only by treasure.C, does not handle null arch ptrs |
|
|
160 | #define IS_ARCH(arch,name) ((arch)->archname == shstr_ ## name) |
|
|
161 | |
155 | |
162 | extern void emergency_save (); |
156 | extern void emergency_save (); |
163 | |
157 | |
164 | #include "libproto.h" |
158 | #include "libproto.h" |
165 | #include "sockproto.h" |
159 | #include "sockproto.h" |