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.54 by root, Sun Apr 20 00:44:12 2008 UTC

1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 *
4 * Copyright (©) 2005,2006,2007 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
1/* anim.c */ 24/* anim.c */
2extern void free_all_anim(); 25extern void free_all_anim();
3extern void init_anim(); 26extern void init_anim();
4extern int find_animation(const char *name); 27extern int find_animation(const char *name);
5extern void animate_object(object *op, int dir); 28extern void animate_object(object *op, int dir);
122extern void change_exp(object *op, sint64 exp, const char *skill_name, int flag); 145extern void change_exp(object *op, sint64 exp, const char *skill_name, int flag);
123extern void apply_death_exp_penalty(object *op); 146extern void apply_death_exp_penalty(object *op);
124extern int did_make_save(const object *op, int level, int bonus); 147extern int did_make_save(const object *op, int level, int bonus);
125/* los.c */ 148/* los.c */
126extern void init_block(); 149extern void init_block();
127extern void clear_los(object *op); 150extern void clear_los(player *pl);
128extern int has_carried_lights(const object *op); 151extern int has_carried_lights(const object *op);
129extern void update_los(object *op); 152extern void update_los(object *op);
130extern void update_all_map_los(maptile *map); 153extern void update_all_map_los(maptile *map);
131extern void update_all_los(const maptile *map, int x, int y); 154extern void update_all_los(const maptile *map, int x, int y);
132extern void print_los(object *op); 155extern void print_los(object *op);
133extern void make_sure_seen(const object *op); 156extern void make_sure_seen(const object *op);
134extern void make_sure_not_seen(const object *op); 157extern void make_sure_not_seen(const object *op);
135/* map.c */ 158/* map.c */
136extern const char *create_pathname (const char *name); 159extern 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); 160extern int blocked_link(object *ob, maptile *m, int sx, int sy);
139extern void fix_container(object *container); 161extern void fix_container(object *container);
140/* object.c */ 162/* object.c */
141extern signed long sum_weight(object *op); 163extern signed long sum_weight(object *op);
142extern object *object_get_env_recursive(object *op); 164extern object *object_get_env_recursive(object *op);
163extern object *present_in_ob(unsigned char type, const object *op); 185extern 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); 186extern 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); 187extern object *present_arch_in_ob(const archetype *at, const object *op);
166extern void flag_inv(object *op, int flag); 188extern void flag_inv(object *op, int flag);
167extern void unflag_inv(object *op, int flag); 189extern 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); 190extern 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); 191extern int find_first_free_spot(const object *ob, maptile *m, int x, int y);
171extern void get_search_arr(int *search_arr); 192extern void get_search_arr(int *search_arr);
172extern int find_dir(maptile *m, int x, int y, object *exclude); 193extern int find_dir(maptile *m, int x, int y, object *exclude);
173extern int distance(const object *ob1, const object *ob2); 194extern int distance(const object *ob1, const object *ob2);
255extern void sleep_delta(); 276extern void sleep_delta();
256extern void get_tod(timeofday_t *tod); 277extern void get_tod(timeofday_t *tod);
257extern void print_tod(object *op); 278extern void print_tod(object *op);
258extern void time_info(object *op); 279extern void time_info(object *op);
259/* treasure.c */ 280/* treasure.c */
260extern void init_archetype_pointers();
261extern bool load_treasure_file(const char *filename); 281extern bool load_treasure_file(const char *filename);
262extern object *generate_treasure(treasurelist *t, int difficulty); 282extern object *generate_treasure(treasurelist *t, int difficulty);
263extern int level_for_item(const object *op, int difficulty); 283extern int level_for_item(const object *op, int difficulty);
264extern int magic_from_difficulty(int difficulty); 284extern int magic_from_difficulty(int difficulty);
265extern void set_abs_magic(object *op, int magic); 285extern void set_abs_magic(object *op, int magic);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines