Crossfire Server, Branches 1.12  R18729
pl Struct Reference

#include <player.h>

+ Collaboration diagram for pl:

Data Fields

sint16 bed_x
 
sint16 bed_y
 
sint8 blocked_los [MAP_CLIENT_X][MAP_CLIENT_Y]
 
bowtype_t bowtype
 
uint32 braced:1
 
uint32 count
 
sint16 digestion
 
uint32 do_los:1
 
sint16 encumbrance
 
uint32 explore:1
 
uint32 fire_on:1
 
sstring followed_player
 
sint16 gen_grace
 
sint16 gen_hp
 
sint16 gen_sp
 
sint16 gen_sp_armour
 
uint32 golem_count
 
uint32 has_hit:1
 
uint32 hidden:1
 
char input_buf [MAX_BUF]
 
const char * invis_race
 
sint16 item_power
 
char killer [BIG_NAME]
 
int language
 
uint16 last_flags
 
sint8 last_level
 
uint32 last_path_attuned
 
uint32 last_path_denied
 
uint32 last_path_repelled
 
sint16 last_resist [NROFATTACKS]
 
sint64 last_skill_exp [NUM_SKILLS]
 
objectlast_skill_ob [NUM_SKILLS]
 
float last_speed
 
living last_stats
 
char last_tell [MAX_NAME]
 
objectlast_used
 
uint32 last_used_id
 
float last_weapon_sp
 
sint32 last_weight
 
sint32 last_weight_limit
 
sint8 levgrace [11]
 
sint8 levhp [11]
 
sint8 levsp [11]
 
uint8 listening
 
char maplevel [MAX_BUF]
 
objectmark
 
uint32 mark_count
 
uint32 mode
 
uint32 name_changed:1
 
char new_password [16]
 
struct plnext
 
uint32 no_shout:1
 
objectob
 
living orig_stats
 
Output_Buf outputs [NUM_OUTPUT_BUFS]
 
uint16 outputs_count
 
uint16 outputs_sync
 
char own_title [MAX_NAME]
 
partylistparty
 
partylistparty_to_join
 
char password [16]
 
uint32 peaceful:1
 
petmode_t petmode
 
objectranges [range_size]
 
party_rejoin_mode rejoin_party
 
uint32 run_on:1
 
char savebed_map [MAX_BUF]
 
char search_str [MAX_BUF]
 
rangetype shoottype
 
socket_struct socket
 
client_spellspell_state
 
char spellparam [MAX_BUF]
 
tag_tstack_items
 
int stack_position
 
uint8 state
 
int Swap_First
 
char title [BIG_NAME]
 
uint32 tmp_invis:1
 
objecttransport
 
unapplymode unapply
 
usekeytype usekeys
 
float weapon_sp
 
char write_buf [MAX_BUF]
 

Detailed Description

One player.

Definition at line 146 of file player.h.

Field Documentation

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().

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::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().

char pl::input_buf[MAX_BUF]

Holds command to run.

Definition at line 226 of file player.h.

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().

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().

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().

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_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().

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::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().

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
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().

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().

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().


The documentation for this struct was generated from the following file: