Crossfire Client, Trunk  R20693
Player_Struct Struct Reference

#include <client.h>

+ Collaboration diagram for Player_Struct:

Data Fields

guint32 alt_on:1
 
itembelow
 
itemcontainer
 
guint32 count
 
guint16 count_left
 
guint32 fire_on:1
 
Input_State input_state
 
char input_text [MAX_BUF]
 
char last_command [MAX_BUF]
 
guint8 * magicmap
 
guint16 mapxres
 
guint16 mapyres
 
guint32 meta_on:1
 
guint16 mmapx
 
guint16 mmapy
 
char * name
 
guint32 no_echo:1
 
itemob
 
guint16 pmapx
 
guint16 pmapy
 
char range [MAX_BUF]
 
itemranges [range_size]
 
guint8 ready_spell
 
guint32 run_on:1
 
guint8 showmagic
 
Spellspelldata
 
char spells [255][40]
 
guint32 spells_updated
 
Stats stats
 
char title [MAX_BUF]
 

Detailed Description

Definition at line 335 of file client.h.

Field Documentation

guint32 Player_Struct::alt_on

True if fire key is pressed

Definition at line 357 of file client.h.

Referenced by configure_keys(), focusoutfunc(), parse_key(), and parse_key_release().

item* Player_Struct::below

Items below the player (pl.below->inv)

Definition at line 337 of file client.h.

Referenced by animate_objects(), client_init(), draw_lists(), draw_look_list(), get_item_env(), load_theme(), and script_process_cmd().

guint32 Player_Struct::count

Repeat count on command

Definition at line 359 of file client.h.

Referenced by command_take(), extended_command(), fire_dir(), list_item_action(), on_entry_commands_activate(), parse_key(), and send_command().

guint16 Player_Struct::count_left

count for commands

Definition at line 340 of file client.h.

Referenced by reset_vars_common().

guint32 Player_Struct::fire_on

True if fire key is pressed

Definition at line 354 of file client.h.

Referenced by configure_keys(), focusoutfunc(), keyfunc(), parse_key(), parse_key_release(), and script_process_cmd().

char Player_Struct::input_text[MAX_BUF]

keys typed (for long commands)

Definition at line 343 of file client.h.

Referenced by on_entry_commands_activate(), parse_key(), and reset_vars_common().

char Player_Struct::last_command[MAX_BUF]

Last command entered

Definition at line 342 of file client.h.

Referenced by reset_vars_common().

guint8* Player_Struct::magicmap

Magic map data

Definition at line 363 of file client.h.

Referenced by draw_magic_map(), MagicMapCmd(), and reset_vars_common().

guint16 Player_Struct::mapxres

Definition at line 366 of file client.h.

Referenced by draw_magic_map(), and magic_map_flash_pos().

guint16 Player_Struct::mapyres

Resolution to draw on the magic map. Only used in client-specific code, so it should move there.

Definition at line 366 of file client.h.

Referenced by draw_magic_map(), and magic_map_flash_pos().

guint32 Player_Struct::meta_on

True if fire key is pressed

Definition at line 356 of file client.h.

Referenced by configure_keys(), focusoutfunc(), parse_key(), and parse_key_release().

guint16 Player_Struct::mmapx

Definition at line 360 of file client.h.

Referenced by draw_magic_map(), and MagicMapCmd().

guint16 Player_Struct::mmapy

size of magic map

Definition at line 360 of file client.h.

Referenced by draw_magic_map(), and MagicMapCmd().

char* Player_Struct::name

Name of PC, set and freed in account.c play_character() (using data returned from server to AccountPlayersCmd, via character_choose window, OR in send_create_player_to_server() when new character created.

Definition at line 369 of file client.h.

Referenced by keybindings_init(), save_keys(), script_init(), and toggle_keybind_scope().

guint32 Player_Struct::no_echo

If TRUE, don't echo keystrokes

Definition at line 358 of file client.h.

Referenced by handle_query(), parse_key(), script_process_cmd(), send_reply(), and x_set_echo().

guint16 Player_Struct::pmapx

Definition at line 361 of file client.h.

Referenced by magic_map_flash_pos(), and MagicMapCmd().

guint16 Player_Struct::pmapy

Where the player is on the magic map

Definition at line 361 of file client.h.

Referenced by magic_map_flash_pos(), and MagicMapCmd().

char Player_Struct::range[MAX_BUF]

Range attack chosen

Definition at line 352 of file client.h.

Referenced by draw_stats(), reset_vars_common(), script_process_cmd(), and StatsCmd().

item* Player_Struct::ranges[range_size]

Object that is used for that range type

Definition at line 344 of file client.h.

Referenced by reset_vars_common().

guint8 Player_Struct::ready_spell

Index to spell that is readied

Definition at line 346 of file client.h.

guint32 Player_Struct::run_on

True if run key is on

Definition at line 355 of file client.h.

Referenced by configure_keys(), focusoutfunc(), keyfunc(), parse_key(), parse_key_release(), and script_process_cmd().

guint8 Player_Struct::showmagic

If 0, show the normal map, otherwise show the magic map.

Definition at line 364 of file client.h.

Referenced by do_timeout(), draw_magic_map(), magic_map_flash_pos(), and reset_vars_common().

Spell* Player_Struct::spelldata

List of spells known

Definition at line 350 of file client.h.

Referenced by AddspellCmd(), DeleteSpell(), new_player(), script_process_cmd(), update_spell_information(), and UpdspellCmd().

char Player_Struct::spells[255][40]

List of all the spells the player knows

Definition at line 347 of file client.h.

guint32 Player_Struct::spells_updated

Whether or not spells updated

Definition at line 353 of file client.h.

Referenced by AddspellCmd(), DeleteSpell(), do_timeout(), StatsCmd(), update_spell_information(), and UpdspellCmd().

char Player_Struct::title[MAX_BUF]

Title of character

Definition at line 351 of file client.h.

Referenced by draw_stats(), extended_command(), reset_vars_common(), script_process_cmd(), and StatsCmd().


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