Debian Codegraph @

src/freedink.h

raw
1 /**
2 * Header for FreeDink-specific code (not FreeDinkedit)
3
4 * Copyright (C) 1997, 1998, 1999, 2002, 2003 Seth A. Robinson
5 * Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2012, 2014, 2015 Sylvain Beucler
6
7 * This file is part of GNU FreeDink
8
9 * GNU FreeDink is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 3 of the
12 * License, or (at your option) any later version.
13
14 * GNU FreeDink is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see
21 * <http://www.gnu.org/licenses/>.
22 */
23
24 #ifndef _FREEDINK_H
25 #define _FREEDINK_H
26
27 #include "SDL.h"
28
29 /* show_bmp() currently ran */
30 struct show_bmp
31 {
32 /*bool*/int active;
33 /*bool*/int showdot;
34 int reserved;
35 int script;
36 int stime;
37 int picframe;
38 };
39 extern struct show_bmp showb;
40
41 extern Uint32 but_timer;
42
43 extern int check_if_move_is_legal(int u);
44 extern int did_player_cross_screen();
45 extern void process_show_bmp( void );
46 extern void process_warp_man(void);
47
48 extern void run_through_tag_list(int h, int strength);
49 extern int hurt_thing(int h, int damage, int special);
50 extern /*bool*/int run_through_tag_list_talk(int h);
51 extern void run_through_touch_damage_list(int h);
52
53 extern int special_block(int block);
54 extern void CyclePalette();
55 extern void up_cycle(void);
56
57 #endif