version 1.130 | | version 1.131 |
---|
| | |
void current_map_info(object *op); | | void current_map_info(object *op); |
int command_whereabouts(object *op, char *params); | | int command_whereabouts(object *op, char *params); |
int command_who(object *op, char *params); | | int command_who(object *op, char *params); |
void display_who_entry(object *op, player *pl, char *format); | | void display_who_entry(object *op, player *pl, const char *format); |
void get_who_escape_code_value(char *return_val, const char letter, player *pl); | | void get_who_escape_code_value(char *return_val, const char letter, player *pl); |
int command_afk(object *op, char *params); | | int command_afk(object *op, char *params); |
int command_malloc(object *op, char *params); | | int command_malloc(object *op, char *params); |
| | |
int command_dumpallmaps(object *op, char *params); | | int command_dumpallmaps(object *op, char *params); |
int command_printlos(object *op, char *params); | | int command_printlos(object *op, char *params); |
int command_version(object *op, char *params); | | int command_version(object *op, char *params); |
void bug_report(char *reportstring); | | void bug_report(const char *reportstring); |
int command_output_sync(object *op, char *params); | | int command_output_sync(object *op, char *params); |
int command_output_count(object *op, char *params); | | int command_output_count(object *op, char *params); |
int command_listen(object *op, char *params); | | int command_listen(object *op, char *params); |
| | |
int command_usekeys(object *op, char *params); | | int command_usekeys(object *op, char *params); |
int command_resistances(object *op, char *params); | | int command_resistances(object *op, char *params); |
int command_help(object *op, char *params); | | int command_help(object *op, char *params); |
int onoff_value(char *line); | | int onoff_value(const char *line); |
int command_quit(object *op, char *params); | | int command_quit(object *op, char *params); |
int command_explore(object *op, char *params); | | int command_explore(object *op, char *params); |
int command_sound(object *op, char *params); | | int command_sound(object *op, char *params); |
| | |
int command_fire_stop(object *op, char *params); | | int command_fire_stop(object *op, char *params); |
int bad_command(object *op, char *params); | | int bad_command(object *op, char *params); |
/* c_object.c */ | | /* c_object.c */ |
object *find_best_object_match(object *pl, char *params); | | object *find_best_object_match(object *pl, const char *params); |
int command_build(object *pl, char *params); | | int command_build(object *pl, char *params); |
int command_uskill(object *pl, char *params); | | int command_uskill(object *pl, char *params); |
int command_rskill(object *pl, char *params); | | int command_rskill(object *pl, char *params); |
| | |
int command_search_items(object *op, char *params); | | int command_search_items(object *op, char *params); |
int command_rename_item(object *op, char *params); | | int command_rename_item(object *op, char *params); |
/* c_party.c */ | | /* c_party.c */ |
partylist *form_party(object *op, char *params, partylist *firstparty, partylist *lastparty); | | partylist *form_party(object *op, const char *params, partylist *firstparty, partylist *lastparty); |
char *find_party(int partynumber, partylist *party); | | char *find_party(int partynumber, partylist *party); |
partylist *find_party_struct(int partynumber); | | partylist *find_party_struct(int partynumber); |
int confirm_party_password(object *op); | | int confirm_party_password(object *op); |
| | |
int do_wizard_dm(object *op, char *params, int silent); | | int do_wizard_dm(object *op, char *params, int silent); |
int command_dm(object *op, char *params); | | int command_dm(object *op, char *params); |
int command_invisible(object *op, char *params); | | int command_invisible(object *op, char *params); |
object *get_spell_by_name(char *spell_name); | | object *get_spell_by_name(const char *spell_name); |
int command_learn_spell(object *op, char *params); | | int command_learn_spell(object *op, char *params); |
int command_learn_special_prayer(object *op, char *params); | | int command_learn_special_prayer(object *op, char *params); |
int command_forget_spell(object *op, char *params); | | int command_forget_spell(object *op, char *params); |
| | |
int cure_disease(object *sufferer, object *caster); | | int cure_disease(object *sufferer, object *caster); |
int reduce_symptoms(object *sufferer, int reduction); | | int reduce_symptoms(object *sufferer, int reduction); |
/* egoitem.c */ | | /* egoitem.c */ |
int create_artifact(object *op, char *artifactname); | | int create_artifact(object *op, const char *artifactname); |
int apply_power_crystal(object *op, object *crystal); | | int apply_power_crystal(object *op, object *crystal); |
/* hiscore.c */ | | /* hiscore.c */ |
char *spool(char *bp, char *error); | | char *spool(char *bp, char *error); |
void check_score(object *op); | | void check_score(object *op); |
void display_high_score(object *op, int max, char *match); | | void display_high_score(object *op, int max, const char *match); |
/* gods.c */ | | /* gods.c */ |
int lookup_god_by_name(char *name); | | int lookup_god_by_name(const char *name); |
object *find_god(char *name); | | object *find_god(const char *name); |
char *determine_god(object *op); | | const char *determine_god(object *op); |
void pray_at_altar(object *pl, object *altar, object *skill); | | void pray_at_altar(object *pl, object *altar, object *skill); |
void become_follower(object *op, object *new_god); | | void become_follower(object *op, object *new_god); |
int worship_forbids_use(object *op, object *exp_obj, uint32 flag, char *string); | | int worship_forbids_use(object *op, object *exp_obj, uint32 flag, const char *string); |
void stop_using_item(object *op, int type, int number); | | void stop_using_item(object *op, int type, int number); |
void update_priest_flag(object *god, object *exp_ob, uint32 flag); | | void update_priest_flag(object *god, object *exp_ob, uint32 flag); |
archetype *determine_holy_arch(object *god, const char *type); | | archetype *determine_holy_arch(object *god, const char *type); |
| | |
void init_signals(void); | | void init_signals(void); |
void init_races(void); | | void init_races(void); |
void dump_races(void); | | void dump_races(void); |
void add_to_racelist(char *race_name, object *op); | | void add_to_racelist(const char *race_name, object *op); |
racelink *get_racelist(void); | | racelink *get_racelist(void); |
racelink *find_racelink(char *name); | | racelink *find_racelink(const char *name); |
/* login.c */ | | /* login.c */ |
void emergency_save(int flag); | | void emergency_save(int flag); |
void delete_character(char *name, int new); | | void delete_character(const char *name, int new); |
int verify_player(char *name, char *password); | | int verify_player(const char *name, char *password); |
int check_name(player *me, char *name); | | int check_name(player *me, const char *name); |
int create_savedir_if_needed(char *savedir); | | int create_savedir_if_needed(char *savedir); |
void destroy_object(object *op); | | void destroy_object(object *op); |
int save_player(object *op, int flag); | | int save_player(object *op, int flag); |
void copy_file(char *filename, FILE *fpout); | | void copy_file(const char *filename, FILE *fpout); |
void check_login(object *op); | | void check_login(object *op); |
/* main.c */ | | /* main.c */ |
void version(object *op); | | void version(object *op); |
| | |
void enter_player_savebed(object *op); | | void enter_player_savebed(object *op); |
void leave_map(object *op); | | void leave_map(object *op); |
void set_map_timeout(mapstruct *oldmap); | | void set_map_timeout(mapstruct *oldmap); |
char *clean_path(char *file); | | char *clean_path(const char *file); |
char *unclean_path(const char *src); | | char *unclean_path(const char *src); |
void enter_exit(object *op, object *exit_ob); | | void enter_exit(object *op, object *exit_ob); |
void process_active_maps(void); | | void process_active_maps(void); |
| | |
void check_earthwalls(object *op, mapstruct *m, int x, int y); | | void check_earthwalls(object *op, mapstruct *m, int x, int y); |
void check_doors(object *op, mapstruct *m, int x, int y); | | void check_doors(object *op, mapstruct *m, int x, int y); |
void communicate(object *op, char *txt); | | void communicate(object *op, char *txt); |
int talk_to_npc(object *op, object *npc, char *txt); | | int talk_to_npc(object *op, object *npc, const char *txt); |
int talk_to_wall(object *pl, object *npc, char *txt); | | int talk_to_wall(object *pl, object *npc, const char *txt); |
object *find_mon_throw_ob(object *op); | | object *find_mon_throw_ob(object *op); |
int can_detect_enemy(object *op, object *enemy, rv_vector *rv); | | int can_detect_enemy(object *op, object *enemy, rv_vector *rv); |
int stand_in_light(object *op); | | int stand_in_light(object *op); |
| | |
object *get_real_owner(object *ob); | | object *get_real_owner(object *ob); |
int should_arena_attack(object *pet, object *owner, object *target); | | int should_arena_attack(object *pet, object *owner, object *target); |
/* player.c */ | | /* player.c */ |
player *find_player(char *plname); | | player *find_player(const char *plname); |
player *find_player_partial_name(char *plname); | | player *find_player_partial_name(const char *plname); |
void display_motd(object *op); | | void display_motd(object *op); |
void send_rules(object *op); | | void send_rules(object *op); |
void send_news(object *op); | | void send_news(object *op); |
int playername_ok(char *cp); | | int playername_ok(const char *cp); |
int add_player(NewSocket *ns); | | int add_player(NewSocket *ns); |
archetype *get_player_archetype(archetype *at); | | archetype *get_player_archetype(archetype *at); |
object *get_nearest_player(object *mon); | | object *get_nearest_player(object *mon); |
| | |
int key_confirm_quit(object *op, char key); | | int key_confirm_quit(object *op, char key); |
void flee_player(object *op); | | void flee_player(object *op); |
int check_pick(object *op); | | int check_pick(object *op); |
object *find_arrow(object *op, char *type); | | object *find_arrow(object *op, const char *type); |
object *find_better_arrow(object *op, object *target, char *type, int *better); | | object *find_better_arrow(object *op, object *target, const char *type, int *better); |
object *pick_arrow_target(object *op, char *type, int dir); | | object *pick_arrow_target(object *op, const char *type, int dir); |
int fire_bow(object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); | | 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); | | int player_fire_bow(object *op, int dir); |
void fire_misc_object(object *op, int dir); | | void fire_misc_object(object *op, int dir); |
| | |
CFParm *UnregisterGlobalEvent(CFParm *PParm); | | CFParm *UnregisterGlobalEvent(CFParm *PParm); |
void GlobalEvent(CFParm *PParm); | | void GlobalEvent(CFParm *PParm); |
/* resurrection.c */ | | /* resurrection.c */ |
int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, char *arg); | | int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg); |
int resurrection_fails(int levelcaster, int leveldead); | | int resurrection_fails(int levelcaster, int leveldead); |
void dead_player(object *op); | | void dead_player(object *op); |
void dead_character(char *name); | | void dead_character(const char *name); |
int dead_player_exists(char *name); | | int dead_player_exists(const char *name); |
/* rune.c */ | | /* rune.c */ |
int write_rune(object *op, object *caster, object *spell, int dir, char *runename); | | int write_rune(object *op, object *caster, object *spell, int dir, const char *runename); |
void move_rune(object *op); | | void move_rune(object *op); |
void rune_attack(object *op, object *victim); | | void rune_attack(object *op, object *victim); |
void spring_trap(object *trap, object *victim); | | void spring_trap(object *trap, object *victim); |
| | |
void trap_adjust(object *trap, int difficulty); | | void trap_adjust(object *trap, int difficulty); |
/* shop.c */ | | /* shop.c */ |
uint64 query_cost(object *tmp, object *who, int flag); | | uint64 query_cost(object *tmp, object *who, int flag); |
char *cost_string_from_value(uint64 cost); | | const char *cost_string_from_value(uint64 cost); |
char *query_cost_string(object *tmp, object *who, int flag); | | const char *query_cost_string(object *tmp, object *who, int flag); |
uint64 query_money(object *op); | | uint64 query_money(object *op); |
int pay_for_amount(uint64 to_pay, object *pl); | | int pay_for_amount(uint64 to_pay, object *pl); |
int pay_for_item(object *op, object *pl); | | int pay_for_item(object *op, object *pl); |
| | |
int remove_trap(object *op, int dir, object *skill); | | int remove_trap(object *op, int dir, object *skill); |
int pray(object *pl, object *skill); | | int pray(object *pl, object *skill); |
void meditate(object *pl, object *skill); | | void meditate(object *pl, object *skill); |
int write_on_item(object *pl, char *params, object *skill); | | int write_on_item(object *pl, const char *params, object *skill); |
int skill_throw(object *op, object *part, int dir, char *params, object *skill); | | int skill_throw(object *op, object *part, int dir, const char *params, object *skill); |
/* skill_util.c */ | | /* skill_util.c */ |
void init_skills(void); | | void init_skills(void); |
void link_player_skills(object *op); | | void link_player_skills(object *op); |
object *find_skill_by_name(object *who, char *name); | | object *find_skill_by_name(object *who, const char *name); |
object *find_skill_by_number(object *who, int skillno); | | object *find_skill_by_number(object *who, int skillno); |
int change_skill(object *who, object *new_skill, int flag); | | int change_skill(object *who, object *new_skill, int flag); |
void clear_skill(object *who); | | void clear_skill(object *who); |
int do_skill(object *op, object *part, object *skill, int dir, char *string); | | 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 calc_skill_exp(object *who, object *op, object *skill); |
int learn_skill(object *pl, object *scroll); | | int learn_skill(object *pl, object *scroll); |
void show_skills(object *op); | | void show_skills(object *op); |
int use_skill(object *op, char *string); | | int use_skill(object *op, char *string); |
int skill_attack(object *tmp, object *pl, int dir, char *string, object *skill); | | int skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill); |
int attack_hth(object *pl, int dir, char *string, object *skill); | | int attack_hth(object *pl, int dir, const char *string, object *skill); |
int attack_melee_weapon(object *op, int dir, char *string, object *skill); | | int attack_melee_weapon(object *op, int dir, const char *string, object *skill); |
/* spell_attack.c */ | | /* spell_attack.c */ |
void check_spell_knockback(object *op); | | void check_spell_knockback(object *op); |
void forklightning(object *op, object *tmp); | | void forklightning(object *op, object *tmp); |
| | |
void polymorph_item(object *who, object *op); | | void polymorph_item(object *who, object *op); |
void polymorph(object *op, object *who); | | void polymorph(object *op, object *who); |
int cast_polymorph(object *op, object *caster, object *spell_ob, int dir); | | int cast_polymorph(object *op, object *caster, object *spell_ob, int dir); |
int cast_create_missile(object *op, object *caster, object *spell, int dir, char *stringarg); | | int cast_create_missile(object *op, object *caster, object *spell, int dir, const char *stringarg); |
int cast_create_food(object *op, object *caster, object *spell_ob, int dir, char *stringarg); | | int cast_create_food(object *op, object *caster, object *spell_ob, int dir, const char *stringarg); |
int probe(object *op, object *caster, object *spell_ob, int dir); | | int probe(object *op, object *caster, object *spell_ob, int dir); |
int makes_invisible_to(object *pl, object *mon); | | int makes_invisible_to(object *pl, object *mon); |
int cast_invisible(object *op, object *caster, object *spell_ob); | | int cast_invisible(object *op, object *caster, object *spell_ob); |
| | |
int create_aura(object *op, object *caster, object *spell); | | int create_aura(object *op, object *caster, object *spell); |
void move_aura(object *aura); | | void move_aura(object *aura); |
void move_peacemaker(object *op); | | void move_peacemaker(object *op); |
int write_mark(object *op, object *spell, char *msg); | | int write_mark(object *op, object *spell, const char *msg); |
/* spell_util.c */ | | /* spell_util.c */ |
object *find_random_spell_in_ob(object *ob, char *skill); | | object *find_random_spell_in_ob(object *ob, const char *skill); |
void set_spell_skill(object *op, object *caster, object *spob, object *dest); | | void set_spell_skill(object *op, object *caster, object *spob, object *dest); |
void init_spells(void); | | void init_spells(void); |
void dump_spells(void); | | void dump_spells(void); |
| | |
void drain_rod_charge(object *rod); | | void drain_rod_charge(object *rod); |
object *find_target_for_friendly_spell(object *op, int dir); | | object *find_target_for_friendly_spell(object *op, int dir); |
int spell_find_dir(mapstruct *m, int x, int y, object *exclude); | | int spell_find_dir(mapstruct *m, int x, int y, object *exclude); |
void put_a_monster(object *op, char *monstername); | | void put_a_monster(object *op, const char *monstername); |
int summon_hostile_monsters(object *op, int n, char *monstername); | | int summon_hostile_monsters(object *op, int n, const char *monstername); |
void shuffle_attack(object *op, int change_face); | | void shuffle_attack(object *op, int change_face); |
void prayer_failure(object *op, int failure, int power); | | void prayer_failure(object *op, int failure, int power); |
void spell_failure(object *op, int failure, int power, object *skill); | | void spell_failure(object *op, int failure, int power, object *skill); |