|
|
1 | /* |
|
|
2 | * This file is part of Crossfire TRT, the Roguelike Realtime MORPG. |
|
|
3 | * |
|
|
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team |
|
|
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
|
|
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
|
|
7 | * |
|
|
8 | * Crossfire TRT is free software: you can redistribute it and/or modify |
|
|
9 | * it under the terms of the GNU General Public License as published by |
|
|
10 | * the Free Software Foundation, either version 3 of the License, or |
|
|
11 | * (at your option) any later version. |
|
|
12 | * |
|
|
13 | * This program is distributed in the hope that it will be useful, |
|
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
16 | * GNU General Public License for more details. |
|
|
17 | * |
|
|
18 | * You should have received a copy of the GNU General Public License |
|
|
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
20 | * |
|
|
21 | * The authors can be reached via e-mail to <crossfire@schmorp.de> |
|
|
22 | */ |
|
|
23 | |
1 | /* anim.c */ |
24 | /* anim.c */ |
2 | extern void free_all_anim(); |
25 | extern void free_all_anim(); |
3 | extern void init_anim(); |
26 | extern void init_anim(); |
4 | extern int find_animation(const char *name); |
27 | extern int find_animation(const char *name); |
5 | extern void animate_object(object *op, int dir); |
28 | extern void animate_object(object *op, int dir); |
… | |
… | |
122 | extern void change_exp(object *op, sint64 exp, const char *skill_name, int flag); |
145 | extern void change_exp(object *op, sint64 exp, const char *skill_name, int flag); |
123 | extern void apply_death_exp_penalty(object *op); |
146 | extern void apply_death_exp_penalty(object *op); |
124 | extern int did_make_save(const object *op, int level, int bonus); |
147 | extern int did_make_save(const object *op, int level, int bonus); |
125 | /* los.c */ |
148 | /* los.c */ |
126 | extern void init_block(); |
149 | extern void init_block(); |
127 | extern void clear_los(object *op); |
150 | extern void clear_los(player *pl); |
128 | extern int has_carried_lights(const object *op); |
151 | extern int has_carried_lights(const object *op); |
129 | extern void update_los(object *op); |
152 | extern void update_los(object *op); |
130 | extern void update_all_map_los(maptile *map); |
153 | extern void update_all_map_los(maptile *map); |
131 | extern void update_all_los(const maptile *map, int x, int y); |
154 | extern void update_all_los(const maptile *map, int x, int y); |
132 | extern void print_los(object *op); |
155 | extern void print_los(object *op); |
133 | extern void make_sure_seen(const object *op); |
156 | extern void make_sure_seen(const object *op); |
134 | extern void make_sure_not_seen(const object *op); |
157 | extern void make_sure_not_seen(const object *op); |
135 | /* map.c */ |
158 | /* map.c */ |
136 | extern const char *create_pathname (const char *name); |
159 | extern const char *create_pathname (const char *name); |
137 | extern int check_path(const char *name, int prepend_dir); |
|
|
138 | extern int blocked_link(object *ob, maptile *m, int sx, int sy); |
160 | extern int blocked_link(object *ob, maptile *m, int sx, int sy); |
139 | extern void fix_container(object *container); |
161 | extern void fix_container(object *container); |
140 | /* object.c */ |
162 | /* object.c */ |
141 | extern signed long sum_weight(object *op); |
163 | extern signed long sum_weight(object *op); |
142 | extern object *object_get_env_recursive(object *op); |
164 | extern object *object_get_env_recursive(object *op); |
… | |
… | |
163 | extern object *present_in_ob(unsigned char type, const object *op); |
185 | extern object *present_in_ob(unsigned char type, const object *op); |
164 | extern object *present_in_ob_by_name(int type, const char *str, const object *op); |
186 | extern object *present_in_ob_by_name(int type, const char *str, const object *op); |
165 | extern object *present_arch_in_ob(const archetype *at, const object *op); |
187 | extern object *present_arch_in_ob(const archetype *at, const object *op); |
166 | extern void flag_inv(object *op, int flag); |
188 | extern void flag_inv(object *op, int flag); |
167 | extern void unflag_inv(object *op, int flag); |
189 | extern void unflag_inv(object *op, int flag); |
168 | extern void set_cheat(object *op); |
|
|
169 | extern int find_free_spot(const object *ob, maptile *m, int x, int y, int start, int stop); |
190 | extern int find_free_spot(const object *ob, maptile *m, int x, int y, int start, int stop); |
170 | extern int find_first_free_spot(const object *ob, maptile *m, int x, int y); |
191 | extern int find_first_free_spot(const object *ob, maptile *m, int x, int y); |
171 | extern void get_search_arr(int *search_arr); |
192 | extern void get_search_arr(int *search_arr); |
172 | extern int find_dir(maptile *m, int x, int y, object *exclude); |
193 | extern int find_dir(maptile *m, int x, int y, object *exclude); |
173 | extern int distance(const object *ob1, const object *ob2); |
194 | extern int distance(const object *ob1, const object *ob2); |