| 1 |
|
| 2 |
void accounts_clear(void); |
| 3 |
void accounts_load(void); |
| 4 |
void accounts_save(void); |
| 5 |
const char *account_exists(const char *account_name); |
| 6 |
int account_login(const char *account_name, const char *account_password); |
| 7 |
int account_check_string(const char *str); |
| 8 |
int account_new(const char *account_name, const char *account_password); |
| 9 |
int account_link(const char *account_name, const char *player_name); |
| 10 |
int account_remove_player(const char *account_name, const char *player_name); |
| 11 |
char **account_get_players_for_account(const char *account_name); |
| 12 |
const char *account_get_account_for_char(const char *charname); |
| 13 |
player *account_get_logged_in_player(const char *name); |
| 14 |
socket_struct *account_get_logged_in_init_socket(const char *name); |
| 15 |
int account_is_logged_in(const char *name); |
| 16 |
int account_change_password(const char *account_name, const char *current_password, const char *new_password); |
| 17 |
|
| 18 |
Account_Char *account_char_load(const char *account_name); |
| 19 |
void account_char_save(const char *account, Account_Char *chars); |
| 20 |
Account_Char *account_char_add(Account_Char *chars, player *pl); |
| 21 |
Account_Char *account_char_remove(Account_Char *chars, const char *pl_name); |
| 22 |
void account_char_free(Account_Char *chars); |
| 23 |
|
| 24 |
int use_alchemy(object *op); |
| 25 |
|
| 26 |
int transport_can_hold(const object *transport, const object *op, int nrof); |
| 27 |
int should_director_abort(const object *op, const object *victim); |
| 28 |
void apply_handle_yield(object *tmp); |
| 29 |
int set_object_face_main(object *op); |
| 30 |
int apply_container(object *op, object *sack, int aflags); |
| 31 |
void do_learn_spell(object *op, object *spell, int special_prayer); |
| 32 |
void do_forget_spell(object *op, const char *spell); |
| 33 |
int apply_manual(object *op, object *tmp, int aflag); |
| 34 |
int apply_by_living(object *pl, object *op, int aflag, int quiet); |
| 35 |
void apply_by_living_below(object *pl); |
| 36 |
int apply_can_apply_object(const object *who, const object *op); |
| 37 |
int apply_check_weapon_power(const object *who, int improves); |
| 38 |
int apply_special(object *who, object *op, int aflags); |
| 39 |
int apply_auto(object *op); |
| 40 |
void apply_auto_fix(mapstruct *m); |
| 41 |
void scroll_failure(object *op, int failure, int power); |
| 42 |
void apply_changes_to_player(object *pl, object *change, int limit_stats); |
| 43 |
|
| 44 |
void save_throw_object(object *op, uint32_t type, object *originator); |
| 45 |
int slow_living_by(object *op, const int speed_penalty); |
| 46 |
int hit_map(object *op, int dir, uint32_t type, int full_hit); |
| 47 |
int attack_ob(object *op, object *hitter); |
| 48 |
object *hit_with_arrow(object *op, object *victim); |
| 49 |
int friendly_fire(object *op, object *hitter); |
| 50 |
int hit_player(object *op, int dam, object *hitter, uint32_t type, int full_hit); |
| 51 |
void confuse_living(object *op, object *hitter, int dam); |
| 52 |
void blind_living(object *op, object *hitter, int dam); |
| 53 |
void paralyze_living(object *op, int dam); |
| 54 |
|
| 55 |
int checkbanned(const char *login, const char *host); |
| 56 |
|
| 57 |
void apply_builder_remove(object *pl, int dir); |
| 58 |
void apply_map_builder(object *pl, int dir); |
| 59 |
|
| 60 |
void command_say(object *op, const char *params); |
| 61 |
void command_me(object *op, const char *params); |
| 62 |
void command_cointoss(object *op, const char *params); |
| 63 |
void command_orcknuckle(object *op, const char *params); |
| 64 |
void command_shout(object *op, const char *params); |
| 65 |
void command_chat(object *op, const char *params); |
| 66 |
void command_tell(object *op, const char *params); |
| 67 |
void command_dmtell(object *op, const char *params); |
| 68 |
void command_reply(object *op, const char *params); |
| 69 |
void command_nod(object *op, const char *params); |
| 70 |
void command_dance(object *op, const char *params); |
| 71 |
void command_kiss(object *op, const char *params); |
| 72 |
void command_bounce(object *op, const char *params); |
| 73 |
void command_smile(object *op, const char *params); |
| 74 |
void command_cackle(object *op, const char *params); |
| 75 |
void command_laugh(object *op, const char *params); |
| 76 |
void command_giggle(object *op, const char *params); |
| 77 |
void command_shake(object *op, const char *params); |
| 78 |
void command_puke(object *op, const char *params); |
| 79 |
void command_growl(object *op, const char *params); |
| 80 |
void command_scream(object *op, const char *params); |
| 81 |
void command_sigh(object *op, const char *params); |
| 82 |
void command_sulk(object *op, const char *params); |
| 83 |
void command_hug(object *op, const char *params); |
| 84 |
void command_cry(object *op, const char *params); |
| 85 |
void command_poke(object *op, const char *params); |
| 86 |
void command_accuse(object *op, const char *params); |
| 87 |
void command_grin(object *op, const char *params); |
| 88 |
void command_bow(object *op, const char *params); |
| 89 |
void command_clap(object *op, const char *params); |
| 90 |
void command_blush(object *op, const char *params); |
| 91 |
void command_burp(object *op, const char *params); |
| 92 |
void command_chuckle(object *op, const char *params); |
| 93 |
void command_cough(object *op, const char *params); |
| 94 |
void command_flip(object *op, const char *params); |
| 95 |
void command_frown(object *op, const char *params); |
| 96 |
void command_gasp(object *op, const char *params); |
| 97 |
void command_glare(object *op, const char *params); |
| 98 |
void command_groan(object *op, const char *params); |
| 99 |
void command_hiccup(object *op, const char *params); |
| 100 |
void command_lick(object *op, const char *params); |
| 101 |
void command_pout(object *op, const char *params); |
| 102 |
void command_shiver(object *op, const char *params); |
| 103 |
void command_shrug(object *op, const char *params); |
| 104 |
void command_slap(object *op, const char *params); |
| 105 |
void command_smirk(object *op, const char *params); |
| 106 |
void command_snap(object *op, const char *params); |
| 107 |
void command_sneeze(object *op, const char *params); |
| 108 |
void command_snicker(object *op, const char *params); |
| 109 |
void command_sniff(object *op, const char *params); |
| 110 |
void command_snore(object *op, const char *params); |
| 111 |
void command_spit(object *op, const char *params); |
| 112 |
void command_strut(object *op, const char *params); |
| 113 |
void command_thank(object *op, const char *params); |
| 114 |
void command_twiddle(object *op, const char *params); |
| 115 |
void command_wave(object *op, const char *params); |
| 116 |
void command_whistle(object *op, const char *params); |
| 117 |
void command_wink(object *op, const char *params); |
| 118 |
void command_yawn(object *op, const char *params); |
| 119 |
void command_beg(object *op, const char *params); |
| 120 |
void command_bleed(object *op, const char *params); |
| 121 |
void command_cringe(object *op, const char *params); |
| 122 |
void command_think(object *op, const char *params); |
| 123 |
|
| 124 |
void map_info(object *op, const char *search); |
| 125 |
void command_language(object *op, const char *params); |
| 126 |
void command_body(object *op, const char *params); |
| 127 |
void command_motd(object *op, const char *params); |
| 128 |
void command_rules(object *op, const char *params); |
| 129 |
void command_news(object *op, const char *params); |
| 130 |
void current_region_info(object *op); |
| 131 |
void current_map_info(object *op); |
| 132 |
void command_whereabouts(object *op, const char *params); |
| 133 |
void list_players(object *op, region *reg, partylist *party); |
| 134 |
void command_who(object *op, const char *params); |
| 135 |
void display_who_entry(object *op, player *pl, const char *format); |
| 136 |
void get_who_escape_code_value(char *return_val, int size, const char letter, player *pl); |
| 137 |
void command_afk(object *op, const char *params); |
| 138 |
void command_malloc(object *op, const char *params); |
| 139 |
void command_mapinfo(object *op, const char *params); |
| 140 |
void command_whereami(object *op, const char *params); |
| 141 |
void command_maps(object *op, const char *params); |
| 142 |
void command_strings(object *op, const char *params); |
| 143 |
void command_time(object *op, const char *params); |
| 144 |
void command_archs(object *op, const char *params); |
| 145 |
void command_hiscore(object *op, const char *params); |
| 146 |
void command_debug(object *op, const char *params); |
| 147 |
void command_wizpass(object *op, const char *params); |
| 148 |
void command_wizcast(object *op, const char *params); |
| 149 |
void command_dumpallobjects(object *op, const char *params); |
| 150 |
void command_dumpfriendlyobjects(object *op, const char *params); |
| 151 |
void command_dumpallarchetypes(object *op, const char *params); |
| 152 |
void command_ssdumptable(object *op, const char *params); |
| 153 |
void command_dumpmap(object *op, const char *params); |
| 154 |
void command_dumpallmaps(object *op, const char *params); |
| 155 |
void command_printlos(object *op, const char *params); |
| 156 |
void command_version(object *op, const char *params); |
| 157 |
void command_listen(object *op, const char *params); |
| 158 |
void command_statistics(object *pl, const char *params); |
| 159 |
void command_fix_me(object *op, const char *params); |
| 160 |
void command_players(object *op, const char *params); |
| 161 |
void command_applymode(object *op, const char *params); |
| 162 |
void command_bowmode(object *op, const char *params); |
| 163 |
void command_unarmed_skill(object *op, const char *params); |
| 164 |
void command_petmode(object *op, const char *params); |
| 165 |
void command_showpets(object *op, const char *params); |
| 166 |
void command_usekeys(object *op, const char *params); |
| 167 |
void command_resistances(object *op, const char *params); |
| 168 |
void command_help(object *op, const char *params); |
| 169 |
int onoff_value(const char *line); |
| 170 |
void command_delete(object *op, const char *params); |
| 171 |
void command_quit(object *op, const char *params); |
| 172 |
void command_sound(object *op, const char *params); |
| 173 |
void receive_player_name(object *op); |
| 174 |
void receive_player_password(object *op); |
| 175 |
void command_title(object *op, const char *params); |
| 176 |
void command_save(object *op, const char *params); |
| 177 |
void command_peaceful(object *op, const char *params); |
| 178 |
void command_wimpy(object *op, const char *params); |
| 179 |
void command_brace(object *op, const char *params); |
| 180 |
void command_kill_pets(object *op, const char *params); |
| 181 |
void command_passwd(object *pl, const char *params); |
| 182 |
void do_harvest(object *pl, int dir, object *skill); |
| 183 |
|
| 184 |
void command_east(object *op, const char *params); |
| 185 |
void command_north(object *op, const char *params); |
| 186 |
void command_northeast(object *op, const char *params); |
| 187 |
void command_northwest(object *op, const char *params); |
| 188 |
void command_south(object *op, const char *params); |
| 189 |
void command_southeast(object *op, const char *params); |
| 190 |
void command_southwest(object *op, const char *params); |
| 191 |
void command_west(object *op, const char *params); |
| 192 |
void command_stay(object *op, const char *params); |
| 193 |
void do_goto(object *op, const char *name, int x, int y); |
| 194 |
|
| 195 |
void execute_newserver_command(object *pl, char *command); |
| 196 |
void command_run(object *op, const char *params); |
| 197 |
void command_run_stop(object *op, const char *params); |
| 198 |
void command_fire(object *op, const char *params); |
| 199 |
void command_fire_stop(object *op, const char *params); |
| 200 |
void command_face(object *op, const char *params); |
| 201 |
|
| 202 |
void command_uskill(object *pl, const char *params); |
| 203 |
void command_rskill(object *pl, const char *params); |
| 204 |
void command_search(object *op, const char *params); |
| 205 |
void command_disarm(object *op, const char *params); |
| 206 |
void command_throw(object *op, const char *params); |
| 207 |
void command_apply(object *op, const char *params); |
| 208 |
int sack_can_hold(const object *pl, const object *sack, const object *op, uint32_t nrof); |
| 209 |
void pick_up(object *op, object *alt); |
| 210 |
void command_take(object *op, const char *params); |
| 211 |
void put_object_in_sack(object *op, object *sack, object *tmp, uint32_t nrof); |
| 212 |
object *drop_object(object *op, object *tmp, uint32_t nrof); |
| 213 |
void drop(object *op, object *tmp); |
| 214 |
void command_dropall(object *op, const char *params); |
| 215 |
void command_drop(object *op, const char *params); |
| 216 |
void command_empty(object *op, const char *params); |
| 217 |
void command_examine(object *op, const char *params); |
| 218 |
object *find_marked_object(object *op); |
| 219 |
void command_mark(object *op, const char *params); |
| 220 |
void examine_monster(object *op, object *tmp, int level); |
| 221 |
void examine(object *op, object *tmp); |
| 222 |
void inventory(object *op, object *inv); |
| 223 |
void command_pickup(object *op, const char *params); |
| 224 |
void command_search_items(object *op, const char *params); |
| 225 |
void command_rename_item(object *op, const char *params); |
| 226 |
void command_lock_item(object *op, const char *params); |
| 227 |
void command_use(object *op, const char *params); |
| 228 |
|
| 229 |
int confirm_party_password(object *op); |
| 230 |
void receive_party_password(object *op); |
| 231 |
void command_gsay(object *op, const char *params); |
| 232 |
void command_party(object *op, const char *params); |
| 233 |
void command_party_rejoin(object *op, const char *params); |
| 234 |
|
| 235 |
void command_invoke(object *op, const char *params); |
| 236 |
void command_cast(object *op, const char *params); |
| 237 |
void command_prepare(object *op, const char *params); |
| 238 |
void command_cast_spell(object *op, const char *params, char command); |
| 239 |
int legal_range(object *op, int r); |
| 240 |
void command_rotateshoottype(object *op, const char *params); |
| 241 |
|
| 242 |
void command_loadtest(object *op, const char *params); |
| 243 |
void command_hide(object *op, const char *params); |
| 244 |
void command_setgod(object *op, const char *params); |
| 245 |
void command_banish(object *op, const char *params); |
| 246 |
void command_kick(object *op, const char *params); |
| 247 |
void command_overlay_save(object *op, const char *params); |
| 248 |
void command_overlay_reset(object *op, const char *params); |
| 249 |
void command_toggle_shout(object *op, const char *params); |
| 250 |
void command_shutdown(object *op, const char *params); |
| 251 |
void command_goto(object *op, const char *params); |
| 252 |
void command_freeze(object *op, const char *params); |
| 253 |
int player_arrest(object *who); |
| 254 |
void command_arrest(object *op, const char *params); |
| 255 |
void command_summon(object *op, const char *params); |
| 256 |
void command_teleport(object *op, const char *params); |
| 257 |
void command_create(object *op, const char *params); |
| 258 |
void command_inventory(object *op, const char *params); |
| 259 |
void command_skills(object *op, const char *params); |
| 260 |
void command_dump(object *op, const char *params); |
| 261 |
void command_mon_aggr(object *op, const char *params); |
| 262 |
void command_possess(object *op, const char *params); |
| 263 |
void command_patch(object *op, const char *params); |
| 264 |
void command_remove(object *op, const char *params); |
| 265 |
void command_free(object *op, const char *params); |
| 266 |
void command_addexp(object *op, const char *params); |
| 267 |
void command_speed(object *op, const char *params); |
| 268 |
void command_stats(object *op, const char *params); |
| 269 |
void command_abil(object *op, const char *params); |
| 270 |
void command_reset(object *op, const char *params); |
| 271 |
void command_nowiz(object *op, const char *params); |
| 272 |
void command_dm(object *op, const char *params); |
| 273 |
void command_invisible(object *op, const char *params); |
| 274 |
void command_learn_spell(object *op, const char *params); |
| 275 |
void command_learn_special_prayer(object *op, const char *params); |
| 276 |
void command_forget_spell(object *op, const char *params); |
| 277 |
void command_listplugins(object *op, const char *params); |
| 278 |
void command_loadplugin(object *op, const char *params); |
| 279 |
void command_unloadplugin(object *op, const char *params); |
| 280 |
void command_dmhide(object *op, const char *params); |
| 281 |
void command_stack_pop(object *op, const char *params); |
| 282 |
void command_stack_push(object *op, const char *params); |
| 283 |
void command_stack_list(object *op, const char *params); |
| 284 |
void command_stack_clear(object *op, const char *params); |
| 285 |
void command_diff(object *op, const char *params); |
| 286 |
void command_insert_into(object *op, const char *params); |
| 287 |
void command_style_map_info(object *op, const char *params); |
| 288 |
void command_follow(object *op, const char *params); |
| 289 |
void command_purge_quest(object *op, const char *param); |
| 290 |
void command_purge_quest_definitions(object *op, const char *param); |
| 291 |
void command_dumpabove(object *op, const char *params); |
| 292 |
void command_dumpbelow(object *op, const char *params); |
| 293 |
void command_settings(object *op, const char *ignored); |
| 294 |
|
| 295 |
void init_commands(void); |
| 296 |
|
| 297 |
int move_disease(object *disease); |
| 298 |
int infect_object(object *victim, object *disease, int force); |
| 299 |
void move_symptom(object *symptom); |
| 300 |
void check_physically_infect(object *victim, object *hitter); |
| 301 |
int cure_disease(object *sufferer, object *caster, sstring skill); |
| 302 |
|
| 303 |
void hiscore_init(void); |
| 304 |
void hiscore_check(object *op, int quiet); |
| 305 |
void hiscore_display(object *op, int max, const char *match); |
| 306 |
|
| 307 |
const object *find_god(const char *name); |
| 308 |
const char *determine_god(object *op); |
| 309 |
void pray_at_altar(object *pl, object *altar, object *skill); |
| 310 |
int become_follower(object *op, const object *new_god); |
| 311 |
archetype *determine_holy_arch(const object *god, const char *type); |
| 312 |
int tailor_god_spell(object *spellop, object *caster); |
| 313 |
|
| 314 |
void init(int argc, char **argv); |
| 315 |
void free_server(void); |
| 316 |
racelink *find_racelink(const char *name); |
| 317 |
|
| 318 |
void knowledge_give(player *pl, const char *marker, const object *book); |
| 319 |
void knowledge_read(player *pl, object *book); |
| 320 |
void command_knowledge(object *pl, const char *params); |
| 321 |
void free_knowledge(void); |
| 322 |
int knowledge_player_knows(const player *pl, const char *knowledge); |
| 323 |
void knowledge_item_can_be_used_alchemy(object *op, const object *item); |
| 324 |
void knowledge_send_info(socket_struct *ns); |
| 325 |
void knowledge_send_known(player *pl); |
| 326 |
void knowledge_first_player_save(player *pl); |
| 327 |
void knowledge_process_incremental(void); |
| 328 |
void knowledge_show_monster_detail(object *op, const char *name); |
| 329 |
|
| 330 |
void emergency_save(int flag); |
| 331 |
void delete_character(const char *name); |
| 332 |
int verify_player(const char *name, char *password); |
| 333 |
int check_name(player *me, const char *name); |
| 334 |
void destroy_object(object *op); |
| 335 |
int save_player(object *op, int flag); |
| 336 |
void check_login(object *op, int check_pass); |
| 337 |
|
| 338 |
object *monster_check_enemy(object *npc, rv_vector *rv); |
| 339 |
object *monster_find_nearest_living_creature(object *npc); |
| 340 |
int monster_compute_path(object *source, object *target, int default_dir); |
| 341 |
void monster_do_living(object *op); |
| 342 |
int monster_move(object *op); |
| 343 |
void monster_check_apply_all(object *monster); |
| 344 |
void monster_npc_call_help(object *op); |
| 345 |
void monster_check_earthwalls(object *op, mapstruct *m, int x, int y); |
| 346 |
void monster_check_doors(object *op, mapstruct *m, int x, int y); |
| 347 |
void monster_do_say(const mapstruct *map, const char *message); |
| 348 |
void monster_communicate(object *op, const char *txt); |
| 349 |
void monster_npc_say(object *npc, const char *cp); |
| 350 |
object *monster_find_throw_ob(object *op); |
| 351 |
int monster_can_detect_enemy(object *op, object *enemy, rv_vector *rv); |
| 352 |
int monster_stand_in_light(object *op); |
| 353 |
int monster_can_see_enemy(object *op, object *enemy); |
| 354 |
|
| 355 |
int move_object(object *op, int dir); |
| 356 |
int move_ob(object *op, int dir, object *originator); |
| 357 |
int transfer_ob(object *op, int x, int y, int randomly, object *originator); |
| 358 |
int teleport(object *teleporter, uint8_t tele_type, object *user); |
| 359 |
void recursive_roll(object *op, int dir, object *pusher); |
| 360 |
int push_ob(object *who, int dir, object *pusher); |
| 361 |
int move_to(object *op, int x, int y); |
| 362 |
|
| 363 |
void init_ob_methods(void); |
| 364 |
|
| 365 |
void register_all_ob_types(void); |
| 366 |
|
| 367 |
partylist *party_form(object *op, const char *partyname); |
| 368 |
void party_join(object *op, partylist *party); |
| 369 |
void party_leave(object *op); |
| 370 |
partylist *party_find(const char *partyname); |
| 371 |
void party_remove(partylist *party); |
| 372 |
partylist *party_get_first(void); |
| 373 |
partylist *party_get_next(const partylist *party); |
| 374 |
void party_obsolete_parties(void); |
| 375 |
const char *party_get_password(const partylist *party); |
| 376 |
void party_set_password(partylist *party, const char *password); |
| 377 |
int party_confirm_password(const partylist *party, const char *password); |
| 378 |
void party_send_message(object *op, const char *message); |
| 379 |
const char *party_get_leader(const partylist *party); |
| 380 |
|
| 381 |
object *pets_get_enemy(object *pet, rv_vector *rv); |
| 382 |
void pets_terminate_all(object *owner); |
| 383 |
void pets_remove_all(void); |
| 384 |
void pets_follow_owner(object *ob, object *owner); |
| 385 |
void pets_move(object *ob); |
| 386 |
void pets_move_golem(object *op); |
| 387 |
void pets_control_golem(object *op, int dir); |
| 388 |
int pets_summon_golem(object *op, object *caster, int dir, object *spob); |
| 389 |
int pets_summon_object(object *op, object *caster, object *spell_ob, int dir, const char *stringarg); |
| 390 |
int pets_should_arena_attack(object *pet, object *owner, object *target); |
| 391 |
|
| 392 |
player *find_player(const char *plname); |
| 393 |
player *find_player_options(const char *plname, int options, const mapstruct *map); |
| 394 |
player *find_player_partial_name(const char *plname); |
| 395 |
player *find_player_socket(const socket_struct *ns); |
| 396 |
void display_motd(const object *op); |
| 397 |
void send_rules(const object *op); |
| 398 |
void send_news(const object *op); |
| 399 |
int playername_ok(const char *cp); |
| 400 |
player *get_player(player *p); |
| 401 |
void set_first_map(object *op); |
| 402 |
player *add_player(socket_struct *ns, int flags); |
| 403 |
object *get_nearest_player(object *mon); |
| 404 |
int path_to_player(object *mon, object *pl, unsigned mindiff); |
| 405 |
void give_initial_items(object *pl, treasurelist *items); |
| 406 |
void get_name(object *op); |
| 407 |
void get_password(object *op); |
| 408 |
void play_again(object *op); |
| 409 |
void receive_play_again(object *op, char key); |
| 410 |
void confirm_password(object *op); |
| 411 |
int get_party_password(object *op, partylist *party); |
| 412 |
int roll_stat(void); |
| 413 |
void roll_stats(object *op); |
| 414 |
void roll_again(object *op); |
| 415 |
void key_roll_stat(object *op, char key); |
| 416 |
void key_change_class(object *op, char key); |
| 417 |
int check_race_and_class(living *stats, archetype *race, archetype *opclass); |
| 418 |
int apply_race_and_class(object *op, archetype *race, archetype *opclass, living *stats); |
| 419 |
void key_confirm_quit(object *op, char key); |
| 420 |
int check_pick(object *op); |
| 421 |
int fire_bow(object *op, object *arrow, int dir, int wc_mod, int16_t sx, int16_t sy); |
| 422 |
void fire(object *op, int dir); |
| 423 |
object *find_key(object *pl, object *container, object *door); |
| 424 |
void move_player_attack(object *op, int dir); |
| 425 |
int move_player(object *op, int dir); |
| 426 |
int face_player(object *op, int dir); |
| 427 |
int handle_newcs_player(object *op); |
| 428 |
void remove_unpaid_objects(object *op, object *env, int free_items); |
| 429 |
void do_some_living(object *op); |
| 430 |
void kill_player(object *op, const object *killer); |
| 431 |
void fix_weight(void); |
| 432 |
void fix_luck(void); |
| 433 |
void cast_dust(object *op, object *throw_ob, int dir); |
| 434 |
void make_visible(object *op); |
| 435 |
int is_true_undead(object *op); |
| 436 |
int hideability(object *ob); |
| 437 |
void do_hidden_move(object *op); |
| 438 |
int stand_near_hostile(object *who); |
| 439 |
int player_can_view(object *pl, object *op); |
| 440 |
int op_on_battleground(object *op, int *x, int *y, archetype **trophy); |
| 441 |
void dragon_ability_gain(object *who, int atnr, int level); |
| 442 |
void player_unready_range_ob(player *pl, object *ob); |
| 443 |
void player_set_state(player *pl, uint8_t state); |
| 444 |
|
| 445 |
int user_event(object *op, object *activator, object *third, const char *message, int fix); |
| 446 |
int execute_event(object *op, int eventcode, object *activator, object *third, const char *message, int fix); |
| 447 |
int plugin_event_say(object *npc, talk_info *talk); |
| 448 |
int execute_global_event(int eventcode, ...); |
| 449 |
int plugins_init_plugin(const char *libfile); |
| 450 |
int plugins_remove_plugin(const char *id); |
| 451 |
void plugins_display_list(object *op); |
| 452 |
command_array_struct *find_plugin_command(const char *cmd, command_array_struct *command); |
| 453 |
void initPlugins(void); |
| 454 |
void cleanupPlugins(void); |
| 455 |
|
| 456 |
int quest_get_player_state(player *pl, sstring quest_code); |
| 457 |
void quest_start(player *pl, sstring quest_code, int state); |
| 458 |
void quest_set_player_state(player *pl, sstring quest_code, int state); |
| 459 |
int quest_was_completed(player *pl, sstring quest_code); |
| 460 |
void command_quest(object *op, const char *params); |
| 461 |
void dump_quests(void); |
| 462 |
void free_quest(void); |
| 463 |
void free_quest_definitions(void); |
| 464 |
void quest_send_initial_states(player *pl); |
| 465 |
void quest_first_player_save(player *pl); |
| 466 |
|
| 467 |
int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg); |
| 468 |
void dead_player(object *op); |
| 469 |
|
| 470 |
int write_rune(object *op, object *caster, object *spell, int dir, const char *runename); |
| 471 |
void spring_trap(object *trap, object *victim); |
| 472 |
int dispel_rune(object *op, object *caster, object *spell, object *skill, int dir); |
| 473 |
int trap_see(object *op, object *trap); |
| 474 |
int trap_show(object *trap, object *where); |
| 475 |
int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
| 476 |
|
| 477 |
int steal(object *op, int dir, object *skill); |
| 478 |
int pick_lock(object *pl, int dir, object *skill); |
| 479 |
int hide(object *op, object *skill); |
| 480 |
int jump(object *pl, int dir, object *skill); |
| 481 |
int detect_curse_on_item(object *pl, object *tmp, object *skill); |
| 482 |
int detect_magic_on_item(object *pl, object *tmp, object *skill); |
| 483 |
int identify_object_with_skill(object *tmp, object *pl, object *skill, int print_on_success); |
| 484 |
int skill_ident(object *pl, object *skill); |
| 485 |
int use_oratory(object *pl, int dir, object *skill); |
| 486 |
int singing(object *pl, int dir, object *skill); |
| 487 |
int find_traps(object *pl, object *skill); |
| 488 |
int remove_trap(object *op, object *skill); |
| 489 |
int pray(object *pl, object *skill); |
| 490 |
void meditate(object *pl, object *skill); |
| 491 |
int write_on_item(object *pl, const char *params, object *skill); |
| 492 |
int skill_throw(object *op, object *part, int dir, object *skill); |
| 493 |
|
| 494 |
void init_skills(void); |
| 495 |
object *find_skill_by_name(object *who, const char *name); |
| 496 |
object *find_applied_skill_by_name(const object* op, const char* name); |
| 497 |
object *find_skill_by_number(object *who, int skillno); |
| 498 |
int change_skill(object *who, object *new_skill, int flag); |
| 499 |
void clear_skill(object *who); |
| 500 |
int do_skill(object *op, object *part, object *skill, int dir, const char *string); |
| 501 |
int64_t calc_skill_exp(const object *who, const object *op, const object *skill); |
| 502 |
int learn_skill(object *pl, object *scroll); |
| 503 |
void show_skills(object *op, const char *search); |
| 504 |
int use_skill(object *op, const char *string); |
| 505 |
void skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill); |
| 506 |
|
| 507 |
int fire_bolt(object *op, object *caster, int dir, object *spob); |
| 508 |
void explode_bullet(object *op); |
| 509 |
void check_bullet(object *op); |
| 510 |
void cone_drop(object *op); |
| 511 |
int cast_cone(object *op, object *caster, int dir, object *spell); |
| 512 |
int create_bomb(object *op, object *caster, int dir, object *spell); |
| 513 |
int cast_smite_spell(object *op, object *caster, int dir, object *spell); |
| 514 |
int cast_destruction(object *op, object *caster, object *spell_ob); |
| 515 |
int cast_curse(object *op, object *caster, object *spell_ob, int dir); |
| 516 |
int mood_change(object *op, object *caster, object *spell); |
| 517 |
int fire_swarm(object *op, object *caster, object *spell, int dir); |
| 518 |
int cast_light(object *op, object *caster, object *spell, int dir); |
| 519 |
int cast_cause_disease(object *op, object *caster, object *spell, int dir); |
| 520 |
|
| 521 |
void cast_magic_storm(object *op, object *tmp, int lvl); |
| 522 |
int recharge(object *op, object *caster, object *spell_ob); |
| 523 |
void polymorph(object *op, object *who, int level); |
| 524 |
int cast_polymorph(object *op, object *caster, object *spell_ob, int dir); |
| 525 |
int cast_create_missile(object *op, object *caster, object *spell, int dir, const char *stringarg); |
| 526 |
int cast_create_food(object *op, object *caster, object *spell_ob, int dir, const char *stringarg); |
| 527 |
int probe(object *op, object *caster, object *spell_ob, int dir, int level); |
| 528 |
int makes_invisible_to(object *pl, object *mon); |
| 529 |
int cast_invisible(object *op, object *caster, object *spell_ob); |
| 530 |
int cast_earth_to_dust(object *op, object *caster, object *spell_ob); |
| 531 |
int cast_word_of_recall(object *op, object *caster, object *spell_ob); |
| 532 |
int cast_wonder(object *op, object *caster, int dir, object *spell_ob); |
| 533 |
int perceive_self(object *op); |
| 534 |
int cast_create_town_portal(object *op, object *caster, object *spell, int dir); |
| 535 |
int magic_wall(object *op, object *caster, int dir, object *spell_ob); |
| 536 |
int dimension_door(object *op, object *caster, object *spob, int dir); |
| 537 |
int cast_heal(object *op, object *caster, object *spell, int dir); |
| 538 |
int cast_change_ability(object *op, object *caster, object *spell_ob, int dir, int silent); |
| 539 |
int cast_bless(object *op, object *caster, object *spell_ob, int dir); |
| 540 |
int alchemy(object *op, object *caster, object *spell_ob); |
| 541 |
int remove_curse(object *op, object *caster, object *spell); |
| 542 |
int cast_item_curse_or_curse(object *op, object *caster, object *spell_ob); |
| 543 |
int cast_identify(object *op, object *caster, object *spell); |
| 544 |
int cast_detection(object *op, object *caster, object *spell); |
| 545 |
int cast_transfer(object *op, object *caster, object *spell, int dir); |
| 546 |
void counterspell(object *op, int dir); |
| 547 |
int cast_consecrate(object *op, object *caster, object *spell); |
| 548 |
int animate_weapon(object *op, object *caster, object *spell, int dir); |
| 549 |
int cast_change_map_lightlevel(object *op, object *caster, object *spell); |
| 550 |
int create_aura(object *op, object *caster, object *spell); |
| 551 |
int write_mark(object *op, object *spell, const char *msg); |
| 552 |
|
| 553 |
object *find_random_spell_in_ob(object *ob, const char *skill); |
| 554 |
void set_spell_skill(object *op, object *caster, object *spob, object *dest); |
| 555 |
void check_spells(void); |
| 556 |
void dump_spells(void); |
| 557 |
void spell_effect(object *spob, int x, int y, mapstruct *map, object *originator); |
| 558 |
int min_casting_level(const object *caster, const object *spell); |
| 559 |
int caster_level(const object *caster, const object *spell); |
| 560 |
int16_t SP_level_spellpoint_cost(object *caster, object *spell, int flags); |
| 561 |
int SP_level_dam_adjust(const object *caster, const object *spob); |
| 562 |
int SP_level_duration_adjust(const object *caster, const object *spob); |
| 563 |
int SP_level_range_adjust(const object *caster, const object *spob); |
| 564 |
int SP_level_wc_adjust(const object *caster, const object *spob); |
| 565 |
object *check_spell_known(object *op, const char *name); |
| 566 |
object *lookup_spell_by_name(object *op, const char *spname); |
| 567 |
int reflwall(mapstruct *m, int x, int y, object *sp_op); |
| 568 |
int cast_create_obj(object *op, object *new_op, int dir); |
| 569 |
int ok_to_put_more(mapstruct *m, int16_t x, int16_t y, object *op, uint32_t immune_stop); |
| 570 |
int fire_arch_from_position(object *op, object *caster, int16_t x, int16_t y, int dir, object *spell); |
| 571 |
void regenerate_rod(object *rod); |
| 572 |
void drain_rod_charge(object *rod); |
| 573 |
void drain_wand_charge(object *wand); |
| 574 |
object *find_target_for_friendly_spell(object *op, int dir); |
| 575 |
int spell_find_dir(mapstruct *m, int x, int y, object *exclude); |
| 576 |
int summon_hostile_monsters(object *op, int n, const char *monstername); |
| 577 |
void shuffle_attack(object *op, int change_face); |
| 578 |
void spell_failure(object *op, int failure, int power, object *skill); |
| 579 |
int cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg); |
| 580 |
void store_spell_expiry(object *spell); |
| 581 |
void check_spell_expiry(object *spell); |
| 582 |
void rod_adjust(object *rod); |
| 583 |
|
| 584 |
void read_map_log(void); |
| 585 |
int swap_map(mapstruct *map); |
| 586 |
void check_active_maps(void); |
| 587 |
int players_on_map(mapstruct *m, int show_all); |
| 588 |
void flush_old_maps(void); |
| 589 |
|
| 590 |
void remove_door(object *op); |
| 591 |
void remove_locked_door(object *op); |
| 592 |
object *stop_item(object *op); |
| 593 |
void fix_stopped_item(object *op, mapstruct *map, object *originator); |
| 594 |
object *fix_stopped_arrow(object *op); |
| 595 |
int free_no_drop(object *op); |
| 596 |
void change_object(object *op); |
| 597 |
void move_firewall(object *op); |
| 598 |
void move_player_mover(object *op); |
| 599 |
int process_object(object *op); |
| 600 |
void legacy_remove_force(object *op); |
| 601 |
void legacy_animate_trigger(object *op); |
| 602 |
void legacy_move_hole(object *op); |
| 603 |
unsigned int tick_length(float seconds); |
| 604 |
long timespec_diff(struct timespec *end, struct timespec *start); |
| 605 |
|
| 606 |
void cftimer_process_timers(void); |
| 607 |
int cftimer_create(int id, long delay, object *ob, int mode); |
| 608 |
int cftimer_destroy(int id); |
| 609 |
int cftimer_find_free_id(void); |
| 610 |
void cftimer_init(void); |
| 611 |
|
| 612 |
void set_darkness_map(mapstruct *m); |
| 613 |
void tick_the_clock(void); |
| 614 |
|
| 615 |
char const* newhash(char const *password); |
| 616 |
bool check_password(const char *typed, const char *crypted); |
| 617 |
void enter_player_savebed(object *op); |
| 618 |
void set_map_timeout(mapstruct *oldmap); |
| 619 |
void enter_exit(object *op, object *exit_ob); |
| 620 |
void process_events(void); |
| 621 |
void clean_tmp_files(void); |
| 622 |
void cleanup(void); |
| 623 |
void leave(player *pl, int draw_exit); |
| 624 |
int forbid_play(void); |
| 625 |
void server_main(int argc, char *argv[]); |
| 626 |
|
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
void enter_player_maplevel(object *op); |