![]() |
Crossfire Server, Trunk
1.75.0
|
One player. More...
#include <player.h>
Data Fields | |
living | applied_stats |
Stat changes due to gear or skills. More... | |
int16_t | bed_x |
int16_t | bed_y |
x,y - coordinates of respawn (savebed). More... | |
int8_t | blocked_los [MAP_CLIENT_X][MAP_CLIENT_Y] |
Array showing what spaces the player can see. More... | |
bowtype_t | bowtype |
Which firemode? More... | |
uint32_t | braced:1 |
Will not move if braced, only attack. More... | |
float | character_load |
Value between 0 and 1 indicating how much the character is overloaded. More... | |
uint32_t | count |
Any numbers typed before a command. More... | |
SockList ** | delayed_buffers |
Buffers which will be sent after the player's tick completes. More... | |
uint8_t | delayed_buffers_allocated |
Number of items in delayed_buffers_used. More... | |
uint8_t | delayed_buffers_used |
Used items in delayed_buffers_used. More... | |
int16_t | digestion |
Any bonuses/penalties to digestion. More... | |
uint32_t | do_los:1 |
If true, need to call update_los() in draw(), and clear. More... | |
int16_t | encumbrance |
How much our player is encumbered. More... | |
uint32_t | fire_on:1 |
Player should fire object, not move. More... | |
sstring | followed_player |
Player the DM is following. More... | |
int16_t | gen_grace |
Bonuses to regeneration speed of grace. More... | |
int16_t | gen_hp |
Bonuses to regeneration speed of hp. More... | |
int16_t | gen_sp |
Bonuses to regeneration speed of sp. More... | |
int16_t | gen_sp_armour |
Penalty to sp regen from armour. More... | |
uint32_t | golem_count |
To track the golem. More... | |
uint32_t | has_directory:1 |
If 0, the player was not yet saved, its directory doesn't exist. More... | |
uint32_t | has_hit:1 |
If set, weapon_sp instead of speed will count. More... | |
uint32_t | hidden:1 |
If True, player (DM) is hidden from view. More... | |
const char * | invis_race |
What race invisible to? More... | |
bool | is_old_wraith |
Whether this player is a "old" wraith, initialized at load time and updated when eating. More... | |
bool | is_wraith |
Whether this player is a wraith or not, initialized at load time. More... | |
int16_t | item_power |
Total item power of objects equipped. More... | |
char | killer [BIG_NAME] |
Who killed this player. More... | |
language_t | language |
The language the player wishes to use. More... | |
living | last_applied_stats |
Last applied stats sent to the client. More... | |
uint32_t | last_character_flags |
Last character flags (CS_STAT_CHARACTER_FLAGS) sent to client. More... | |
float | last_character_load |
Last value sent to the client. More... | |
tag_t | last_examined |
Tag of most recently 'examined object. More... | |
object * | last_exit |
Last exit used by player or NULL. More... | |
uint16_t | last_flags |
Fire/run on flags for last tick. More... | |
int16_t | last_golem_hp |
Last golem hp value sent to the client. More... | |
int16_t | last_golem_maxhp |
Last golem max hp value sent to the client. More... | |
uint16_t | last_item_power |
Last value for item_power. More... | |
int8_t | last_level |
Last level we sent to client. More... | |
living | last_orig_stats |
Last permanent stats sent to client. More... | |
uint32_t | last_path_attuned |
Last spell attunment sent to client. More... | |
uint32_t | last_path_denied |
Last spell denied sent to client. More... | |
uint32_t | last_path_repelled |
Last spell repelled sent to client. More... | |
living | last_race_stats |
Last race stats sent to the client. More... | |
int16_t | last_resist [NROFATTACKS] |
last resist values sent to client. More... | |
int64_t | last_skill_exp [MAX_SKILLS] |
Last exp sent to client. More... | |
object * | last_skill_ob [MAX_SKILLS] |
Exp objects sent to client. More... | |
float | last_speed |
Last speed as sent to client. More... | |
living | last_stats |
Last stats as sent to client. More... | |
char | last_tell [MAX_NAME] |
last player that told you something [mids 01/14/2002]. More... | |
float | last_weapon_sp |
if diff than weapon_sp, update client. More... | |
int32_t | last_weight |
Last weight as sent to client; -1 means do not send weight. More... | |
int32_t | last_weight_limit |
Last weight limit transmitted to client. More... | |
int8_t | levgrace [11] |
What grace bonus the player gained on that level. More... | |
int8_t | levhp [11] |
What hp bonus the player gained on that level. More... | |
int8_t | levsp [11] |
What sp bonus the player gained on that level. More... | |
uint8_t | listening |
Which priority will be used in info_all. More... | |
char | maplevel [MAX_BUF] |
On which level is the player? More... | |
object * | mark |
Marked object. More... | |
uint32_t | mark_count |
Count of marked object. More... | |
uint32_t | mode |
Mode of player for pickup. More... | |
uint32_t | name_changed:1 |
If true, the player has set a name. More... | |
char | new_password [16] |
2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16 More... | |
player * | next |
Pointer to next player, NULL if this is last. More... | |
uint32_t | no_shout:1 |
if True, player is *not *able to use shout command. More... | |
object * | ob |
The object representing the player. More... | |
living | orig_stats |
Permanent real stats of player. More... | |
char | own_title [MAX_NAME] |
Title the player has chosen for themself. More... | |
uint32_t | partial_commands:1 |
If 1, then first letters of a command are enough if no ambiguity in name. More... | |
partylist * | party |
Party this player is part of. More... | |
partylist * | party_to_join |
Used when player wants to join a party but we will have to get password first so we have to remember which party to join. More... | |
char | password [16] |
2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16 More... | |
uint32_t | peaceful:1 |
If set, won't attack friendly creatures. More... | |
petmode_t | petmode |
Which petmode? More... | |
object * | ranges [range_size] |
Object for each range. More... | |
party_rejoin_mode | rejoin_party |
Whether to rejoin or not party at login. More... | |
uint32_t | run_on:1 |
Player should keep moving in dir until run is off. More... | |
char | savebed_map [MAX_BUF] |
Map where player will respawn after death. More... | |
char | search_str [MAX_BUF] |
Item we are looking for. More... | |
rangetype | shoottype |
Which range-attack is being used by player. More... | |
socket_struct * | socket |
Socket information for this player. More... | |
client_spell * | spell_state |
Spell information sent to client. More... | |
char | spellparam [MAX_BUF] |
What param to add to spells. More... | |
tag_t * | stack_items |
Item stack for patch/dump/... More... | |
int | stack_position |
Current stack position, 0 for no item. More... | |
uint8_t | state |
Input state of the player (name, password, etc). More... | |
int | swap_first |
First stat player has selected to swap. More... | |
uint32_t | ticks_played |
How many ticks this player has played. More... | |
char | title [BIG_NAME] |
Default title, like fighter, wizard, etc. More... | |
uint32_t | tmp_invis:1 |
Will invis go away when we attack? More... | |
object * | transport |
Transport the player is in. More... | |
unapplymode | unapply |
Method for auto unapply. More... | |
const char * | unarmed_skill |
Prefered skill to use in unarmed combat. More... | |
usekeytype | usekeys |
Method for finding keys for doors. More... | |
living player::applied_stats |
Stat changes due to gear or skills.
Definition at line 171 of file player.h.
Referenced by esrv_update_stats(), and fix_object().
int16_t player::bed_x |
Definition at line 111 of file player.h.
Referenced by apply_savebed(), cast_word_of_recall(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), create_player_cmd(), enter_exit(), enter_player_savebed(), key_change_class(), player_changer_type_process(), and save_player().
int16_t player::bed_y |
x,y - coordinates of respawn (savebed).
Definition at line 111 of file player.h.
Referenced by apply_savebed(), cast_word_of_recall(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), create_player_cmd(), enter_exit(), enter_player_savebed(), key_change_class(), player_changer_type_process(), and save_player().
int8_t player::blocked_los[MAP_CLIENT_X][MAP_CLIENT_Y] |
Array showing what spaces the player can see.
For maps smaller than MAP_CLIENT_.., the upper left is used.
Definition at line 178 of file player.h.
Referenced by blinded_sight(), check_wall(), clear_los(), draw_client_map2(), expand_lighted_sight(), expand_sight(), make_sure_seen(), player_can_see(), player_can_view(), print_los(), set_wall(), and update_los().
bowtype_t player::bowtype |
Which firemode?
Definition at line 114 of file player.h.
Referenced by check_login(), command_bowmode(), fire_bow(), get_player(), player_fire_bow(), and save_player().
uint32_t player::braced |
Will not move if braced, only attack.
Definition at line 139 of file player.h.
Referenced by add_player_exp(), command_brace(), fix_player(), kill_player(), kill_player_not_permadeath(), and move_player_attack().
float player::character_load |
Value between 0 and 1 indicating how much the character is overloaded.
Definition at line 135 of file player.h.
Referenced by fix_player(), and send_extra_stats().
uint32_t player::count |
Any numbers typed before a command.
Definition at line 122 of file player.h.
Referenced by cfapi_object_drop(), cfapi_object_get_property(), command_create(), command_drop(), command_dropall(), command_take(), dimension_door(), drop(), enter_map(), esrv_move_object(), new_player_cmd(), object_matches_string(), and pick_up().
SockList** player::delayed_buffers |
Buffers which will be sent after the player's tick completes.
Definition at line 226 of file player.h.
Referenced by clear_player(), player_get_delayed_buffer(), and send_delayed_buffers().
uint8_t player::delayed_buffers_allocated |
Number of items in delayed_buffers_used.
Definition at line 224 of file player.h.
Referenced by clear_player(), and player_get_delayed_buffer().
uint8_t player::delayed_buffers_used |
Used items in delayed_buffers_used.
Definition at line 225 of file player.h.
Referenced by clear_player(), player_get_delayed_buffer(), and send_delayed_buffers().
int16_t player::digestion |
Any bonuses/penalties to digestion.
Definition at line 125 of file player.h.
Referenced by check_login(), describe_monster(), fix_object(), and save_player().
uint32_t player::do_los |
If true, need to call update_los() in draw(), and clear.
Definition at line 141 of file player.h.
Referenced by change_abil(), draw_client_map(), get_player(), make_sure_not_seen(), object_insert_in_map(), update_all_los(), and update_all_map_los().
int16_t player::encumbrance |
How much our player is encumbered.
Definition at line 196 of file player.h.
Referenced by cast_spell(), and fix_object().
uint32_t player::fire_on |
Player should fire object, not move.
Definition at line 142 of file player.h.
Referenced by command_fire(), command_fire_stop(), command_stay(), esrv_update_stats(), face_player(), handle_newcs_player(), move_internal(), and move_player().
sstring player::followed_player |
Player the DM is following.
Definition at line 218 of file player.h.
Referenced by command_follow(), do_follow(), enter_unique_map(), and process_players1().
int16_t player::gen_grace |
Bonuses to regeneration speed of grace.
Definition at line 129 of file player.h.
Referenced by check_login(), describe_monster(), fix_object(), and save_player().
int16_t player::gen_hp |
Bonuses to regeneration speed of hp.
Definition at line 126 of file player.h.
Referenced by check_login(), describe_monster(), do_some_living(), fix_object(), and save_player().
int16_t player::gen_sp |
Bonuses to regeneration speed of sp.
Definition at line 127 of file player.h.
Referenced by check_login(), describe_monster(), do_some_living(), fix_object(), and save_player().
int16_t player::gen_sp_armour |
Penalty to sp regen from armour.
Definition at line 128 of file player.h.
Referenced by fix_object(), and get_player().
uint32_t player::golem_count |
To track the golem.
Definition at line 119 of file player.h.
Referenced by animate_weapon(), command_cast_spell(), do_mood_floor(), enter_map(), esrv_update_stats(), fire(), handle_newcs_player(), kill_object(), kill_player_permadeath(), legal_range(), pets_move_golem(), pets_summon_golem(), and pets_terminate().
uint32_t player::has_directory |
If 0, the player was not yet saved, its directory doesn't exist.
Definition at line 149 of file player.h.
Referenced by check_login(), knowledge_give(), quest_set_state(), and save_player().
uint32_t player::has_hit |
If set, weapon_sp instead of speed will count.
Definition at line 144 of file player.h.
Referenced by command_execute(), move_player_attack(), and process_players2().
uint32_t player::hidden |
If True, player (DM) is hidden from view.
Definition at line 147 of file player.h.
Referenced by cast_invisible(), command_nowiz(), command_reply(), command_teleport(), do_tell(), do_wizard_hide(), find_player_options(), handle_newcs_player(), leave(), list_players(), monster_can_detect_enemy(), object_insert_in_map(), object_remove(), steal(), and unhide().
const char* player::invis_race |
What race invisible to?
Definition at line 151 of file player.h.
Referenced by cast_invisible(), make_visible(), and makes_invisible_to().
bool player::is_old_wraith |
Whether this player is a "old" wraith, initialized at load time and updated when eating.
Definition at line 228 of file player.h.
Referenced by check_login(), and is_old_wraith_pl().
bool player::is_wraith |
Whether this player is a wraith or not, initialized at load time.
Definition at line 227 of file player.h.
Referenced by apply_race_and_class(), check_login(), food_type_apply(), is_wraith_pl(), and key_change_class().
int16_t player::item_power |
Total item power of objects equipped.
Definition at line 130 of file player.h.
Referenced by apply_check_item_power(), fix_object(), improve_armour(), improve_weapon(), send_extra_stats(), and show_skills().
char player::killer[BIG_NAME] |
Who killed this player.
Definition at line 190 of file player.h.
Referenced by apply_savebed(), check_heal_and_mana(), draw_one_high_score(), get_score(), gravestone_text(), hiscore_check(), key_confirm_quit(), kill_object(), kill_player(), kill_player_not_permadeath(), leave(), poison_type_apply(), and put_score().
language_t player::language |
The language the player wishes to use.
Definition at line 220 of file player.h.
Referenced by check_login(), command_help(), command_language(), get_player(), help_topics(), i18n(), and save_player().
living player::last_applied_stats |
Last applied stats sent to the client.
Definition at line 172 of file player.h.
Referenced by esrv_update_stats(), and get_player().
uint32_t player::last_character_flags |
Last character flags (CS_STAT_CHARACTER_FLAGS) sent to client.
Definition at line 163 of file player.h.
Referenced by get_player(), and send_extra_stats().
float player::last_character_load |
Last value sent to the client.
Definition at line 136 of file player.h.
Referenced by get_player(), and send_extra_stats().
tag_t player::last_examined |
object* player::last_exit |
Last exit used by player or NULL.
Definition at line 208 of file player.h.
Referenced by clear_player(), do_follow(), and enter_exit().
uint16_t player::last_flags |
Fire/run on flags for last tick.
Definition at line 157 of file player.h.
Referenced by esrv_update_stats().
int16_t player::last_golem_hp |
Last golem hp value sent to the client.
Definition at line 175 of file player.h.
Referenced by esrv_update_stats().
int16_t player::last_golem_maxhp |
Last golem max hp value sent to the client.
Definition at line 176 of file player.h.
Referenced by esrv_update_stats().
uint16_t player::last_item_power |
Last value for item_power.
Definition at line 164 of file player.h.
Referenced by get_player(), and send_extra_stats().
int8_t player::last_level |
Last level we sent to client.
Definition at line 134 of file player.h.
Referenced by esrv_update_stats().
living player::last_orig_stats |
Last permanent stats sent to client.
Definition at line 169 of file player.h.
Referenced by esrv_update_stats().
uint32_t player::last_path_attuned |
Last spell attunment sent to client.
Definition at line 160 of file player.h.
Referenced by esrv_update_stats(), and get_player().
uint32_t player::last_path_denied |
Last spell denied sent to client.
Definition at line 162 of file player.h.
Referenced by esrv_update_stats(), and get_player().
uint32_t player::last_path_repelled |
Last spell repelled sent to client.
Definition at line 161 of file player.h.
Referenced by esrv_update_stats(), and get_player().
living player::last_race_stats |
Last race stats sent to the client.
Definition at line 170 of file player.h.
Referenced by esrv_update_stats().
int16_t player::last_resist[NROFATTACKS] |
last resist values sent to client.
Definition at line 174 of file player.h.
Referenced by esrv_update_stats(), and get_player().
int64_t player::last_skill_exp[MAX_SKILLS] |
Last exp sent to client.
If != exp. obj update client.
Definition at line 154 of file player.h.
Referenced by esrv_update_stats(), get_player(), and link_player_skills().
object* player::last_skill_ob[MAX_SKILLS] |
Exp objects sent to client.
Definition at line 153 of file player.h.
Referenced by esrv_update_stats(), find_applied_skill_by_name(), get_player(), link_player_skills(), and save_player().
float player::last_speed |
Last speed as sent to client.
Definition at line 173 of file player.h.
Referenced by esrv_update_stats(), and get_player().
living player::last_stats |
Last stats as sent to client.
Definition at line 168 of file player.h.
Referenced by esrv_update_stats(), and get_player().
char player::last_tell[MAX_NAME] |
last player that told you something [mids 01/14/2002].
Definition at line 191 of file player.h.
Referenced by command_reply(), and do_tell().
float player::last_weapon_sp |
if diff than weapon_sp, update client.
Definition at line 156 of file player.h.
Referenced by esrv_update_stats(), and get_player().
int32_t player::last_weight |
Last weight as sent to client; -1 means do not send weight.
Definition at line 158 of file player.h.
Referenced by esrv_new_player(), esrv_update_item(), get_player(), and send_updates().
int32_t player::last_weight_limit |
Last weight limit transmitted to client.
Definition at line 159 of file player.h.
Referenced by esrv_update_stats(), and get_player().
int8_t player::levgrace[11] |
What grace bonus the player gained on that level.
Definition at line 188 of file player.h.
Referenced by check_login(), fix_player(), is_perfect(), player_lvl_adj(), potion_type_apply(), roll_stats(), save_player(), and swap_stat().
int8_t player::levhp[11] |
What hp bonus the player gained on that level.
Definition at line 186 of file player.h.
Referenced by check_login(), fix_player(), is_perfect(), player_lvl_adj(), potion_type_apply(), roll_stats(), save_player(), and swap_stat().
int8_t player::levsp[11] |
What sp bonus the player gained on that level.
Definition at line 187 of file player.h.
Referenced by check_login(), fix_player(), is_perfect(), player_lvl_adj(), potion_type_apply(), roll_stats(), save_player(), and swap_stat().
uint8_t player::listening |
Which priority will be used in info_all.
Definition at line 133 of file player.h.
Referenced by check_login(), command_listen(), do_tell(), draw_ext_info(), get_player(), and save_player().
char player::maplevel[MAX_BUF] |
On which level is the player?
Definition at line 109 of file player.h.
Referenced by account_char_add(), check_login(), draw_one_high_score(), emergency_save(), enter_map(), enter_player_maplevel(), get_score(), kill_player_permadeath(), put_score(), and set_first_map().
object* player::mark |
Marked object.
Definition at line 213 of file player.h.
Referenced by cfapi_object_set_property(), command_mark(), find_marked_object(), inscribe_scroll_cmd(), lightable_type_apply(), and mark_item_cmd().
uint32_t player::mark_count |
Count of marked object.
Definition at line 212 of file player.h.
Referenced by cfapi_object_set_property(), command_mark(), find_marked_object(), inscribe_scroll_cmd(), lightable_type_apply(), and mark_item_cmd().
uint32_t player::mode |
Mode of player for pickup.
Definition at line 123 of file player.h.
Referenced by check_login(), check_pick(), command_pickup(), display_new_pickup(), esrv_send_pickup(), kill_player_not_permadeath(), save_player(), and set_pickup_mode().
uint32_t player::name_changed |
If true, the player has set a name.
Definition at line 145 of file player.h.
Referenced by check_login(), create_player_cmd(), hiscore_check(), receive_player_name(), and save_player().
char player::new_password[16] |
2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16
Definition at line 194 of file player.h.
Referenced by receive_player_password().
player* player::next |
Pointer to next player, NULL if this is last.
Definition at line 106 of file player.h.
Referenced by account_play_cmd(), cfapi_object_get_property(), cfapi_object_set_property(), cfapi_party_get_property(), cfapi_system_get_object_vector(), check_all_fds(), check_login(), command_abil(), command_addexp(), command_kick2(), command_recollect(), command_reset(), command_whereabouts(), count_players(), create_player_cmd(), do_server(), draw_ext_info(), emergency_save(), ext_info_map(), ext_info_map_except(), ext_info_map_except2(), find_player_options(), find_player_socket(), fix_luck(), fix_weight(), free_player(), get_dialog_message(), get_nearest_criminal(), get_nearest_player(), get_other_player_from_name(), get_player(), is_legal_2ways_exit(), knowledge_process_incremental(), list_players(), make_sure_not_seen(), make_sure_seen(), malloc_info(), object_decrease_nrof(), object_increase_nrof(), parse_dialog_information(), party_remove(), party_send_message(), play_sound_map(), process_players1(), process_players2(), remove_if_unused(), ring_bell(), save_and_kick_all_players(), send_changed_object(), share_exp(), update_all_los(), update_all_map_los(), update_players(), and verify_player().
uint32_t player::no_shout |
if True, player is *not *able to use shout command.
Definition at line 148 of file player.h.
Referenced by check_login(), command_tell_all(), command_toggle_shout(), get_player(), and save_player().
object* player::ob |
The object representing the player.
Definition at line 177 of file player.h.
Referenced by account_char_add(), account_play_cmd(), add_player(), append_spell(), apply_cmd(), basic_emote(), can_follow(), cfapi_object_get_property(), cfapi_object_move(), cfapi_object_set_property(), cflogger_globalEventListener(), cfpython_globalEventListener(), check_login(), check_name(), command_abil(), command_addexp(), command_arrest(), command_banish(), command_follow(), command_freeze(), command_kick2(), command_possess(), command_quest(), command_reply(), command_reset(), command_stats(), command_summon(), command_teleport(), command_toggle_shout(), command_whereabouts(), create_player_cmd(), Crossfire_Party_GetPlayers(), dm_stack_peek(), dm_stack_pop(), dm_stack_push(), do_follow(), do_server(), do_tell(), draw_ext_info(), emergency_save(), esrv_add_spells(), esrv_del_item(), esrv_new_player(), esrv_remove_spell(), esrv_update_spells(), esrv_update_stats(), examine_cmd(), ext_info_map(), ext_info_map_except(), ext_info_map_except2(), find_player_options(), findPlayer(), fix_luck(), fix_weight(), free_player(), get_dm_object(), get_nearest_player(), get_or_create_quest(), get_other_player_from_name(), get_player(), get_quest(), get_who_escape_code_value(), globalEventListener(), handle_client(), inscribe_scroll_cmd(), is_legal_2ways_exit(), is_perfect(), knowledge_alchemy_attempt(), knowledge_first_player_save(), knowledge_get_or_create(), knowledge_give(), knowledge_process_incremental(), leave(), list_players(), lock_item_cmd(), look_at_cmd(), make_sure_not_seen(), make_sure_seen(), mark_item_cmd(), move_cmd(), new_player_cmd(), object_decrease_nrof(), object_increase_nrof(), play_sound_map(), play_sound_player_only(), player_get_delayed_buffer(), process_players1(), process_players2(), quest_display(), quest_info(), quest_list(), quest_set_state(), quest_start(), receive_play_again(), reply_cmd(), ring_bell(), save_player(), send_changed_object(), send_extra_stats(), send_updates(), set_up_cmd(), share_exp(), transport_type_apply(), update_all_los(), update_all_map_los(), and verify_player().
living player::orig_stats |
Permanent real stats of player.
Definition at line 167 of file player.h.
Referenced by add_statbonus(), apply_changes_to_player(), apply_race_and_class(), change_abil(), check_login(), command_abil(), command_statistics(), esrv_update_stats(), fix_object(), key_change_class(), kill_player_not_permadeath(), remove_statbonus(), roll_stats(), save_player(), and swap_stat().
char player::own_title[MAX_NAME] |
Title the player has chosen for themself.
Note that for dragon players, this is filled in for them.
Definition at line 182 of file player.h.
Referenced by player_get_own_title(), player_get_title(), player_has_own_title(), player_set_dragon_title(), and player_set_own_title().
uint32_t player::partial_commands |
If 1, then first letters of a command are enough if no ambiguity in name.
Definition at line 150 of file player.h.
Referenced by check_login(), command_find(), command_partial_commands(), and save_player().
partylist* player::party |
Party this player is part of.
Definition at line 203 of file player.h.
Referenced by account_char_add(), add_labels(), attempt_jump(), can_follow(), cfapi_object_get_property(), check_login(), command_party(), get_player(), is_legal_2ways_exit(), kill_object(), list_players(), move_player_attack(), party_form(), party_join(), party_leave(), party_remove(), pets_should_arena_attack(), push_ob(), save_player(), share_exp(), and skill_attack().
partylist* player::party_to_join |
Used when player wants to join a party but we will have to get password first so we have to remember which party to join.
Definition at line 204 of file player.h.
Referenced by confirm_party_password(), get_party_password(), and receive_party_password().
char player::password[16] |
2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16
Definition at line 193 of file player.h.
Referenced by check_login(), create_player_cmd(), receive_play_again(), receive_player_password(), and save_player().
uint32_t player::peaceful |
If set, won't attack friendly creatures.
Definition at line 146 of file player.h.
Referenced by check_login(), command_peaceful(), command_statistics(), friendly_fire(), get_player(), get_who_escape_code_value(), is_enemy(), kill_object(), move_player_attack(), save_player(), and send_extra_stats().
petmode_t player::petmode |
Which petmode?
Definition at line 115 of file player.h.
Referenced by check_login(), command_petmode(), get_player(), pets_get_enemy(), pets_move(), pets_should_arena_attack(), and save_player().
object* player::ranges[range_size] |
Object for each range.
Set up in fix_object(). Note That not all are used, it is just nice to map this 1:1 With the range names.
Definition at line 116 of file player.h.
Referenced by animate_weapon(), apply_map_builder(), apply_special(), apply_update_ranged_skill(), clear_skill(), command_cast_spell(), do_mood_floor(), enter_map(), esrv_update_stats(), fire(), fire_bow(), fire_misc_object(), fix_object(), handle_newcs_player(), inscribe_scroll_cmd(), kill_object(), kill_player_permadeath(), legal_range(), pets_move_golem(), pets_summon_golem(), pets_terminate(), player_fire_bow(), player_unready_range_ob(), rangetostring(), send_updated_shoottype(), unapply_special(), and write_scroll().
party_rejoin_mode player::rejoin_party |
Whether to rejoin or not party at login.
Definition at line 210 of file player.h.
Referenced by check_login(), command_party_rejoin(), get_player(), and save_player().
uint32_t player::run_on |
Player should keep moving in dir until run is off.
Definition at line 143 of file player.h.
Referenced by command_run(), command_run_stop(), do_hidden_move(), esrv_update_stats(), face_player(), handle_newcs_player(), move_internal(), move_player(), player_attack_door(), and push_ob().
char player::savebed_map[MAX_BUF] |
Map where player will respawn after death.
Definition at line 110 of file player.h.
Referenced by apply_savebed(), cast_word_of_recall(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), create_player_cmd(), enter_exit(), enter_player_savebed(), get_player(), key_change_class(), player_changer_type_process(), and save_player().
char player::search_str[MAX_BUF] |
Item we are looking for.
Definition at line 211 of file player.h.
Referenced by check_login(), check_pick(), command_search_items(), fix_player(), and kill_player_not_permadeath().
rangetype player::shoottype |
Which range-attack is being used by player.
Definition at line 112 of file player.h.
Referenced by animate_weapon(), apply_special(), apply_update_ranged_skill(), cast_spell(), change_skill(), check_login(), clear_skill(), command_cast_spell(), command_rotateshoottype(), command_shoottype(), fire(), get_player(), pets_summon_golem(), player_unready_range_ob(), rangetostring(), save_player(), send_updated_shoottype(), and unapply_special().
socket_struct* player::socket |
Socket information for this player.
See the page on the login process for a description of its use.
Definition at line 107 of file player.h.
Referenced by account_play_cmd(), add_labels(), alchemy(), annotate_ob(), append_spell(), apply_cmd(), apply_container(), apply_race_and_class(), apply_savebed(), attempt_jump(), blinded_sight(), book_type_apply(), cfapi_object_drop(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), check_wall(), command_banish(), command_delete(), command_dropall(), command_kick2(), command_passwd(), command_sound(), confirm_password(), create_player_cmd(), dimension_door(), do_follow(), do_server(), do_wizard_dm(), draw_client_map(), draw_client_map2(), draw_ext_info(), draw_magic_map(), enter_map(), esrv_add_spells(), esrv_del_item(), esrv_draw_look(), esrv_new_player(), esrv_remove_spell(), esrv_send_inventory(), esrv_send_item(), esrv_send_pickup(), esrv_update_item(), esrv_update_spells(), esrv_update_stats(), expand_lighted_sight(), expand_sight(), final_free_player(), find_player_socket(), get_name(), get_party_password(), get_password(), get_who_escape_code_value(), key_change_class(), key_confirm_quit(), key_roll_stat(), kill_object(), kill_player_permadeath(), knowledge_get_or_create(), knowledge_process_incremental(), knowledge_send_known(), leave(), list_players(), make_perma_dead(), make_sure_not_seen(), make_sure_seen(), move_ob(), new_player_cmd(), object_insert_in_map(), object_teleport(), object_update(), play_again(), play_sound_player_only(), player_can_see(), player_can_view(), print_los(), process_players1(), push_ob(), put_object_in_sack(), quest_send_initial_states(), quest_set_state(), receive_play_again(), receive_player_password(), roll_again(), save_player(), send_background_music(), send_changed_object(), send_delayed_buffers(), send_extra_stats(), send_plugin_custom_message(), send_tick(), send_updates(), set_player_socket(), set_wall(), shop_mat_type_move_on(), spellbook_type_apply(), teleport(), transfer_ob(), transport_type_apply(), update_all_los(), update_los(), update_players(), and wrong_password().
client_spell* player::spell_state |
Spell information sent to client.
Definition at line 215 of file player.h.
Referenced by clear_player(), esrv_update_spells(), and get_client_spell_state().
char player::spellparam[MAX_BUF] |
What param to add to spells.
Definition at line 113 of file player.h.
Referenced by check_login(), command_cast_spell(), and fire().
tag_t* player::stack_items |
Item stack for patch/dump/...
commands.
Definition at line 217 of file player.h.
Referenced by clear_player(), command_diff(), command_insert_into(), command_stack_list(), dm_stack_peek(), dm_stack_pop(), dm_stack_push(), and get_dm_object().
int player::stack_position |
Current stack position, 0 for no item.
Definition at line 219 of file player.h.
Referenced by clear_player(), command_diff(), command_insert_into(), command_stack_clear(), command_stack_list(), dm_stack_peek(), dm_stack_pop(), dm_stack_push(), and get_dm_object().
uint8_t player::state |
Input state of the player (name, password, etc).
See the page on the login process for a description of its use.
Definition at line 131 of file player.h.
Referenced by account_play_cmd(), check_login(), do_some_living(), fix_luck(), get_other_player_from_name(), handle_client(), handle_cmd(), knowledge_process_incremental(), leave(), list_players(), new_player_cmd(), player_set_state(), process_players1(), receive_player_password(), reply_cmd(), save_player(), and update_players().
int player::swap_first |
First stat player has selected to swap.
Definition at line 166 of file player.h.
Referenced by get_player(), key_roll_stat(), and swap_stat().
uint32_t player::ticks_played |
How many ticks this player has played.
Definition at line 222 of file player.h.
Referenced by check_login(), command_statistics(), get_player(), process_players1(), and save_player().
char player::title[BIG_NAME] |
Default title, like fighter, wizard, etc.
Definition at line 184 of file player.h.
Referenced by apply_race_and_class(), check_login(), draw_one_high_score(), get_message_title(), get_player(), get_score(), gravestone_text(), improve_armour(), key_change_class(), kill_object(), kill_player(), kill_player_not_permadeath(), player_get_title(), player_set_dragon_title(), put_score(), and MessageWriter::write().
uint32_t player::tmp_invis |
Will invis go away when we attack?
Definition at line 140 of file player.h.
Referenced by action_makes_visible(), attempt_hide(), cast_invisible(), do_skill_attack(), make_visible(), monster_can_detect_enemy(), and move_player_attack().
object* player::transport |
Transport the player is in.
Definition at line 214 of file player.h.
Referenced by apply_by_living_below(), attempt_jump(), cast_create_town_portal(), cfapi_object_get_property(), command_reset(), dimension_door(), draw_client_map(), enter_exit(), esrv_draw_look(), esrv_get_ob_from_count(), esrv_move_object(), face_player(), leave(), move_player(), move_player_attack(), object_insert_in_map(), and transport_type_apply().
unapplymode player::unapply |
Method for auto unapply.
Definition at line 121 of file player.h.
Referenced by apply_check_apply_restrictions(), check_login(), command_applymode(), get_player(), and save_player().
const char* player::unarmed_skill |
Prefered skill to use in unarmed combat.
Definition at line 221 of file player.h.
Referenced by check_login(), clear_player(), command_unarmed_skill(), find_best_player_hth_skill(), get_player(), and save_player().
usekeytype player::usekeys |
Method for finding keys for doors.
Definition at line 120 of file player.h.
Referenced by check_login(), command_usekeys(), find_key(), and save_player().