DEADSOFTWARE

60eaee5bf5ec9ce7ea63f24d91ef3c1aea4047c1
[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 #define MAXDIST 2000000L
27 enum{
28 Z_HITWALL=1,Z_HITCEIL=2,Z_HITLAND=4,Z_FALLOUT=8,
29 Z_INWATER=16,Z_HITWATER=32,Z_HITAIR=64,Z_BLOCK=128
30 };
32 void *Z_getspr(char[4],int,int,char *);
33 void *Z_getsnd(char[6]);
34 void Z_drawspr(int,int,void *,char);
35 void Z_drawmanspr(int,int,void *,char,byte);
36 void Z_drawstair(int);
37 void Z_drawstprcnt(int,int);
38 void Z_drawstnum(int);
39 void Z_drawstwpn(int,int);
40 void Z_drawstkeys(byte);
41 void Z_drawstlives(char);
42 int Z_sound(void *,int);
43 void Z_initst(void);
44 void Z_drawfld(byte *, int);
45 int Z_sign(int);
46 int Z_dec(int,int);
47 int Z_canstand(int,int,int);
48 int Z_canfit(int x,int y,int r,int h);
49 void Z_teleobj(int o,int x,int y);
50 int Z_moveobj(obj_t *);
51 int Z_what_cpu(void);
52 int Z_gunhit(int,int,int,int,int);
53 int Z_overlap(obj_t *,obj_t *);
54 int Z_look(obj_t *,obj_t *,int);
55 int Z_hit(obj_t *,int,int,int);
56 int Z_hitobj(int id,int d,int o,int t);
57 void Z_kickobj(obj_t *,int,int,int);
58 void Z_explode(int,int,int,int);
59 void Z_bfg9000(int,int,int);
60 int Z_cansee(int,int,int,int);
61 int Z_chktrap(int,int d,int o,int t);
62 int Z_istrapped(int,int,int,int);
63 int Z_inwater(int x,int y,int r,int h);
64 int Z_canbreathe(int x,int y,int r,int h);
65 int Z_getobjpos(int,obj_t *o);
67 void Z_water_trap(obj_t *);
68 void Z_untrap(byte);
70 void Z_splash(obj_t *,int n);
72 void Z_set_speed(obj_t *,int);
74 void Z_calc_time(dword t,word *h,word *m,word *s);
76 void Z_putbfch(int);
77 void Z_printbf(char *,...);
78 void Z_putsfch(int);
79 void Z_printsf(char *,...);
80 void Z_gotoxy(int,int);
82 int Z_getacid(int x,int y,int r,int h);
84 void Z_clrst();
86 unsigned short int short2host (unsigned short int x);
87 unsigned int int2host (unsigned int x);