Character creation. More...
|void||player_init (struct player *p)|
|void||player_generate (struct player *p, const struct player_race *r, const struct player_class *c)|
|This fleshes out a full player based on the choices currently made, and so is called whenever things like race or class are chosen. |
|char *||get_history (struct history_chart *h)|
|Get the racial history, and social class, using the "history charts". |
|void||wield_all (struct player *p)|
|Try to wield everything wieldable in the inventory. |
|void||do_cmd_birth_init (struct command *cmd)|
|void||do_cmd_birth_reset (struct command *cmd)|
|void||do_cmd_choose_race (struct command *cmd)|
|void||do_cmd_choose_class (struct command *cmd)|
|void||do_cmd_buy_stat (struct command *cmd)|
|void||do_cmd_sell_stat (struct command *cmd)|
|void||do_cmd_reset_stats (struct command *cmd)|
|void||do_cmd_roll_stats (struct command *cmd)|
|void||do_cmd_prev_stats (struct command *cmd)|
|void||do_cmd_choose_name (struct command *cmd)|
|void||do_cmd_choose_history (struct command *cmd)|
|void||do_cmd_accept_character (struct command *cmd)|
|char *||find_roman_suffix_start (const char *buf)|
Roman numeral functions, for dynastic successions
Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
This work is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation, version 2, or
b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.
References character_generated, do_randart(), EVENT_LEAVE_BIRTH, event_signal(), FALSE, flavor_init(), get_money(), history_add(), history_clear(), i, ignore_birth_init(), player::is_dead, message_add(), OP_CHEAT, op_ptr, OPT, player_other::opt, option_type(), player_outfit(), player_spells_init(), player_upkeep::playing, randint0, roll_hp(), seed_flavor, seed_randart, store_reset(), TRUE, and player::upkeep.
References buf, character_dungeon, EVENT_ENTER_BIRTH, event_signal_flag(), FALSE, find_roman_suffix_start(), player_other::full_name, player::ht_birth, int_to_roman(), msg, op_ptr, player_generate(), player_id2class(), player_id2race(), quickstart_allowed, roman_to_int(), save_roller_data(), and TRUE.
|char* find_roman_suffix_start||(||const char *||buf||)|
Find the start of a possible Roman numerals suffix by going back from the end of the string to a space, then checking that all the remaining chars are valid Roman numerals.
Return the start position, or NULL if there isn't a valid suffix.
|char* get_history||(||struct history_chart *||h||)|
|void player_generate||(||struct player *||p,|
|const struct player_race *||r,|
|const struct player_class *||c|
This fleshes out a full player based on the choices currently made, and so is called whenever things like race or class are chosen.
References player_class::c_exp, player_class::c_mhp, player::class, player::expfact, get_ahw(), get_history(), player::history, player_race::history, player::hitdie, player::lev, player::max_lev, player::mhp, player::player_hp, player_race::r_exp, player_race::r_mhp, and player::race.
References a_info, angband_constants::a_max, object_kind::aware, player::class, classes, artifact::created, monster_race::cur_num, FALSE, monster_race::flags, player::food, i, player_upkeep::inven, k_info, angband_constants::k_max, l_list, monster_race::max_num, mem_free(), mem_zalloc(), angband_constants::pack_size, monster_lore::pkills, player_quests_reset(), PY_FOOD_FULL, player_upkeep::quiver, angband_constants::quiver_size, r_info, angband_constants::r_max, player::race, races, player::resting_turn, rf_has, artifact::seen, player::timed, TMD_MAX, player::total_energy, object_kind::tried, turn, player::upkeep, and z_info.
Try to wield everything wieldable in the inventory.
References player::body, player_body::count, player_upkeep::equip_cnt, player::gear, object::next, object::number, equip_slot::obj, object_split(), pile_insert(), pile_insert_end(), slot_object(), player_body::slots, player::upkeep, and wield_slot().
Referenced by player_outfit().