Angband
Data Fields
player_state Struct Reference

All the variable state that changes when you put on/take off equipment. More...

#include <player.h>

Data Fields

int stat_add [STAT_MAX]
 Equipment stat bonuses. More...
 
int stat_ind [STAT_MAX]
 Indexes into stat tables. More...
 
int stat_use [STAT_MAX]
 Current modified stats. More...
 
int stat_top [STAT_MAX]
 Maximal modified stats. More...
 
int skills [SKILL_MAX]
 Skills. More...
 
int speed
 Current speed. More...
 
int num_blows
 Number of blows x100. More...
 
int num_shots
 Number of shots. More...
 
int ammo_mult
 Ammo multiplier. More...
 
int ammo_tval
 Ammo variety. More...
 
int ac
 Base ac. More...
 
int to_a
 Bonus to ac. More...
 
int to_h
 Bonus to hit. More...
 
int to_d
 Bonus to dam. More...
 
int see_infra
 Infravision range. More...
 
int cur_light
 Radius of light (if any) More...
 
int noise
 Derived from stealth. More...
 
bool heavy_wield
 Heavy weapon. More...
 
bool heavy_shoot
 Heavy shooter. More...
 
bool icky_wield
 Icky weapon shooter. More...
 
bool cumber_armor
 Mana draining armor. More...
 
bool cumber_glove
 Mana draining gloves. More...
 
bitflag flags [OF_SIZE]
 Status flags from race and items. More...
 
bitflag pflags [PF_SIZE]
 Player intrinsic flags. More...
 
struct element_info el_info [ELEM_MAX]
 Resists from race and items. More...
 

Detailed Description

All the variable state that changes when you put on/take off equipment.

Player flags are not currently variable, but useful here so monsters can learn them.

Field Documentation

int ac
int ammo_mult
int ammo_tval
bool cumber_armor

Mana draining armor.

Referenced by calc_mana(), and update_bonuses().

bool cumber_glove

Mana draining gloves.

Referenced by calc_mana(), and update_bonuses().

int cur_light

Radius of light (if any)

Referenced by calc_torch(), update_bonuses(), and update_view().

struct element_info el_info[ELEM_MAX]
bitflag flags[OF_SIZE]
bool heavy_shoot

Heavy shooter.

Referenced by calc_bonuses(), equip_describe(), equip_mention(), and update_bonuses().

bool heavy_wield
bool icky_wield

Icky weapon shooter.

Referenced by calc_bonuses(), spell_chance(), and update_bonuses().

int noise

Derived from stealth.

Referenced by calc_bonuses(), and process_monster_timed().

int num_blows
int num_shots

Number of shots.

Referenced by calc_bonuses(), do_cmd_fire(), get_panel_combat(), and obj_known_damage().

bitflag pflags[PF_SIZE]

Player intrinsic flags.

Referenced by calc_bonuses(), remove_bad_spells(), and update_smart_learn().

int see_infra

Infravision range.

Referenced by calc_bonuses(), and get_panel_skills().

int skills[SKILL_MAX]
int speed
int stat_add[STAT_MAX]

Equipment stat bonuses.

Referenced by calc_bonuses(), and display_player_stat_info().

int stat_ind[STAT_MAX]
int stat_top[STAT_MAX]

Maximal modified stats.

Referenced by calc_bonuses(), display_player_stat_info(), generate_stats(), and update_bonuses().

int stat_use[STAT_MAX]

Current modified stats.

Referenced by calc_bonuses(), display_player_stat_info(), prt_stat(), and update_bonuses().

int to_a
int to_d
int to_h

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