Crossfire Client, Branches  R11627
Player_Struct Struct Reference

#include <client.h>

+ Collaboration diagram for Player_Struct:

Data Fields

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

Detailed Description

Definition at line 271 of file client.h.

Field Documentation

uint32 Player_Struct::alt_on

True if fire key is pressed

Definition at line 293 of file client.h.

Referenced by configure_keys(), and parse_key().

uint32 Player_Struct::count
uint16 Player_Struct::count_left

count for commands

Definition at line 276 of file client.h.

Referenced by init_client_vars(), and reset_client_vars().

uint32 Player_Struct::fire_on

True if fire key is pressed

Definition at line 290 of file client.h.

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

char Player_Struct::input_text[MAX_BUF]
char Player_Struct::last_command[MAX_BUF]

Last command entered

Definition at line 278 of file client.h.

Referenced by init_client_vars(), and reset_client_vars().

uint8* Player_Struct::magicmap

Magic map data

Definition at line 299 of file client.h.

Referenced by draw_magic_map(), init_client_vars(), MagicMapCmd(), and reset_client_vars().

uint16 Player_Struct::mapxres

Definition at line 302 of file client.h.

Referenced by draw_magic_map(), and magic_map_flash_pos().

uint16 Player_Struct::mapyres

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

Definition at line 302 of file client.h.

Referenced by draw_magic_map(), and magic_map_flash_pos().

uint32 Player_Struct::meta_on

True if fire key is pressed

Definition at line 292 of file client.h.

Referenced by configure_keys(), and parse_key().

uint16 Player_Struct::mmapx

Definition at line 296 of file client.h.

Referenced by draw_magic_map(), and MagicMapCmd().

uint16 Player_Struct::mmapy

size of magic map

Definition at line 296 of file client.h.

Referenced by draw_magic_map(), and MagicMapCmd().

char Player_Struct::name[40]

Player's name, for player-specific key files

Definition at line 306 of file client.h.

Referenced by init_keys(), keys_init(), save_keys(), and setUserPass().

uint32 Player_Struct::no_echo

If TRUE, don't echo keystrokes

Definition at line 294 of file client.h.

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

uint16 Player_Struct::pmapx

Definition at line 297 of file client.h.

Referenced by magic_map_flash_pos(), and MagicMapCmd().

uint16 Player_Struct::pmapy

Where the player is on the magic map

Definition at line 297 of file client.h.

Referenced by magic_map_flash_pos(), and MagicMapCmd().

char Player_Struct::range[MAX_BUF]

Range attack chosen

Definition at line 288 of file client.h.

Referenced by draw_stats(), init_client_vars(), reset_client_vars(), script_process_cmd(), and StatsCmd().

item* Player_Struct::ranges[range_size]

Object that is used for that range type

Definition at line 280 of file client.h.

Referenced by init_client_vars(), and reset_client_vars().

uint8 Player_Struct::ready_spell

Index to spell that is readied

Definition at line 282 of file client.h.

uint32 Player_Struct::run_on

True if run key is on

Definition at line 291 of file client.h.

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

uint8 Player_Struct::showmagic

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

Definition at line 300 of file client.h.

Referenced by check_x_events(), display_map_doneupdate(), do_key_press(), do_magicmap(), do_timeout(), init_client_vars(), magic_map_flash_pos(), MagicMapCmd(), and reset_client_vars().

Spell* Player_Struct::spelldata
char Player_Struct::spells[255][40]

List of all the spells the player knows

Definition at line 283 of file client.h.

uint32 Player_Struct::spells_updated

Whether or not spells updated

Definition at line 289 of file client.h.

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

char Player_Struct::title[MAX_BUF]

Title of character

Definition at line 287 of file client.h.

Referenced by draw_stats(), init_client_vars(), reset_client_vars(), script_process_cmd(), and StatsCmd().


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