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.57 by root, Mon Apr 21 07:01:40 2008 UTC vs.
Revision 1.61 by root, Sun May 4 14:12:37 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);
188extern int distance(const object *ob1, const object *ob2); 191extern int distance(const object *ob1, const object *ob2);
189extern int find_dir_2(int x, int y); 192extern int find_dir_2(int x, int y);
190extern int dirdiff(int dir1, int dir2); 193extern int dirdiff(int dir1, int dir2);
191extern int can_see_monsterP(maptile *m, int x, int y, int dir); 194extern int can_see_monsterP(maptile *m, int x, int y, int dir);
192extern int can_pick(const object *who, const object *item); 195extern int can_pick(const object *who, const object *item);
193extern object *object_create_clone(object *asrc);
194extern object *find_obj_by_type_subtype(const object *who, int type, int subtype); 196extern object *find_obj_by_type_subtype(const object *who, int type, int subtype);
195extern key_value *get_ob_key_link(const object *ob, const char *key);
196extern const char *get_ob_key_value(const object *op, const char *const key);
197extern int set_ob_key_value_s(object *op, const char *canonical_key, const char *value, int add_key);
198extern int set_ob_key_value(object *op, const char *key, const char *value, int add_key);
199/* path.c */ 197/* path.c */
200extern char *path_combine(const char *src, const char *dst); 198extern char *path_combine(const char *src, const char *dst);
201extern void path_normalize(char *path); 199extern void path_normalize(char *path);
202extern char *path_combine_and_normalize(const char *src, const char *dst); 200extern char *path_combine_and_normalize(const char *src, const char *dst);
203/* porting.c */ 201/* porting.c */
309extern void make_list_like(char *input); 307extern void make_list_like(char *input);
310/* loader.c */ 308/* loader.c */
311extern int set_variable(object *op, char *buf); 309extern int set_variable(object *op, char *buf);
312extern void init_vars(); 310extern void init_vars();
313extern char *get_ob_diff(object *op, object *op2); 311extern char *get_ob_diff(object *op, object *op2);
312/* map.c */
313extern maptile *find_style (const char *dirname, const char *stylename, int difficulty);
314extern object *pick_random_object (maptile *style);
315
316/* former funcpoint.h */
317/*
318 * These function-pointers are defined in common/glue.c
319 * The functions used to set and initialise them are also there.
320 *
321 * Massive change. Those functions are just defined, no callback, and they should be implemented.
322 * This means glue.c code & such can go away almost entirely.
323 * Ryo 2005-07-15
324 */
325
326extern void move_apply(object *, object *, object *);
327extern void draw_info(int, int, object *, const char *);
328extern void clean_tmp_files(void);
329extern void fix_auto_apply(maptile *);
330extern void init_blocksview_players(void);
331extern void monster_check_apply(object *, object *);
332extern void process_active_maps(void);
333extern void remove_friendly_object(object *);
334extern void update_buttons(maptile *);
335extern void move_teleporter(object *);
336extern void move_firewall(object *);
337extern void move_creator(object *);
338extern void move_marker(object *);
339extern void move_duplicator(object *);
340extern void trap_adjust(object *, int);
341extern void esrv_send_item(object *, object *);
342extern void esrv_del_item(player *, int);
343extern void esrv_update_item(int, object *, object *);
344extern void esrv_update_spells(player *);
345extern void set_darkness_map(maptile *m);
346extern void dragon_ability_gain(object *, int, int);
347extern void weather_effect(const char *);
348extern object * find_skill_by_number(object *, int);
349
350#endif
351

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines