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
23 // Miscellaneous functions
28 #define MAXDIST 2000000L
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
35 void *Z_getspr(char[4],int,int,char *);
36 void *Z_getsnd(char[6]);
37 void Z_drawspr(int,int,void *,char);
38 void Z_drawmanspr(int,int,void *,char,byte
);
39 void Z_drawstair(int);
40 void Z_drawstprcnt(int,int);
41 void Z_drawstnum(int);
42 void Z_drawstwpn(int,int);
43 void Z_drawstkeys(byte
);
44 void Z_drawstlives(char);
45 int Z_sound(void *,int);
47 void Z_drawfld(byte
*, int);
50 int Z_canstand(int,int,int);
51 int Z_canfit(int x
,int y
,int r
,int h
);
52 void Z_teleobj(int o
,int x
,int y
);
53 int Z_moveobj(obj_t
*);
55 int Z_gunhit(int,int,int,int,int);
56 int Z_overlap(obj_t
*,obj_t
*);
57 int Z_look(obj_t
*,obj_t
*,int);
58 int Z_hit(obj_t
*,int,int,int);
59 int Z_hitobj(int id
,int d
,int o
,int t
);
60 void Z_kickobj(obj_t
*,int,int,int);
61 void Z_explode(int,int,int,int);
62 void Z_bfg9000(int,int,int);
63 int Z_cansee(int,int,int,int);
64 int Z_chktrap(int,int d
,int o
,int t
);
65 int Z_istrapped(int,int,int,int);
66 int Z_inwater(int x
,int y
,int r
,int h
);
67 int Z_canbreathe(int x
,int y
,int r
,int h
);
68 int Z_getobjpos(int,obj_t
*o
);
70 void Z_water_trap(obj_t
*);
73 void Z_splash(obj_t
*,int n
);
75 void Z_set_speed(obj_t
*,int);
77 void Z_calc_time(dword t
,word
*h
,word
*m
,word
*s
);
80 void Z_printbf(char *,...);
82 void Z_printsf(char *,...);
83 void Z_gotoxy(int,int);
85 int Z_getacid(int x
,int y
,int r
,int h
);
89 int16_t short2host (int16_t x
);
90 int32_t int2host (int32_t x
);