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.50 by root, Sun Jun 3 17:42:39 2007 UTC

1/*
2 * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game.
3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 *
8 * Crossfire TRT is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation; either version 2 of the License, or (at your option)
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 * for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51
20 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 * The authors can be reached via e-mail to <crossfire@schmorp.de>
23 */
24
1/* anim.c */ 25/* anim.c */
2extern void free_all_anim(); 26extern void free_all_anim();
3extern void init_anim(); 27extern void init_anim();
4extern int find_animation(const char *name); 28extern int find_animation(const char *name);
5extern void animate_object(object *op, int dir); 29extern void animate_object(object *op, int dir);
105extern objectlink *get_objectlink(); 129extern objectlink *get_objectlink();
106extern oblinkpt *get_objectlinkpt(); 130extern oblinkpt *get_objectlinkpt();
107extern void free_objectlink(objectlink *ol); 131extern void free_objectlink(objectlink *ol);
108extern void free_objectlinkpt(oblinkpt *obp); 132extern void free_objectlinkpt(oblinkpt *obp);
109/* living.c */ 133/* living.c */
110extern void set_attr_value(living *stats, int attr, sint8 value);
111extern void change_attr_value(living *stats, int attr, sint8 value); 134extern 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); 135extern void check_stat_bounds(living *stats);
114extern int change_abil(object *op, object *tmp); 136extern int change_abil(object *op, object *tmp);
115extern int allowed_class(const object *op); 137extern int allowed_class(const object *op);
116extern void set_dragon_name(object *pl, const object *abil, const object *skin); 138extern void set_dragon_name(object *pl, const object *abil, const object *skin);
117extern void dragon_level_gain(object *who); 139extern void dragon_level_gain(object *who);
124extern void change_exp(object *op, sint64 exp, const char *skill_name, int flag); 146extern void change_exp(object *op, sint64 exp, const char *skill_name, int flag);
125extern void apply_death_exp_penalty(object *op); 147extern void apply_death_exp_penalty(object *op);
126extern int did_make_save(const object *op, int level, int bonus); 148extern int did_make_save(const object *op, int level, int bonus);
127/* los.c */ 149/* los.c */
128extern void init_block(); 150extern void init_block();
129extern void clear_los(object *op); 151extern void clear_los(player *pl);
130extern int has_carried_lights(const object *op); 152extern int has_carried_lights(const object *op);
131extern void update_los(object *op); 153extern void update_los(object *op);
132extern void update_all_map_los(maptile *map); 154extern void update_all_map_los(maptile *map);
133extern void update_all_los(const maptile *map, int x, int y); 155extern void update_all_los(const maptile *map, int x, int y);
134extern void print_los(object *op); 156extern void print_los(object *op);
165extern object *present_in_ob(unsigned char type, const object *op); 187extern 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); 188extern 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); 189extern object *present_arch_in_ob(const archetype *at, const object *op);
168extern void flag_inv(object *op, int flag); 190extern void flag_inv(object *op, int flag);
169extern void unflag_inv(object *op, int flag); 191extern 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); 192extern 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); 193extern int find_first_free_spot(const object *ob, maptile *m, int x, int y);
173extern void get_search_arr(int *search_arr); 194extern void get_search_arr(int *search_arr);
174extern int find_dir(maptile *m, int x, int y, object *exclude); 195extern int find_dir(maptile *m, int x, int y, object *exclude);
175extern int distance(const object *ob1, const object *ob2); 196extern int distance(const object *ob1, const object *ob2);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines