3a96a5e0003996a1142e9a92080b8495b7a89315
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
27 #define MAXDIST 2000000L
30 Z_HITWALL
=1,Z_HITCEIL
=2,Z_HITLAND
=4,Z_FALLOUT
=8,
31 Z_INWATER
=16,Z_HITWATER
=32,Z_HITAIR
=64,Z_BLOCK
=128
34 void *Z_getspr(char[4],int,int,char *);
35 void *Z_getsnd(char[6]);
36 void Z_drawspr(int,int,void *,char);
37 void Z_drawmanspr(int,int,void *,char,byte
);
38 void Z_drawstair(int);
39 void Z_drawstprcnt(int,int);
40 void Z_drawstnum(int);
41 void Z_drawstwpn(int,int);
42 void Z_drawstkeys(byte
);
43 void Z_drawstlives(char);
44 int Z_sound(void *,int);
46 void Z_drawfld(byte
*, int);
49 int Z_canstand(int,int,int);
50 int Z_canfit(int x
,int y
,int r
,int h
);
51 void Z_teleobj(int o
,int x
,int y
);
52 int Z_moveobj(obj_t
*);
54 int Z_gunhit(int,int,int,int,int);
55 int Z_overlap(obj_t
*,obj_t
*);
56 int Z_look(obj_t
*,obj_t
*,int);
57 int Z_hit(obj_t
*,int,int,int);
58 int Z_hitobj(int id
,int d
,int o
,int t
);
59 void Z_kickobj(obj_t
*,int,int,int);
60 void Z_explode(int,int,int,int);
61 void Z_bfg9000(int,int,int);
62 int Z_cansee(int,int,int,int);
63 int Z_chktrap(int,int d
,int o
,int t
);
64 int Z_istrapped(int,int,int,int);
65 int Z_inwater(int x
,int y
,int r
,int h
);
66 int Z_canbreathe(int x
,int y
,int r
,int h
);
67 int Z_getobjpos(int,obj_t
*o
);
69 void Z_water_trap(obj_t
*);
72 void Z_splash(obj_t
*,int n
);
74 void Z_set_speed(obj_t
*,int);
76 void Z_calc_time(dword t
,word
*h
,word
*m
,word
*s
);
79 void Z_printbf(char *,...);
81 void Z_printsf(char *,...);
82 void Z_gotoxy(int,int);
84 int Z_getacid(int x
,int y
,int r
,int h
);
88 uint16_t short2host (uint16_t x
);
89 uint32_t int2host (uint32_t x
);