--- deliantra/server/include/sproto.h 2007/03/06 19:02:35 1.55 +++ deliantra/server/include/sproto.h 2007/06/21 22:42:48 1.69 @@ -1,5 +1,24 @@ -// server/c_party.C -int same_party (partylist *a, partylist *b); +/* + * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game. + * + * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team + * + * 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 2 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 Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * The authors can be reached via e-mail to + */ /* alchemy.c */ int need_identify (const object *obj); @@ -41,7 +60,6 @@ int manual_apply (object *op, object *tmp, int aflag); int player_apply (object *pl, object *op, int aflag, int quiet); void player_apply_below (object *pl); -object *get_item_from_body_location (object *start, int loc); int unapply_for_ob (object *who, object *op, int aflags); int can_apply_object (object *who, object *op); int apply_special (object *who, object *op, int aflags); @@ -109,14 +127,9 @@ int command_hiscore (object *op, char *params); int command_debug (object *op, char *params); int command_dumpbelow (object *op, char *params); +int command_dumpfriendlyobjects (object *op, char *params); int command_wizpass (object *op, char *params); int command_wizcast (object *op, char *params); -int command_dumpallobjects (object *op, char *params); -int command_dumpfriendlyobjects (object *op, char *params); -int command_dumpallarchetypes (object *op, char *params); -int command_ssdumptable (object *op, char *params); -int command_dumpmap (object *op, char *params); -int command_dumpallmaps (object *op, char *params); int command_printlos (object *op, char *params); int command_version (object *op, char *params); void bug_report (const char *reportstring); @@ -172,7 +185,7 @@ int command_examine (object *op, char *params); object *find_marked_object (object *op); void examine_monster (object *op, object *tmp); -char *long_desc (object *tmp, object *pl); +const char *long_desc (object *tmp, object *pl); void examine (object *op, object *tmp); void inventory (object *op, object *inv); int command_pickup (object *op, char *params); @@ -181,11 +194,10 @@ int command_rename_item (object *op, char *params); /* c_party.c */ -int same_party (partylist *a, partylist *b); partylist *get_firstparty (void); void remove_party (partylist *target_party); void obsolete_parties (void); -void add_kill_to_party (partylist *party, char *killer, char *dead, long exp); +void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); int confirm_party_password (object *op); void receive_party_password (object *op, char k); void send_party_message (object *op, char *msg); @@ -208,7 +220,6 @@ int command_setgod (object *op, char *params); int command_banish (object *op, char *params); int command_save_overlay (object *op, char *params); -int command_toggle_shout (object *op, char *params); int command_freeze (object *op, char *params); int command_arrest (object *op, char *params); int command_summon (object *op, char *params); @@ -332,13 +343,6 @@ void init_beforeplay (void); void init_startup (void); void compile_info (void); -void rec_sigsegv (int i); -void rec_sigint (int i); -void rec_sighup (int i); -void rec_sigquit (int i); -void rec_sigpipe (int i); -void rec_sigbus (int i); -void rec_sigterm (int i); void init_signals (void); void init_races (void); void dump_races (void); @@ -472,11 +476,11 @@ int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); int player_fire_bow (object *op, int dir); void fire_misc_object (object *op, int dir); -void fire (object *op, int dir); +bool fire (object *op, int dir); object *find_key (object *pl, object *container, object *door); -void move_player_attack (object *op, int dir); -int move_player (object *op, int dir); -int handle_newcs_player (object *op); +bool move_player_attack (object *op, int dir); +bool move_player (object *op, int dir); +bool handle_newcs_player (object *op); int save_life (object *op); void remove_unpaid_objects (object *op, object *env); char *gravestone_text (object *op); @@ -609,7 +613,7 @@ void sell_item (object *op, object *pl); double shopkeeper_approval (const maptile *map, const object *player); int describe_shop (const object *op); -void shop_listing (object *op); +void shop_listing (object *sign, object *op); bool is_in_shop (object *o); bool is_in_shop (maptile *map, int x, int y); @@ -632,10 +636,6 @@ /* skill_util.c */ void init_skills (void); void link_player_skills (object *op); -object *find_skill_by_name (object *who, const char *name); -object *find_skill_by_number (object *who, int skillno); -int change_skill (object *who, object *new_skill, int flag); -void clear_skill (object *who); int do_skill (object *op, object *part, object *skill, int dir, const char *string); int calc_skill_exp (object *who, object *op, object *skill); int learn_skill (object *pl, object *scroll); @@ -689,7 +689,6 @@ int cast_word_of_recall (object *op, object *caster, object *spell_ob); int cast_wonder (object *op, object *caster, int dir, object *spell_ob); int perceive_self (object *op); -int cast_create_town_portal (object *op, object *caster, object *spell, int dir); int magic_wall (object *op, object *caster, int dir, object *spell_ob); int dimension_door (object *op, object *caster, object *spob, int dir); int cast_heal (object *op, object *caster, object *spell, int dir); @@ -758,8 +757,6 @@ /* time.c */ void remove_door (object *op); void remove_door2 (object *op); -void generate_monster_inv (object *gen); -void generate_monster_arch (object *gen); void generate_monster (object *gen); void remove_force (object *op); void remove_blindness (object *op); @@ -781,7 +778,7 @@ void move_duplicator (object *op); void move_creator (object *creator); void move_marker (object *op); -int process_object (object *op); +void process_object (object *op); /* timers.c */ void cftimer_process_timers (void); @@ -792,9 +789,4 @@ /* weather.c */ void set_darkness_map (maptile *m); -void tick_the_clock (void); -void init_weather (void); -void weather_effect (const char *filename); -int worldmap_to_weathermap (int x, int y, int *wx, int *wy, maptile *m); -int real_world_temperature (int x, int y, maptile *m); -int similar_direction (int a, int b); +void adjust_daylight (void);