|
|
1 | /* |
|
|
2 | * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game. |
|
|
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 it |
|
|
9 | * under the terms of the GNU General Public License as published by the Free |
|
|
10 | * Software Foundation; either version 2 of the License, or (at your option) |
|
|
11 | * any later version. |
|
|
12 | * |
|
|
13 | * This program is distributed in the hope that it will be useful, but |
|
|
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
|
|
15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
|
16 | * for more details. |
|
|
17 | * |
|
|
18 | * You should have received a copy of the GNU General Public License along |
|
|
19 | * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51 |
|
|
20 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
|
21 | * |
|
|
22 | * The authors can be reached via e-mail to <crossfire@schmorp.de> |
|
|
23 | */ |
|
|
24 | |
1 | /* anim.c */ |
25 | /* anim.c */ |
2 | extern void free_all_anim(); |
26 | extern void free_all_anim(); |
3 | extern void init_anim(); |
27 | extern void init_anim(); |
4 | extern int find_animation(const char *name); |
28 | extern int find_animation(const char *name); |
5 | extern void animate_object(object *op, int dir); |
29 | extern void animate_object(object *op, int dir); |
… | |
… | |
9 | extern object *get_archetype_by_skill_name(const char *skill, int type); |
33 | extern object *get_archetype_by_skill_name(const char *skill, int type); |
10 | extern archetype *get_archetype_by_type_subtype(int type, int subtype); |
34 | extern archetype *get_archetype_by_type_subtype(int type, int subtype); |
11 | extern object *get_archetype_by_object_name(const char *name); |
35 | extern object *get_archetype_by_object_name(const char *name); |
12 | extern object *find_best_weapon_used_match(object *pl, const char *params); |
36 | extern object *find_best_weapon_used_match(object *pl, const char *params); |
13 | extern int item_matched_string(object *pl, object *op, const char *name); |
37 | extern int item_matched_string(object *pl, object *op, const char *name); |
14 | extern void init_archetypes(); |
|
|
15 | extern void arch_info(object *op); |
38 | extern void arch_info(object *op); |
16 | extern void clear_archetable(); |
39 | extern void clear_archetable(); |
17 | extern void init_archetable(); |
|
|
18 | extern void dump_arch(archetype *at); |
40 | extern void dump_arch(archetype *at); |
19 | extern void dump_all_archetypes(); |
41 | extern void dump_all_archetypes(); |
20 | extern void free_all_archs(); |
42 | extern void free_all_archs(); |
21 | extern void check_generators(); |
43 | extern void check_generators(); |
22 | extern void load_archetypes(); |
44 | extern bool load_archetype_file(const char *filename); |
23 | extern object *arch_to_object(archetype *at); |
45 | extern object *arch_to_object(archetype *at); |
24 | extern object *create_singularity(const char *name); |
46 | extern object *create_singularity(const char *name); |
25 | extern object *get_archetype(const char *name); |
47 | extern object *get_archetype(const char *name); |
26 | extern unsigned long hasharch(const char *str, int tablesize); |
48 | extern unsigned long hasharch(const char *str, int tablesize); |
27 | extern archetype *type_to_archetype(int type); |
49 | extern archetype *type_to_archetype(int type); |
… | |
… | |
107 | extern objectlink *get_objectlink(); |
129 | extern objectlink *get_objectlink(); |
108 | extern oblinkpt *get_objectlinkpt(); |
130 | extern oblinkpt *get_objectlinkpt(); |
109 | extern void free_objectlink(objectlink *ol); |
131 | extern void free_objectlink(objectlink *ol); |
110 | extern void free_objectlinkpt(oblinkpt *obp); |
132 | extern void free_objectlinkpt(oblinkpt *obp); |
111 | /* living.c */ |
133 | /* living.c */ |
112 | extern void set_attr_value(living *stats, int attr, sint8 value); |
|
|
113 | extern void change_attr_value(living *stats, int attr, sint8 value); |
134 | extern void change_attr_value(living *stats, int attr, sint8 value); |
114 | extern sint8 get_attr_value(const living *stats, int attr); |
|
|
115 | extern void check_stat_bounds(living *stats); |
135 | extern void check_stat_bounds(living *stats); |
116 | extern int change_abil(object *op, object *tmp); |
136 | extern int change_abil(object *op, object *tmp); |
117 | extern int allowed_class(const object *op); |
137 | extern int allowed_class(const object *op); |
118 | extern void set_dragon_name(object *pl, const object *abil, const object *skin); |
138 | extern void set_dragon_name(object *pl, const object *abil, const object *skin); |
119 | extern void dragon_level_gain(object *who); |
139 | extern void dragon_level_gain(object *who); |
… | |
… | |
167 | extern object *present_in_ob(unsigned char type, const object *op); |
187 | extern object *present_in_ob(unsigned char type, const object *op); |
168 | extern object *present_in_ob_by_name(int type, const char *str, const object *op); |
188 | extern object *present_in_ob_by_name(int type, const char *str, const object *op); |
169 | extern object *present_arch_in_ob(const archetype *at, const object *op); |
189 | extern object *present_arch_in_ob(const archetype *at, const object *op); |
170 | extern void flag_inv(object *op, int flag); |
190 | extern void flag_inv(object *op, int flag); |
171 | extern void unflag_inv(object *op, int flag); |
191 | extern void unflag_inv(object *op, int flag); |
172 | extern void set_cheat(object *op); |
|
|
173 | extern int find_free_spot(const object *ob, maptile *m, int x, int y, int start, int stop); |
192 | extern int find_free_spot(const object *ob, maptile *m, int x, int y, int start, int stop); |
174 | extern int find_first_free_spot(const object *ob, maptile *m, int x, int y); |
193 | extern int find_first_free_spot(const object *ob, maptile *m, int x, int y); |
175 | extern void get_search_arr(int *search_arr); |
194 | extern void get_search_arr(int *search_arr); |
176 | extern int find_dir(maptile *m, int x, int y, object *exclude); |
195 | extern int find_dir(maptile *m, int x, int y, object *exclude); |
177 | extern int distance(const object *ob1, const object *ob2); |
196 | extern int distance(const object *ob1, const object *ob2); |
… | |
… | |
260 | extern void get_tod(timeofday_t *tod); |
279 | extern void get_tod(timeofday_t *tod); |
261 | extern void print_tod(object *op); |
280 | extern void print_tod(object *op); |
262 | extern void time_info(object *op); |
281 | extern void time_info(object *op); |
263 | /* treasure.c */ |
282 | /* treasure.c */ |
264 | extern void init_archetype_pointers(); |
283 | extern void init_archetype_pointers(); |
265 | extern bool load_treasures(); |
284 | extern bool load_treasure_file(const char *filename); |
266 | extern void create_treasure(treasurelist *t, object *op, int flag, int difficulty, int tries); |
|
|
267 | extern object *generate_treasure(treasurelist *t, int difficulty); |
285 | extern object *generate_treasure(treasurelist *t, int difficulty); |
268 | extern int level_for_item(const object *op, int difficulty); |
286 | extern int level_for_item(const object *op, int difficulty); |
269 | extern int magic_from_difficulty(int difficulty); |
287 | extern int magic_from_difficulty(int difficulty); |
270 | extern void set_abs_magic(object *op, int magic); |
288 | extern void set_abs_magic(object *op, int magic); |
271 | extern void set_ring_bonus(object *op, int bonus); |
289 | extern void set_ring_bonus(object *op, int bonus); |