DEADSOFTWARE

fully move highter level rendering code in separate file
[flatwaifu.git] / src / misc.h
1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
4 Copyright (C) <ARembo@gmail.com> 2011
6 This file is part of the Doom2D:Rembo project.
8 Doom2D:Rembo is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2 as
10 published by the Free Software Foundation.
12 Doom2D:Rembo is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, see <http://www.gnu.org/licenses/> or
19 write to the Free Software Foundation, Inc.,
20 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
23 // Miscellaneous functions
25 #include <stdint.h>
26 #include "view.h"
28 #define MAXDIST 2000000L
30 enum{
31 Z_HITWALL=1,Z_HITCEIL=2,Z_HITLAND=4,Z_FALLOUT=8,
32 Z_INWATER=16,Z_HITWATER=32,Z_HITAIR=64,Z_BLOCK=128
33 };
35 void *Z_getsnd(char[6]);
36 int Z_sound(void *,int);
37 void Z_initst(void);
38 int Z_sign(int);
39 int Z_dec(int,int);
40 int Z_canstand(int,int,int);
41 int Z_canfit(int x,int y,int r,int h);
42 void Z_teleobj(int o,int x,int y);
43 int Z_moveobj(obj_t *);
44 int Z_what_cpu(void);
45 int Z_gunhit(int,int,int,int,int);
46 int Z_overlap(obj_t *,obj_t *);
47 int Z_look(obj_t *,obj_t *,int);
48 int Z_hit(obj_t *,int,int,int);
49 int Z_hitobj(int id,int d,int o,int t);
50 void Z_kickobj(obj_t *,int,int,int);
51 void Z_explode(int,int,int,int);
52 void Z_bfg9000(int,int,int);
53 int Z_cansee(int,int,int,int);
54 int Z_chktrap(int,int d,int o,int t);
55 int Z_istrapped(int,int,int,int);
56 int Z_inwater(int x,int y,int r,int h);
57 int Z_canbreathe(int x,int y,int r,int h);
58 int Z_getobjpos(int,obj_t *o);
60 void Z_water_trap(obj_t *);
61 void Z_untrap(byte);
63 void Z_splash(obj_t *,int n);
65 void Z_set_speed(obj_t *,int);
67 void Z_calc_time(dword t,word *h,word *m,word *s);
69 int Z_getacid(int x,int y,int r,int h);
71 int16_t short2host (int16_t x);
72 int32_t int2host (int32_t x);