--- deliantra/server/include/libproto.h 2007/04/16 10:14:25 1.44
+++ deliantra/server/include/libproto.h 2007/07/26 00:27:08 1.52
@@ -1,3 +1,26 @@
+/*
+ * This file is part of Crossfire TRT, the Roguelike Realtime MORPG.
+ *
+ * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
+ * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
+ * Copyright (©) 1992,2007 Frank Tore Johansen
+ *
+ * Crossfire TRT is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * The authors can be reached via e-mail to
+ */
+
/* anim.c */
extern void free_all_anim();
extern void init_anim();
@@ -11,15 +34,13 @@
extern object *get_archetype_by_object_name(const char *name);
extern object *find_best_weapon_used_match(object *pl, const char *params);
extern int item_matched_string(object *pl, object *op, const char *name);
-extern void init_archetypes();
extern void arch_info(object *op);
extern void clear_archetable();
-extern void init_archetable();
extern void dump_arch(archetype *at);
extern void dump_all_archetypes();
extern void free_all_archs();
extern void check_generators();
-extern void load_archetypes();
+extern bool load_archetype_file(const char *filename);
extern object *arch_to_object(archetype *at);
extern object *create_singularity(const char *name);
extern object *get_archetype(const char *name);
@@ -109,9 +130,7 @@
extern void free_objectlink(objectlink *ol);
extern void free_objectlinkpt(oblinkpt *obp);
/* living.c */
-extern void set_attr_value(living *stats, int attr, sint8 value);
extern void change_attr_value(living *stats, int attr, sint8 value);
-extern sint8 get_attr_value(const living *stats, int attr);
extern void check_stat_bounds(living *stats);
extern int change_abil(object *op, object *tmp);
extern int allowed_class(const object *op);
@@ -128,7 +147,7 @@
extern int did_make_save(const object *op, int level, int bonus);
/* los.c */
extern void init_block();
-extern void clear_los(object *op);
+extern void clear_los(player *pl);
extern int has_carried_lights(const object *op);
extern void update_los(object *op);
extern void update_all_map_los(maptile *map);
@@ -138,7 +157,6 @@
extern void make_sure_not_seen(const object *op);
/* map.c */
extern const char *create_pathname (const char *name);
-extern int check_path(const char *name, int prepend_dir);
extern int blocked_link(object *ob, maptile *m, int sx, int sy);
extern void fix_container(object *container);
/* object.c */
@@ -169,7 +187,6 @@
extern object *present_arch_in_ob(const archetype *at, const object *op);
extern void flag_inv(object *op, int flag);
extern void unflag_inv(object *op, int flag);
-extern void set_cheat(object *op);
extern int find_free_spot(const object *ob, maptile *m, int x, int y, int start, int stop);
extern int find_first_free_spot(const object *ob, maptile *m, int x, int y);
extern void get_search_arr(int *search_arr);
@@ -262,8 +279,7 @@
extern void time_info(object *op);
/* treasure.c */
extern void init_archetype_pointers();
-extern bool load_treasures();
-extern void create_treasure(treasurelist *t, object *op, int flag, int difficulty, int tries);
+extern bool load_treasure_file(const char *filename);
extern object *generate_treasure(treasurelist *t, int difficulty);
extern int level_for_item(const object *op, int difficulty);
extern int magic_from_difficulty(int difficulty);