ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/libproto.h
(Generate patch)

Comparing deliantra/server/include/libproto.h (file contents):
Revision 1.47 by root, Sat May 12 18:14:47 2007 UTC vs.
Revision 1.58 by root, Mon Apr 21 23:35:24 2008 UTC

1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 *
4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 *
8 * Deliantra 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 <support@deliantra.net>
22 */
23
24#ifndef LIBPROTO_H_
25#define LIBPROTO_H_
26
1/* anim.c */ 27/* anim.c */
2extern void free_all_anim(); 28extern void free_all_anim();
3extern void init_anim(); 29extern void init_anim();
4extern int find_animation(const char *name); 30extern int find_animation(const char *name);
5extern void animate_object(object *op, int dir); 31extern void animate_object(object *op, int dir);
122extern void change_exp(object *op, sint64 exp, const char *skill_name, int flag); 148extern void change_exp(object *op, sint64 exp, const char *skill_name, int flag);
123extern void apply_death_exp_penalty(object *op); 149extern void apply_death_exp_penalty(object *op);
124extern int did_make_save(const object *op, int level, int bonus); 150extern int did_make_save(const object *op, int level, int bonus);
125/* los.c */ 151/* los.c */
126extern void init_block(); 152extern void init_block();
127extern void clear_los(object *op); 153extern void clear_los(player *pl);
128extern int has_carried_lights(const object *op); 154extern int has_carried_lights(const object *op);
129extern void update_los(object *op); 155extern void update_los(object *op);
130extern void update_all_map_los(maptile *map); 156extern void update_all_map_los(maptile *map);
131extern void update_all_los(const maptile *map, int x, int y); 157extern void update_all_los(const maptile *map, int x, int y);
132extern void print_los(object *op); 158extern void print_los(object *op);
133extern void make_sure_seen(const object *op); 159extern void make_sure_seen(const object *op);
134extern void make_sure_not_seen(const object *op); 160extern void make_sure_not_seen(const object *op);
135/* map.c */ 161/* map.c */
136extern const char *create_pathname (const char *name); 162extern const char *create_pathname (const char *name);
137extern int check_path(const char *name, int prepend_dir);
138extern int blocked_link(object *ob, maptile *m, int sx, int sy); 163extern int blocked_link(object *ob, maptile *m, int sx, int sy);
139extern void fix_container(object *container); 164extern void fix_container(object *container);
140/* object.c */ 165/* object.c */
141extern signed long sum_weight(object *op);
142extern object *object_get_env_recursive(object *op);
143extern char *dump_object(object *op); 166extern char *dump_object(object *op);
144extern void dump_me(object *op, char *outstr); 167extern void dump_me(object *op, char *outstr);
145extern object *get_nearest_part(object *op, const object *pl); 168extern object *get_nearest_part(object *op, const object *pl);
146extern object *find_object(tag_t i); 169extern object *find_object(tag_t i);
147extern object *find_object_name(const char *str); 170extern object *find_object_name(const char *str);
148extern void free_all_object_data(); 171extern void free_all_object_data();
149extern void update_turn_face(object *op); 172extern void update_turn_face(object *op);
150extern void update_object(object *op, int action); 173extern void update_object(object *op, int action);
151extern void sub_weight(object *op, signed long weight);
152extern object *merge_ob(object *op, object *top); 174extern object *merge_ob(object *op, object *top);
153extern object *insert_ob_in_map_at(object *op, maptile *m, object *originator, int flag, int x, int y); 175extern object *insert_ob_in_map_at(object *op, maptile *m, object *originator, int flag, int x, int y);
154extern object *insert_ob_in_map(object *op, maptile *m, object *originator, int flag); 176extern object *insert_ob_in_map(object *op, maptile *m, object *originator, int flag);
155extern void replace_insert_ob_in_map(const char *arch_string, object *op); 177extern void replace_insert_ob_in_map(const char *arch_string, object *op);
156extern object *get_split_ob(object *orig_ob, uint32 nr);
157extern object *decrease_ob_nr(object *op, uint32 i);
158extern void add_weight(object *op, signed long weight);
159extern object *insert_ob_in_ob(object *op, object *where); 178extern object *insert_ob_in_ob(object *op, object *where);
160extern int check_move_on(object *op, object *originator); 179extern int check_move_on(object *op, object *originator);
161extern object *present_arch(const archetype *at, maptile *m, int x, int y); 180extern object *present_arch(const archetype *at, maptile *m, int x, int y);
162extern object *present(unsigned char type, maptile *m, int x, int y); 181extern object *present(unsigned char type, maptile *m, int x, int y);
163extern object *present_in_ob(unsigned char type, const object *op); 182extern object *present_in_ob(unsigned char type, const object *op);
164extern object *present_in_ob_by_name(int type, const char *str, const object *op); 183extern object *present_in_ob_by_name(int type, const char *str, const object *op);
165extern object *present_arch_in_ob(const archetype *at, const object *op); 184extern object *present_arch_in_ob(const archetype *at, const object *op);
166extern void flag_inv(object *op, int flag); 185extern void flag_inv(object *op, int flag);
167extern void unflag_inv(object *op, int flag); 186extern void unflag_inv(object *op, int flag);
168extern void set_cheat(object *op);
169extern int find_free_spot(const object *ob, maptile *m, int x, int y, int start, int stop); 187extern int find_free_spot(const object *ob, maptile *m, int x, int y, int start, int stop);
170extern int find_first_free_spot(const object *ob, maptile *m, int x, int y); 188extern int find_first_free_spot(const object *ob, maptile *m, int x, int y);
171extern void get_search_arr(int *search_arr); 189extern void get_search_arr(int *search_arr);
172extern int find_dir(maptile *m, int x, int y, object *exclude); 190extern int find_dir(maptile *m, int x, int y, object *exclude);
173extern int distance(const object *ob1, const object *ob2); 191extern int distance(const object *ob1, const object *ob2);
255extern void sleep_delta(); 273extern void sleep_delta();
256extern void get_tod(timeofday_t *tod); 274extern void get_tod(timeofday_t *tod);
257extern void print_tod(object *op); 275extern void print_tod(object *op);
258extern void time_info(object *op); 276extern void time_info(object *op);
259/* treasure.c */ 277/* treasure.c */
260extern void init_archetype_pointers();
261extern bool load_treasure_file(const char *filename); 278extern bool load_treasure_file(const char *filename);
262extern object *generate_treasure(treasurelist *t, int difficulty); 279extern object *generate_treasure(treasurelist *t, int difficulty);
263extern int level_for_item(const object *op, int difficulty); 280extern int level_for_item(const object *op, int difficulty);
264extern int magic_from_difficulty(int difficulty); 281extern int magic_from_difficulty(int difficulty);
265extern void set_abs_magic(object *op, int magic); 282extern void set_abs_magic(object *op, int magic);
295extern void make_list_like(char *input); 312extern void make_list_like(char *input);
296/* loader.c */ 313/* loader.c */
297extern int set_variable(object *op, char *buf); 314extern int set_variable(object *op, char *buf);
298extern void init_vars(); 315extern void init_vars();
299extern char *get_ob_diff(object *op, object *op2); 316extern char *get_ob_diff(object *op, object *op2);
317
318/* former funcpoint.h */
319/*
320 * These function-pointers are defined in common/glue.c
321 * The functions used to set and initialise them are also there.
322 *
323 * Massive change. Those functions are just defined, no callback, and they should be implemented.
324 * This means glue.c code & such can go away almost entirely.
325 * Ryo 2005-07-15
326 */
327
328extern void move_apply(object *, object *, object *);
329extern void draw_info(int, int, object *, const char *);
330extern void clean_tmp_files(void);
331extern void fix_auto_apply(maptile *);
332extern void init_blocksview_players(void);
333extern void monster_check_apply(object *, object *);
334extern void process_active_maps(void);
335extern void remove_friendly_object(object *);
336extern void update_buttons(maptile *);
337extern void move_teleporter(object *);
338extern void move_firewall(object *);
339extern void move_creator(object *);
340extern void move_marker(object *);
341extern void move_duplicator(object *);
342extern void trap_adjust(object *, int);
343extern void esrv_send_item(object *, object *);
344extern void esrv_del_item(player *, int);
345extern void esrv_update_item(int, object *, object *);
346extern void esrv_update_spells(player *);
347extern void set_darkness_map(maptile *m);
348extern void dragon_ability_gain(object *, int, int);
349extern void weather_effect(const char *);
350extern object * find_skill_by_number(object *, int);
351
352#endif
353

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines