Player implementation. More...
|int||stat_name_to_idx (const char *name)|
|const char *||stat_idx_to_name (int type)|
|const struct magic_realm *||lookup_realm (const char *name)|
|bool||player_stat_inc (struct player *p, int stat)|
|bool||player_stat_dec (struct player *p, int stat, bool permanent)|
|static void||adjust_level (struct player *p, bool verbose)|
|void||player_exp_gain (struct player *p, s32b amount)|
|void||player_exp_lose (struct player *p, s32b amount, bool permanent)|
|void||player_flags (struct player *p, bitflag f[OF_SIZE])|
|Obtain object flags for the player. More...|
|byte||player_hp_attr (struct player *p)|
|byte||player_sp_attr (struct player *p)|
|bool||player_restore_mana (struct player *p, int amt)|
|void||player_safe_name (char *safe, size_t safelen, const char *name, bool strip_suffix)|
|Return a version of the player's name safe for use in filesystems. More...|
|static void||init_player (void)|
|Initialise player struct. More...|
|static void||cleanup_player (void)|
|Free player struct. More...|
|struct player *||player|
|Pointer to the player struct. More...|
|struct player_body *||bodies|
|struct player_race *||races|
|struct player_class *||classes|
|struct magic_realm *||realms|
|const s32b||player_exp [PY_MAX_LEVEL]|
|Base experience levels, may be adjusted up for race and/or class. More...|
|static const char *||stat_name_list |
Copyright (c) 2011 firstname.lastname@example.org@email@example.com@firstname.lastname@example.org@m..net. See COPYING.
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 buf, effect_simple(), player::exp, player::expfact, handle_stuff(), history_add(), player::lev, player::max_exp, player::max_lev, msgt(), NULL, player_exp, PR_EXP, PR_LEV, PR_STATS, PR_TITLE, PU_BONUS, PU_HP, PU_SPELLS, PY_MAX_EXP, PY_MAX_LEVEL, player_upkeep::redraw, source_none(), strnfmt(), player_upkeep::update, and player::upkeep.
Free player struct.
References player::body, player::cave, cave_free(), player_body::count, player::gear, player::gear_k, player::history, history_clear(), i, player_upkeep::inven, mem_free(), equip_slot::name, player_body::name, NULL, player::obj_k, object_free(), object_pile_free(), player_quests_free(), player_spells_free(), player::quests, player_upkeep::quiver, player_body::slots, player::spell_flags, string_free(), player::timed, and player::upkeep.
Initialise player struct.
References angband_constants::brand_max, object::brands, angband_constants::curse_max, object::curses, player_upkeep::inven, mem_zalloc(), player::obj_k, object_new(), options_init_defaults(), player::opts, angband_constants::pack_size, player_upkeep::quiver, angband_constants::quiver_size, angband_constants::slay_max, object::slays, player::timed, TMD_MAX, player::upkeep, and z_info.
Referenced by do_cmd_disarm_aux(), do_cmd_disarm_chest(), do_cmd_open_chest(), do_cmd_wiz_advance(), do_cmd_wiz_change_aux(), effect_handler_GAIN_EXP(), effect_handler_RESTORE_EXP(), get_debug_command(), mon_take_hit(), object_learn_on_use(), and spell_cast().
Return a version of the player's name safe for use in filesystems.
XXX This does not belong here.
|struct player_body* bodies|
|struct player_class* classes|
|struct init_module player_module|
|struct player_race* races|