Debian Codegraph @

src/brain.h

raw
1 /**
2 * Brains - Sprites AI
3
4 * Copyright (C) 1997, 1998, 1999, 2002, 2003 Seth A. Robinson
5 * Copyright (C) 2005, 2007, 2008, 2009, 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 _BRAIN_H
25 #define _BRAIN_H
26
27 extern /*bool*/int check_for_kill_script(int i);
28 extern void add_kill_sprite(int h);
29 extern int get_distance_and_dir(int h, int h1, int *dir);
30 extern int get_distance_and_dir_nosmooth(int h, int h1, int *dir);
31 extern void change_dir_to_diag( int *dir);
32 extern void changedir(int dir1, int k, int base);
33 extern void process_follow(int h);
34 extern void process_move(int h);
35 extern void draw_damage(int h);
36 extern void automove (int j);
37 extern void move(int u, int amount, char kind, char kindy);
38 extern int autoreverse(int j);
39 extern int autoreverse_diag(int j);
40
41 #endif