Crossfire Server, Branches 1.12
R18729
|
#include <player.h>
sint16 pl::bed_x |
Definition at line 152 of file player.h.
Referenced by apply_savebed(), cast_word_of_recall(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), enter_exit(), enter_player_savebed(), key_change_class(), player_changer_type_process(), and save_player().
sint16 pl::bed_y |
x,y - coordinates of respawn (savebed).
Definition at line 152 of file player.h.
Referenced by apply_savebed(), cast_word_of_recall(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), enter_exit(), enter_player_savebed(), key_change_class(), player_changer_type_process(), and save_player().
sint8 pl::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 210 of file player.h.
Referenced by blinded_sight(), check_wall(), clear_los(), draw_client_map2(), expand_lighted_sight(), expand_sight(), look_at_cmd(), make_sure_seen(), player_can_view(), print_los(), set_wall(), and update_los().
bowtype_t pl::bowtype |
Which firemode?
Definition at line 155 of file player.h.
Referenced by check_login(), command_bowmode(), fire_bow(), get_player(), player_fire_bow(), and save_player().
uint32 pl::braced |
Will not move if braced, only attack.
Definition at line 178 of file player.h.
Referenced by add_player_exp(), command_brace(), fix_object(), kill_player(), and move_player_attack().
uint32 pl::count |
Any numbers typed before a command.
Definition at line 163 of file player.h.
Referenced by cfapi_object_drop(), command_create(), command_drop(), command_dropall(), dimension_door(), drop(), enter_map(), esrv_move_object(), item_matched_string(), new_player_cmd(), and pick_up().
sint16 pl::digestion |
Any bonuses/penalties to digestion.
Definition at line 166 of file player.h.
Referenced by check_login(), describe_monster(), fix_object(), and save_player().
uint32 pl::do_los |
If true, need to call update_los() in draw(), and clear.
Definition at line 180 of file player.h.
Referenced by change_abil(), draw_client_map(), get_player(), insert_ob_in_map(), make_sure_not_seen(), move_ob(), turn_one_transport(), update_all_los(), and update_all_map_los().
sint16 pl::encumbrance |
How much our player is encumbered.
Definition at line 230 of file player.h.
Referenced by cast_spell(), and fix_object().
uint32 pl::explore |
if True, player is in explore mode.
Definition at line 187 of file player.h.
Referenced by check_login(), check_score(), command_explore(), get_player(), kill_player(), and save_player().
uint32 pl::fire_on |
Player should fire object, not move.
Definition at line 181 of file player.h.
Referenced by command_fire(), command_fire_stop(), command_stay(), esrv_update_stats(), handle_newcs_player(), move_internal(), move_player(), and move_player_mover().
sstring pl::followed_player |
Player the DM is following.
Definition at line 253 of file player.h.
Referenced by command_follow(), command_nowiz(), and process_players1().
sint16 pl::gen_grace |
Bonuses to regeneration speed of grace.
Definition at line 170 of file player.h.
Referenced by check_login(), describe_monster(), fix_object(), and save_player().
sint16 pl::gen_hp |
Bonuses to regeneration speed of hp.
Definition at line 167 of file player.h.
Referenced by check_login(), describe_monster(), do_some_living(), fix_object(), and save_player().
sint16 pl::gen_sp |
Bonuses to regeneration speed of sp.
Definition at line 168 of file player.h.
Referenced by check_login(), describe_monster(), do_some_living(), fix_object(), and save_player().
sint16 pl::gen_sp_armour |
Penalty to sp regen from armour.
Definition at line 169 of file player.h.
Referenced by fix_object(), and get_player().
uint32 pl::golem_count |
To track the golem.
Definition at line 160 of file player.h.
Referenced by animate_weapon(), command_cast_spell(), do_mood_floor(), enter_map(), fire(), handle_newcs_player(), kill_object(), kill_player(), legal_range(), move_golem(), and summon_golem().
uint32 pl::has_hit |
If set, weapon_sp instead of speed will count.
Definition at line 183 of file player.h.
Referenced by execute_newserver_command(), move_player_attack(), and process_players2().
uint32 pl::hidden |
If True, player (DM) is hidden from view.
Definition at line 186 of file player.h.
Referenced by attempt_jump(), basic_emote(), blocked_link(), can_detect_enemy(), cast_invisible(), command_nowiz(), command_reply(), command_teleport(), do_tell(), do_wizard_hide(), handle_newcs_player(), insert_ob_in_map(), leave(), list_players(), metaserver_update(), players_on_map(), remove_ob(), stand_near_hostile(), steal(), and update_position().
const char* pl::invis_race |
What race invisible to?
Definition at line 189 of file player.h.
Referenced by cast_invisible(), make_visible(), and makes_invisible_to().
sint16 pl::item_power |
Total item power of objects equipped.
Definition at line 171 of file player.h.
Referenced by apply_special(), fix_object(), improve_armour(), improve_weapon(), and show_skills().
char pl::killer[BIG_NAME] |
Who killed this player.
Definition at line 222 of file player.h.
Referenced by apply_savebed(), check_score(), command_kick(), deep_swamp_type_process(), eat_special_food(), gravestone_text(), key_confirm_quit(), kill_object(), kill_player(), and poison_type_apply().
int pl::language |
The language the player wishes to use.
Definition at line 255 of file player.h.
Referenced by check_login(), command_language(), get_language(), get_player(), and save_player().
uint16 pl::last_flags |
Fire/run on flags for last tick.
Definition at line 196 of file player.h.
Referenced by esrv_update_stats().
sint8 pl::last_level |
Last level we sent to client.
Definition at line 175 of file player.h.
Referenced by esrv_update_stats(), and save_player().
uint32 pl::last_path_attuned |
Last spell attunment sent to client.
Definition at line 199 of file player.h.
Referenced by esrv_update_stats().
uint32 pl::last_path_denied |
Last spell denied sent to client.
Definition at line 201 of file player.h.
Referenced by esrv_update_stats().
uint32 pl::last_path_repelled |
Last spell repelled sent to client.
Definition at line 200 of file player.h.
Referenced by esrv_update_stats().
sint16 pl::last_resist[NROFATTACKS] |
last resist values sent to client.
Definition at line 206 of file player.h.
Referenced by esrv_update_stats(), and get_player().
sint64 pl::last_skill_exp[NUM_SKILLS] |
Last exp sent to client. If != exp. obj update client.
Definition at line 192 of file player.h.
Referenced by esrv_update_stats(), get_player(), give_skill_by_name(), and link_player_skills().
object* pl::last_skill_ob[NUM_SKILLS] |
Exp objects sent to client.
Definition at line 191 of file player.h.
Referenced by add_player_exp(), caster_level(), esrv_update_stats(), get_player(), give_skill_by_name(), kill_object(), and link_player_skills().
float pl::last_speed |
Last speed as sent to client.
Definition at line 205 of file player.h.
Referenced by esrv_update_stats(), and get_player().
living pl::last_stats |
Last stats as sent to client.
Definition at line 204 of file player.h.
Referenced by esrv_update_stats(), and get_player().
char pl::last_tell[MAX_NAME] |
last player that told you something [mids 01/14/2002].
Definition at line 223 of file player.h.
Referenced by command_reply(), and do_tell().
object* pl::last_used |
Pointer to object last picked or applied.
Definition at line 208 of file player.h.
Referenced by drop(), and player_apply().
uint32 pl::last_used_id |
Safety measures to be sure it's the same.
Definition at line 209 of file player.h.
Referenced by drop(), and player_apply().
float pl::last_weapon_sp |
if diff than weapon_sp, update client.
Definition at line 195 of file player.h.
Referenced by esrv_update_stats(), and get_player().
sint32 pl::last_weight |
Last weight as sent to client; -1 means do not send weight.
Definition at line 197 of file player.h.
Referenced by do_server(), esrv_new_player(), esrv_update_item(), and get_player().
sint32 pl::last_weight_limit |
Last weight limit transmitted to client.
Definition at line 198 of file player.h.
Referenced by esrv_update_stats().
sint8 pl::levgrace[11] |
What grace bonus the player gained on that level.
Definition at line 220 of file player.h.
Referenced by check_login(), fix_object(), player_lvl_adj(), potion_type_apply(), roll_stats(), save_player(), and swap_stat().
sint8 pl::levhp[11] |
What hp bonus the player gained on that level.
Definition at line 218 of file player.h.
Referenced by check_login(), fix_object(), player_lvl_adj(), potion_type_apply(), roll_stats(), save_player(), and swap_stat().
sint8 pl::levsp[11] |
What sp bonus the player gained on that level.
Definition at line 219 of file player.h.
Referenced by check_login(), fix_object(), player_lvl_adj(), potion_type_apply(), roll_stats(), save_player(), and swap_stat().
uint8 pl::listening |
Which priority will be used in info_all.
Definition at line 174 of file player.h.
Referenced by check_login(), command_listen(), do_tell(), draw_ext_info(), get_player(), and save_player().
char pl::maplevel[MAX_BUF] |
On which level is the player?
Definition at line 150 of file player.h.
Referenced by check_login(), emergency_save(), enter_exit(), enter_map(), kill_player(), and set_first_map().
object* pl::mark |
Marked object.
Definition at line 248 of file player.h.
Referenced by cfapi_object_set_property(), command_mark(), find_marked_object(), inscribe_scroll_cmd(), and mark_item_cmd().
uint32 pl::mark_count |
Count of marked object.
Definition at line 247 of file player.h.
Referenced by cfapi_object_set_property(), command_mark(), find_marked_object(), inscribe_scroll_cmd(), and mark_item_cmd().
uint32 pl::mode |
Mode of player for pickup.
Definition at line 164 of file player.h.
Referenced by check_login(), check_pick(), command_pickup(), display_new_pickup(), esrv_send_pickup(), save_player(), and set_pickup_mode().
uint32 pl::name_changed |
If true, the player has set a name.
Definition at line 184 of file player.h.
Referenced by check_login(), check_score(), receive_player_name(), save_player(), and start_info().
char pl::new_password[16] |
2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16
Definition at line 228 of file player.h.
Referenced by receive_player_password().
struct pl* pl::next |
Pointer to next player, NULL if this is last.
Definition at line 147 of file player.h.
Referenced by basic_emote(), cfapi_object_get_property(), cfapi_object_set_property(), cfapi_party_get_property(), check_login(), command_abil(), command_addexp(), command_explore(), command_kick(), command_party(), command_reset(), command_whereabouts(), decrease_ob_nr(), do_server(), draw_ext_info(), emergency_save(), ext_info_map(), ext_info_map_except(), ext_info_map_except2(), find_player(), find_player_partial_name(), fix_luck(), fix_weight(), free_player(), get_nearest_player(), get_other_player_from_name(), get_player(), increase_ob_nr(), is_legal_2ways_exit(), list_players(), make_sure_not_seen(), make_sure_seen(), malloc_info(), metaserver_update(), obsolete_parties(), play_sound_map(), players_on_map(), process_players1(), process_players2(), remove_party(), send_changed_object(), send_party_message(), share_exp(), swap_map(), update_all_los(), and update_all_map_los().
uint32 pl::no_shout |
if True, player is *not *able to use shout command.
Definition at line 188 of file player.h.
Referenced by check_login(), command_tell_all(), command_toggle_shout(), get_player(), and save_player().
object* pl::ob |
The object representing the player.
Definition at line 207 of file player.h.
Referenced by add_player(), append_spell(), apply_cmd(), basic_emote(), 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_kick(), command_possess(), command_reply(), command_reset(), command_stats(), command_summon(), command_teleport(), command_toggle_shout(), command_whereabouts(), Crossfire_Party_GetPlayers(), decrease_ob_nr(), dm_stack_peek(), dm_stack_pop(), dm_stack_push(), do_server(), do_tell(), draw_ext_info(), emergency_save(), esrv_add_spells(), 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(), find_player_partial_name(), findPlayer(), fix_luck(), fix_weight(), free_player(), get_dm_object(), get_nearest_player(), get_other_player_from_name(), get_player(), get_who_escape_code_value(), globalEventListener(), handle_client(), increase_ob_nr(), inscribe_scroll_cmd(), is_legal_2ways_exit(), leave(), list_players(), lock_item_cmd(), look_at_cmd(), make_sure_not_seen(), make_sure_seen(), mark_item_cmd(), metaserver_update(), move_cmd(), new_player_cmd(), play_sound_map(), play_sound_player_only(), players_on_map(), process_players1(), process_players2(), receive_play_again(), reply_cmd(), send_changed_object(), send_party_message(), share_exp(), START_TEST(), swap_map(), transport_type_apply(), update_all_los(), and update_all_map_los().
living pl::orig_stats |
Permanent real stats of player.
Definition at line 203 of file player.h.
Referenced by add_statbonus(), apply_changes_to_player(), change_abil(), check_login(), command_abil(), command_statistics(), fix_object(), key_change_class(), kill_player(), remove_statbonus(), roll_stats(), save_player(), and swap_stat().
Output_Buf pl::outputs[NUM_OUTPUT_BUFS] |
Holds output strings to send to client.
Definition at line 244 of file player.h.
Referenced by check_output_buffers(), and do_some_living().
uint16 pl::outputs_count |
Print if this count is exceeded.
Definition at line 246 of file player.h.
Referenced by check_login(), check_output_buffers(), command_output_count(), get_player(), and save_player().
uint16 pl::outputs_sync |
How often to print, no matter what.
Definition at line 245 of file player.h.
Referenced by check_login(), command_output_sync(), do_some_living(), get_player(), and save_player().
char pl::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 214 of file player.h.
Referenced by check_login(), check_score(), command_title(), get_who_escape_code_value(), key_confirm_quit(), kill_player(), save_player(), set_dragon_name(), and set_title().
partylist* pl::party |
Party this player is part of.
Definition at line 237 of file player.h.
Referenced by attempt_jump(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), command_party(), form_party(), get_player(), is_legal_2ways_exit(), key_confirm_quit(), kill_object(), kill_player(), list_players(), move_player_attack(), obsolete_parties(), push_ob(), receive_party_password(), remove_party(), save_player(), send_party_message(), share_exp(), should_arena_attack(), skill_attack(), and START_TEST().
partylist* pl::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 238 of file player.h.
Referenced by confirm_party_password(), get_party_password(), and receive_party_password().
char pl::password[16] |
2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16
Definition at line 227 of file player.h.
Referenced by receive_play_again(), receive_player_password(), and save_player().
uint32 pl::peaceful |
If set, won't attack friendly creatures.
Definition at line 185 of file player.h.
Referenced by check_login(), command_peaceful(), command_statistics(), friendly_fire(), get_player(), get_who_escape_code_value(), move_player_attack(), and save_player().
petmode_t pl::petmode |
Which petmode?
Definition at line 156 of file player.h.
Referenced by check_login(), command_petmode(), get_pet_enemy(), get_player(), pet_move(), save_player(), and should_arena_attack().
object* pl::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 157 of file player.h.
Referenced by animate_weapon(), apply_map_builder(), apply_special(), change_spell(), clear_skill(), command_cast_spell(), do_mood_floor(), enter_map(), fire(), fire_bow(), fire_misc_object(), fix_object(), handle_newcs_player(), inscribe_scroll_cmd(), kill_object(), kill_player(), legal_range(), move_golem(), player_fire_bow(), player_unready_range_ob(), rangetostring(), summon_golem(), unapply_special(), and write_scroll().
party_rejoin_mode pl::rejoin_party |
Whether to rejoin or not party at login.
Definition at line 242 of file player.h.
Referenced by check_login(), command_party_rejoin(), get_player(), and save_player().
uint32 pl::run_on |
Player should keep moving in dir until run is off.
Definition at line 182 of file player.h.
Referenced by command_run(), command_run_stop(), do_hidden_move(), esrv_update_stats(), handle_newcs_player(), move_internal(), move_player(), and push_ob().
char pl::savebed_map[MAX_BUF] |
Map where player will respawn after death.
Definition at line 151 of file player.h.
Referenced by apply_savebed(), cast_word_of_recall(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), enter_exit(), enter_player_savebed(), get_player(), key_change_class(), player_changer_type_process(), and save_player().
char pl::search_str[MAX_BUF] |
Item we are looking for.
Definition at line 243 of file player.h.
Referenced by check_login(), check_pick(), command_search_items(), and fix_object().
rangetype pl::shoottype |
Which range-attack is being used by player.
Definition at line 153 of file player.h.
Referenced by animate_weapon(), apply_special(), cast_spell(), change_skill(), change_spell(), check_login(), clear_skill(), command_cast_spell(), fire(), get_player(), player_unready_range_ob(), rangetostring(), save_player(), summon_golem(), and unapply_special().
socket_struct pl::socket |
Socket information for this player. See the page on the login process for a description of its use.
Definition at line 148 of file player.h.
Referenced by add_player(), alchemy(), append_spell(), apply_cmd(), apply_savebed(), attempt_jump(), blinded_sight(), book_type_apply(), cfapi_object_drop(), cfapi_object_get_property(), cfapi_object_set_property(), cfapi_object_teleport(), check_login(), check_wall(), command_banish(), command_drop(), command_dropall(), command_kick(), command_passwd(), command_quit(), command_sound(), confirm_password(), decrease_ob_nr(), dimension_door(), 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(), free_player(), get_name(), get_party_password(), get_password(), get_player(), get_who_escape_code_value(), handle_newcs_player(), increase_ob_nr(), insert_ob_in_map(), key_change_class(), key_roll_stat(), kill_object(), leave(), list_players(), look_at_cmd(), make_sure_not_seen(), make_sure_seen(), metaserver_update(), move_ob(), new_player_cmd(), play_again(), play_sound_player_only(), player_can_view(), print_los(), print_message(), process_players1(), push_ob(), put_object_in_sack(), receive_player_password(), remove_ob(), roll_again(), send_background_music(), send_changed_object(), send_plugin_custom_message(), send_tick(), set_wall(), shop_mat_type_move_on(), spellbook_type_apply(), teleport(), transfer_ob(), transport_type_apply(), turn_one_transport(), update_all_los(), update_los(), update_object(), and wrong_password().
client_spell* pl::spell_state |
Spell information sent to client.
Definition at line 250 of file player.h.
Referenced by clear_player(), esrv_update_spells(), and get_client_spell_state().
char pl::spellparam[MAX_BUF] |
What param to add to spells.
Definition at line 154 of file player.h.
Referenced by check_login(), command_cast_spell(), and fire().
tag_t* pl::stack_items |
Item stack for patch/dump/... commands.
Definition at line 252 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 pl::stack_position |
Current stack position, 0 for no item.
Definition at line 254 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 pl::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 172 of file player.h.
Referenced by check_login(), command_passwd(), command_quit(), confirm_password(), do_some_living(), fix_luck(), get_name(), get_other_player_from_name(), get_party_password(), get_password(), get_player(), handle_client(), key_change_class(), key_confirm_quit(), key_roll_stat(), leave(), list_players(), metaserver_update(), new_player_cmd(), play_again(), process_players1(), receive_party_password(), receive_player_password(), reply_cmd(), and save_player().
int pl::Swap_First |
First stat player has selected to swap.
Definition at line 202 of file player.h.
Referenced by get_player(), key_roll_stat(), and swap_stat().
char pl::title[BIG_NAME] |
Default title, like fighter, wizard, etc.
Definition at line 216 of file player.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), check_login(), check_score(), command_title(), get_player(), get_who_escape_code_value(), gravestone_text(), key_change_class(), kill_object(), kill_player(), set_dragon_name(), and set_title().
uint32 pl::tmp_invis |
Will invis go away when we attack?
Definition at line 179 of file player.h.
Referenced by action_makes_visible(), attempt_hide(), can_detect_enemy(), cast_invisible(), do_skill_attack(), make_visible(), and move_player_attack().
object* pl::transport |
Transport the player is in.
Definition at line 249 of file player.h.
Referenced by cast_create_town_portal(), command_reset(), draw_client_map(), enter_exit(), esrv_draw_look(), esrv_get_ob_from_count(), esrv_move_object(), insert_ob_in_map(), leave(), move_player(), move_player_attack(), player_apply_below(), and transport_type_apply().
unapplymode pl::unapply |
Method for auto unapply.
Definition at line 162 of file player.h.
Referenced by apply_special(), check_login(), command_applymode(), get_player(), and save_player().
usekeytype pl::usekeys |
Method for finding keys for doors.
Definition at line 161 of file player.h.
Referenced by check_login(), command_usekeys(), find_key(), and save_player().
float pl::weapon_sp |
Penalties to speed when fighting w speed >ws/10.
Definition at line 194 of file player.h.
Referenced by check_login(), esrv_update_stats(), fix_object(), move_player_attack(), process_players2(), and save_player().
char pl::write_buf[MAX_BUF] |
Holds arbitrary input from client.
Definition at line 225 of file player.h.
Referenced by check_login(), confirm_party_password(), confirm_password(), do_wizard_dm(), get_name(), get_party_password(), get_password(), receive_player_name(), receive_player_password(), and reply_cmd().