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.53 by root, Thu Nov 8 19:43:24 2007 UTC vs.
Revision 1.59 by root, Sat May 3 11:14:50 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);
158/* map.c */ 161/* map.c */
159extern const char *create_pathname (const char *name); 162extern const char *create_pathname (const char *name);
160extern int blocked_link(object *ob, maptile *m, int sx, int sy); 163extern int blocked_link(object *ob, maptile *m, int sx, int sy);
161extern void fix_container(object *container); 164extern void fix_container(object *container);
162/* object.c */ 165/* object.c */
163extern signed long sum_weight(object *op);
164extern object *object_get_env_recursive(object *op);
165extern char *dump_object(object *op); 166extern char *dump_object(object *op);
166extern void dump_me(object *op, char *outstr); 167extern void dump_me(object *op, char *outstr);
167extern object *get_nearest_part(object *op, const object *pl); 168extern object *get_nearest_part(object *op, const object *pl);
168extern object *find_object(tag_t i); 169extern object *find_object(tag_t i);
169extern object *find_object_name(const char *str); 170extern object *find_object_name(const char *str);
170extern void free_all_object_data(); 171extern void free_all_object_data();
171extern void update_turn_face(object *op); 172extern void update_turn_face(object *op);
172extern void update_object(object *op, int action); 173extern void update_object(object *op, int action);
173extern void sub_weight(object *op, signed long weight);
174extern object *merge_ob(object *op, object *top); 174extern object *merge_ob(object *op, object *top);
175extern 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);
176extern 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);
177extern 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);
178extern object *get_split_ob(object *orig_ob, uint32 nr);
179extern object *decrease_ob_nr(object *op, uint32 i);
180extern void add_weight(object *op, signed long weight);
181extern object *insert_ob_in_ob(object *op, object *where); 178extern object *insert_ob_in_ob(object *op, object *where);
182extern int check_move_on(object *op, object *originator); 179extern int check_move_on(object *op, object *originator);
183extern 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);
184extern object *present(unsigned char type, maptile *m, int x, int y); 181extern object *present(unsigned char type, maptile *m, int x, int y);
185extern object *present_in_ob(unsigned char type, const object *op); 182extern object *present_in_ob(unsigned char type, const object *op);
196extern int dirdiff(int dir1, int dir2); 193extern int dirdiff(int dir1, int dir2);
197extern 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);
198extern int can_pick(const object *who, const object *item); 195extern int can_pick(const object *who, const object *item);
199extern object *object_create_clone(object *asrc); 196extern object *object_create_clone(object *asrc);
200extern object *find_obj_by_type_subtype(const object *who, int type, int subtype); 197extern object *find_obj_by_type_subtype(const object *who, int type, int subtype);
201extern key_value *get_ob_key_link(const object *ob, const char *key);
202extern const char *get_ob_key_value(const object *op, const char *const key);
203extern int set_ob_key_value_s(object *op, const char *canonical_key, const char *value, int add_key);
204extern int set_ob_key_value(object *op, const char *key, const char *value, int add_key);
205/* path.c */ 198/* path.c */
206extern char *path_combine(const char *src, const char *dst); 199extern char *path_combine(const char *src, const char *dst);
207extern void path_normalize(char *path); 200extern void path_normalize(char *path);
208extern char *path_combine_and_normalize(const char *src, const char *dst); 201extern char *path_combine_and_normalize(const char *src, const char *dst);
209/* porting.c */ 202/* porting.c */
276extern void sleep_delta(); 269extern void sleep_delta();
277extern void get_tod(timeofday_t *tod); 270extern void get_tod(timeofday_t *tod);
278extern void print_tod(object *op); 271extern void print_tod(object *op);
279extern void time_info(object *op); 272extern void time_info(object *op);
280/* treasure.c */ 273/* treasure.c */
281extern void init_archetype_pointers();
282extern bool load_treasure_file(const char *filename); 274extern bool load_treasure_file(const char *filename);
283extern object *generate_treasure(treasurelist *t, int difficulty); 275extern object *generate_treasure(treasurelist *t, int difficulty);
284extern int level_for_item(const object *op, int difficulty); 276extern int level_for_item(const object *op, int difficulty);
285extern int magic_from_difficulty(int difficulty); 277extern int magic_from_difficulty(int difficulty);
286extern void set_abs_magic(object *op, int magic); 278extern void set_abs_magic(object *op, int magic);
316extern void make_list_like(char *input); 308extern void make_list_like(char *input);
317/* loader.c */ 309/* loader.c */
318extern int set_variable(object *op, char *buf); 310extern int set_variable(object *op, char *buf);
319extern void init_vars(); 311extern void init_vars();
320extern char *get_ob_diff(object *op, object *op2); 312extern char *get_ob_diff(object *op, object *op2);
313
314/* former funcpoint.h */
315/*
316 * These function-pointers are defined in common/glue.c
317 * The functions used to set and initialise them are also there.
318 *
319 * Massive change. Those functions are just defined, no callback, and they should be implemented.
320 * This means glue.c code & such can go away almost entirely.
321 * Ryo 2005-07-15
322 */
323
324extern void move_apply(object *, object *, object *);
325extern void draw_info(int, int, object *, const char *);
326extern void clean_tmp_files(void);
327extern void fix_auto_apply(maptile *);
328extern void init_blocksview_players(void);
329extern void monster_check_apply(object *, object *);
330extern void process_active_maps(void);
331extern void remove_friendly_object(object *);
332extern void update_buttons(maptile *);
333extern void move_teleporter(object *);
334extern void move_firewall(object *);
335extern void move_creator(object *);
336extern void move_marker(object *);
337extern void move_duplicator(object *);
338extern void trap_adjust(object *, int);
339extern void esrv_send_item(object *, object *);
340extern void esrv_del_item(player *, int);
341extern void esrv_update_item(int, object *, object *);
342extern void esrv_update_spells(player *);
343extern void set_darkness_map(maptile *m);
344extern void dragon_ability_gain(object *, int, int);
345extern void weather_effect(const char *);
346extern object * find_skill_by_number(object *, int);
347
348#endif
349

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines