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.46 by root, Thu Apr 19 16:23:47 2007 UTC vs.
Revision 1.53 by root, Thu Nov 8 19:43:24 2007 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);
105extern objectlink *get_objectlink(); 128extern objectlink *get_objectlink();
106extern oblinkpt *get_objectlinkpt(); 129extern oblinkpt *get_objectlinkpt();
107extern void free_objectlink(objectlink *ol); 130extern void free_objectlink(objectlink *ol);
108extern void free_objectlinkpt(oblinkpt *obp); 131extern void free_objectlinkpt(oblinkpt *obp);
109/* living.c */ 132/* living.c */
110extern void set_attr_value(living *stats, int attr, sint8 value);
111extern void change_attr_value(living *stats, int attr, sint8 value); 133extern void change_attr_value(living *stats, int attr, sint8 value);
112extern sint8 get_attr_value(const living *stats, int attr);
113extern void check_stat_bounds(living *stats); 134extern void check_stat_bounds(living *stats);
114extern int change_abil(object *op, object *tmp); 135extern int change_abil(object *op, object *tmp);
115extern int allowed_class(const object *op); 136extern int allowed_class(const object *op);
116extern void set_dragon_name(object *pl, const object *abil, const object *skin); 137extern void set_dragon_name(object *pl, const object *abil, const object *skin);
117extern void dragon_level_gain(object *who); 138extern void dragon_level_gain(object *who);
124extern 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);
125extern void apply_death_exp_penalty(object *op); 146extern void apply_death_exp_penalty(object *op);
126extern int did_make_save(const object *op, int level, int bonus); 147extern int did_make_save(const object *op, int level, int bonus);
127/* los.c */ 148/* los.c */
128extern void init_block(); 149extern void init_block();
129extern void clear_los(object *op); 150extern void clear_los(player *pl);
130extern int has_carried_lights(const object *op); 151extern int has_carried_lights(const object *op);
131extern void update_los(object *op); 152extern void update_los(object *op);
132extern void update_all_map_los(maptile *map); 153extern void update_all_map_los(maptile *map);
133extern void update_all_los(const maptile *map, int x, int y); 154extern void update_all_los(const maptile *map, int x, int y);
134extern void print_los(object *op); 155extern void print_los(object *op);
135extern void make_sure_seen(const object *op); 156extern void make_sure_seen(const object *op);
136extern void make_sure_not_seen(const object *op); 157extern void make_sure_not_seen(const object *op);
137/* map.c */ 158/* map.c */
138extern const char *create_pathname (const char *name); 159extern const char *create_pathname (const char *name);
139extern int check_path(const char *name, int prepend_dir);
140extern int blocked_link(object *ob, maptile *m, int sx, int sy); 160extern int blocked_link(object *ob, maptile *m, int sx, int sy);
141extern void fix_container(object *container); 161extern void fix_container(object *container);
142/* object.c */ 162/* object.c */
143extern signed long sum_weight(object *op); 163extern signed long sum_weight(object *op);
144extern object *object_get_env_recursive(object *op); 164extern object *object_get_env_recursive(object *op);
165extern object *present_in_ob(unsigned char type, const object *op); 185extern object *present_in_ob(unsigned char type, const object *op);
166extern 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);
167extern object *present_arch_in_ob(const archetype *at, const object *op); 187extern object *present_arch_in_ob(const archetype *at, const object *op);
168extern void flag_inv(object *op, int flag); 188extern void flag_inv(object *op, int flag);
169extern void unflag_inv(object *op, int flag); 189extern void unflag_inv(object *op, int flag);
170extern void set_cheat(object *op);
171extern 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);
172extern 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);
173extern void get_search_arr(int *search_arr); 192extern void get_search_arr(int *search_arr);
174extern int find_dir(maptile *m, int x, int y, object *exclude); 193extern int find_dir(maptile *m, int x, int y, object *exclude);
175extern int distance(const object *ob1, const object *ob2); 194extern int distance(const object *ob1, const object *ob2);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines