Crossfire Client, Trunk
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 333 of file client.h.

Field Documentation

◆ alt_on

guint32 Player_Struct::alt_on

True if fire key is pressed

Definition at line 355 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 335 of file client.h.

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

◆ container

◆ count

guint32 Player_Struct::count

Repeat count on command

Definition at line 357 of file client.h.

Referenced by command_take(), extended_command(), fire_dir(), list_item_drop(), on_count_changed(), parse_key(), send_command(), and show_item_menu().

◆ count_left

guint16 Player_Struct::count_left

count for commands

Definition at line 338 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 352 of file client.h.

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

◆ input_state

◆ input_text

char Player_Struct::input_text[MAX_BUF]

keys typed (for long commands)

Definition at line 341 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 340 of file client.h.

Referenced by reset_vars_common().

◆ magicmap

guint8* Player_Struct::magicmap

Magic map data

Definition at line 361 of file client.h.

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

◆ mapxres

guint16 Player_Struct::mapxres

Definition at line 364 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 364 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 354 of file client.h.

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

◆ mmapx

guint16 Player_Struct::mmapx

Definition at line 358 of file client.h.

Referenced by draw_magic_map(), and MagicMapCmd().

◆ mmapy

guint16 Player_Struct::mmapy

size of magic map

Definition at line 358 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 367 of file client.h.

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

◆ no_echo

guint32 Player_Struct::no_echo

If TRUE, don't echo keystrokes

Definition at line 356 of file client.h.

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

◆ ob

◆ pmapx

guint16 Player_Struct::pmapx

Definition at line 359 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 359 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 350 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 342 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 344 of file client.h.

◆ run_on

guint32 Player_Struct::run_on

True if run key is on

Definition at line 353 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 362 of file client.h.

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

◆ spelldata

Spell* Player_Struct::spelldata

List of spells known

Definition at line 348 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 345 of file client.h.

◆ spells_updated

guint32 Player_Struct::spells_updated

Whether or not spells updated

Definition at line 351 of file client.h.

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

◆ stats

◆ title

char Player_Struct::title[MAX_BUF]

Title of character

Definition at line 349 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: