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.55 by root, Sun Apr 20 23:25:09 2008 UTC vs.
Revision 1.62 by root, Sat May 17 00:17:02 2008 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify 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 9 * it under the terms of the GNU General Public License as published by
18 * You should have received a copy of the GNU General Public License 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/>. 19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 * 20 *
21 * The authors can be reached via e-mail to <support@deliantra.net> 21 * The authors can be reached via e-mail to <support@deliantra.net>
22 */ 22 */
23
24#ifndef LIBPROTO_H_
25#define LIBPROTO_H_
23 26
24/* anim.c */ 27/* anim.c */
25extern void free_all_anim(); 28extern void free_all_anim();
26extern void init_anim(); 29extern void init_anim();
27extern int find_animation(const char *name); 30extern int find_animation(const char *name);
39extern void dump_arch(archetype *at); 42extern void dump_arch(archetype *at);
40extern void dump_all_archetypes(); 43extern void dump_all_archetypes();
41extern void free_all_archs(); 44extern void free_all_archs();
42extern void check_generators(); 45extern void check_generators();
43extern bool load_archetype_file(const char *filename); 46extern bool load_archetype_file(const char *filename);
44extern object *arch_to_object(archetype *at);
45extern object *create_singularity(const char *name); 47extern object *create_singularity(const char *name);
46extern object *get_archetype(const char *name); 48extern object *get_archetype(const char *name);
47extern unsigned long hasharch(const char *str, int tablesize); 49extern unsigned long hasharch(const char *str, int tablesize);
48extern archetype *type_to_archetype(int type); 50extern archetype *type_to_archetype(int type);
49extern object *clone_arch(int type); 51extern object *clone_arch(int type);
170extern void update_object(object *op, int action); 172extern void update_object(object *op, int action);
171extern object *merge_ob(object *op, object *top); 173extern object *merge_ob(object *op, object *top);
172extern object *insert_ob_in_map_at(object *op, maptile *m, object *originator, int flag, int x, int y); 174extern object *insert_ob_in_map_at(object *op, maptile *m, object *originator, int flag, int x, int y);
173extern object *insert_ob_in_map(object *op, maptile *m, object *originator, int flag); 175extern object *insert_ob_in_map(object *op, maptile *m, object *originator, int flag);
174extern void replace_insert_ob_in_map(const char *arch_string, object *op); 176extern void replace_insert_ob_in_map(const char *arch_string, object *op);
175extern object *get_split_ob(object *orig_ob, uint32 nr);
176extern object *decrease_ob_nr(object *op, uint32 i);
177extern object *insert_ob_in_ob(object *op, object *where); 177extern object *insert_ob_in_ob(object *op, object *where);
178extern int check_move_on(object *op, object *originator); 178extern int check_move_on(object *op, object *originator);
179extern object *present_arch(const archetype *at, maptile *m, int x, int y); 179extern object *present_arch(const archetype *at, maptile *m, int x, int y);
180extern object *present(unsigned char type, maptile *m, int x, int y); 180extern object *present(unsigned char type, maptile *m, int x, int y);
181extern object *present_in_ob(unsigned char type, const object *op); 181extern object *present_in_ob(unsigned char type, const object *op);
190extern int distance(const object *ob1, const object *ob2); 190extern int distance(const object *ob1, const object *ob2);
191extern int find_dir_2(int x, int y); 191extern int find_dir_2(int x, int y);
192extern int dirdiff(int dir1, int dir2); 192extern int dirdiff(int dir1, int dir2);
193extern int can_see_monsterP(maptile *m, int x, int y, int dir); 193extern int can_see_monsterP(maptile *m, int x, int y, int dir);
194extern int can_pick(const object *who, const object *item); 194extern int can_pick(const object *who, const object *item);
195extern object *object_create_clone(object *asrc);
196extern object *find_obj_by_type_subtype(const object *who, int type, int subtype); 195extern object *find_obj_by_type_subtype(const object *who, int type, int subtype);
197extern key_value *get_ob_key_link(const object *ob, const char *key);
198extern const char *get_ob_key_value(const object *op, const char *const key);
199extern int set_ob_key_value_s(object *op, const char *canonical_key, const char *value, int add_key);
200extern int set_ob_key_value(object *op, const char *key, const char *value, int add_key);
201/* path.c */ 196/* path.c */
202extern char *path_combine(const char *src, const char *dst); 197extern char *path_combine(const char *src, const char *dst);
203extern void path_normalize(char *path); 198extern void path_normalize(char *path);
204extern char *path_combine_and_normalize(const char *src, const char *dst); 199extern char *path_combine_and_normalize(const char *src, const char *dst);
205/* porting.c */ 200/* porting.c */
311extern void make_list_like(char *input); 306extern void make_list_like(char *input);
312/* loader.c */ 307/* loader.c */
313extern int set_variable(object *op, char *buf); 308extern int set_variable(object *op, char *buf);
314extern void init_vars(); 309extern void init_vars();
315extern char *get_ob_diff(object *op, object *op2); 310extern char *get_ob_diff(object *op, object *op2);
311/* map.c */
312extern maptile *find_style (const char *dirname, const char *stylename, int difficulty);
313extern object *pick_random_object (maptile *style);
314
315/* former funcpoint.h */
316/*
317 * These function-pointers are defined in common/glue.c
318 * The functions used to set and initialise them are also there.
319 *
320 * Massive change. Those functions are just defined, no callback, and they should be implemented.
321 * This means glue.c code & such can go away almost entirely.
322 * Ryo 2005-07-15
323 */
324
325extern void move_apply(object *, object *, object *);
326extern void draw_info(int, int, object *, const char *);
327extern void clean_tmp_files(void);
328extern void fix_auto_apply(maptile *);
329extern void init_blocksview_players(void);
330extern void monster_check_apply(object *, object *);
331extern void process_active_maps(void);
332extern void remove_friendly_object(object *);
333extern void update_buttons(maptile *);
334extern void move_teleporter(object *);
335extern void move_firewall(object *);
336extern void move_creator(object *);
337extern void move_marker(object *);
338extern void move_duplicator(object *);
339extern void trap_adjust(object *, int);
340extern void esrv_send_item(object *, object *);
341extern void esrv_del_item(player *, int);
342extern void esrv_update_item(int, object *, object *);
343extern void esrv_update_spells(player *);
344extern void set_darkness_map(maptile *m);
345extern void dragon_ability_gain(object *, int, int);
346extern void weather_effect(const char *);
347extern object * find_skill_by_number(object *, int);
348
349#endif
350

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines