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 x10. More...
 
int num_moves
 Number of movement actions. More...
 
int ammo_mult
 Ammo multiplier. More...
 
int ammo_tval
 Ammo variety. More...
 
int ac
 Base ac. More...
 
int dam_red
 Damage reduction. 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...
 
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

◆ ac

int ac

◆ ammo_mult

int ammo_mult

◆ ammo_tval

int ammo_tval

◆ cumber_armor

bool cumber_armor

Mana draining armor.

Referenced by calc_mana(), and update_bonuses().

◆ cumber_glove

bool cumber_glove

Mana draining gloves.

Referenced by calc_mana(), and update_bonuses().

◆ cur_light

int cur_light

Radius of light (if any)

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

◆ dam_red

int dam_red

Damage reduction.

Referenced by calc_bonuses(), calc_shapechange(), and take_hit().

◆ el_info

struct element_info el_info[ELEM_MAX]

◆ flags

bitflag flags[OF_SIZE]

◆ heavy_shoot

bool heavy_shoot

Heavy shooter.

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

◆ heavy_wield

bool heavy_wield

◆ icky_wield

bool icky_wield

Icky weapon shooter.

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

◆ num_blows

int num_blows

◆ num_moves

int num_moves

Number of movement actions.

Referenced by calc_bonuses(), do_cmd_jump(), do_cmd_walk(), and run_step().

◆ num_shots

int num_shots

Number of shots x10.

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

◆ pflags

bitflag pflags[PF_SIZE]

Player intrinsic flags.

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

◆ see_infra

int see_infra

Infravision range.

Referenced by calc_bonuses(), calc_shapechange(), and get_panel_skills().

◆ skills

int skills[SKILL_MAX]

◆ speed

int speed

◆ stat_add

int stat_add[STAT_MAX]

Equipment stat bonuses.

Referenced by calc_bonuses(), calc_shapechange(), and display_player_stat_info().

◆ stat_ind

int stat_ind[STAT_MAX]

◆ stat_top

int stat_top[STAT_MAX]

Maximal modified stats.

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

◆ stat_use

int stat_use[STAT_MAX]

Current modified stats.

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

◆ to_a

int to_a

◆ to_d

int to_d

◆ to_h

int to_h

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