Crossfire Client, Trunk  R20507
Data Fields
Player_Struct Struct Reference

#include <client.h>

Collaboration diagram for Player_Struct:
Collaboration graph

Data Fields

guint32 alt_on:1
 True if fire key is pressed. More...
 
itembelow
 Items below the player (pl.below->inv) More...
 
itemcontainer
 open container More...
 
guint32 count
 Repeat count on command. More...
 
guint16 count_left
 count for commands More...
 
guint32 fire_on:1
 True if fire key is pressed. More...
 
Input_State input_state
 What the input state is. More...
 
char input_text [MAX_BUF]
 keys typed (for long commands) More...
 
char last_command [MAX_BUF]
 Last command entered. More...
 
guint8 * magicmap
 Magic map data. More...
 
guint16 mapxres
 
guint16 mapyres
 Resolution to draw on the magic map. More...
 
guint32 meta_on:1
 True if fire key is pressed. More...
 
guint16 mmapx
 
guint16 mmapy
 size of magic map More...
 
char * 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. More...
 
guint32 no_echo:1
 If TRUE, don't echo keystrokes. More...
 
itemob
 Player object. More...
 
guint16 pmapx
 
guint16 pmapy
 Where the player is on the magic map. More...
 
char range [MAX_BUF]
 Range attack chosen. More...
 
itemranges [range_size]
 Object that is used for that. More...
 
guint8 ready_spell
 Index to spell that is readied. More...
 
guint32 run_on:1
 True if run key is on. More...
 
guint8 showmagic
 If 0, show the normal map, otherwise show the magic map. More...
 
Spellspelldata
 List of spells known. More...
 
char spells [255][40]
 List of all the spells the. More...
 
guint32 spells_updated
 Whether or not spells updated. More...
 
Stats stats
 Player stats. More...
 
char title [MAX_BUF]
 Title of character. More...
 

Detailed Description

Definition at line 335 of file client.h.

Field Documentation

◆ alt_on

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

◆ below

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

◆ container

item* Player_Struct::container

◆ count

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

◆ count_left

guint16 Player_Struct::count_left

count for commands

Definition at line 340 of file client.h.

Referenced by reset_vars_common().

◆ fire_on

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

◆ input_state

Input_State Player_Struct::input_state

◆ input_text

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

◆ last_command

char Player_Struct::last_command[MAX_BUF]

Last command entered.

Definition at line 342 of file client.h.

Referenced by reset_vars_common().

◆ magicmap

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

◆ mapxres

guint16 Player_Struct::mapxres

Definition at line 366 of file client.h.

Referenced by draw_magic_map(), and magic_map_flash_pos().

◆ mapyres

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

◆ meta_on

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

◆ mmapx

guint16 Player_Struct::mmapx

Definition at line 360 of file client.h.

Referenced by draw_magic_map(), and MagicMapCmd().

◆ mmapy

guint16 Player_Struct::mmapy

size of magic map

Definition at line 360 of file client.h.

Referenced by draw_magic_map(), and MagicMapCmd().

◆ name

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(), and toggle_keybind_scope().

◆ no_echo

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

◆ ob

item* Player_Struct::ob

◆ pmapx

guint16 Player_Struct::pmapx

Definition at line 361 of file client.h.

Referenced by magic_map_flash_pos(), and MagicMapCmd().

◆ pmapy

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

◆ range

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

◆ ranges

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

◆ ready_spell

guint8 Player_Struct::ready_spell

Index to spell that is readied.

Definition at line 346 of file client.h.

◆ run_on

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

◆ showmagic

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

◆ spelldata

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

◆ spells

char Player_Struct::spells[255][40]

List of all the spells the.

player knows

Definition at line 347 of file client.h.

◆ spells_updated

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

◆ stats

Stats Player_Struct::stats

◆ title

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: