Angband
Data Fields
monster Struct Reference

Monster information, for a specific monster. More...

#include <monster.h>

Data Fields

struct monster_racerace
 
int midx
 
byte fy
 
byte fx
 
s16b hp
 
s16b maxhp
 
s16b m_timed [MON_TMD_MAX]
 
byte mspeed
 
byte energy
 
byte cdis
 
bitflag mflag [MFLAG_SIZE]
 
struct objectmimicked_obj
 
struct objectheld_obj
 
byte attr
 
struct player_state known_pstate
 
byte ty
 Monster target. More...
 
byte tx
 
byte min_range
 What is the closest we want to be? Not saved. More...
 
byte best_range
 How close do we want to be? Not saved. More...
 

Detailed Description

Monster information, for a specific monster.

Note: fy, fx constrain dungeon size to 256x256

The "held_obj" field points to the first object of a stack of objects (if any) being carried by the monster (see above).

Field Documentation

◆ attr

byte attr

◆ best_range

byte best_range

How close do we want to be? Not saved.

Referenced by get_move_find_range(), and get_move_flee().

◆ cdis

byte cdis

◆ energy

byte energy

◆ fx

byte fx

◆ fy

byte fy

◆ held_obj

struct object* held_obj

◆ hp

s16b hp

◆ known_pstate

struct player_state known_pstate

◆ m_timed

s16b m_timed[MON_TMD_MAX]

◆ maxhp

s16b maxhp

◆ mflag

◆ midx

int midx

◆ mimicked_obj

struct object* mimicked_obj

◆ min_range

byte min_range

What is the closest we want to be? Not saved.

Referenced by get_move(), and get_move_find_range().

◆ mspeed

byte mspeed

◆ race

struct monster_race* race

Referenced by add_monster_lights(), add_monster_message(), become_aware(), call_monster(), can_call_monster(), chunk_copy(), chunk_write(), compact_monsters(), compare_monsters(), context_menu_cave(), delete_monster_idx(), do_animation(), do_cmd_wiz_zap(), do_mon_spell(), does_resist(), effect_handler_BANISH(), effect_handler_DETECT_EVIL(), effect_handler_DETECT_INVISIBLE_MONSTERS(), effect_handler_DETECT_VISIBLE_MONSTERS(), effect_handler_EARTHQUAKE(), effect_handler_MASS_BANISH(), effect_handler_PROBE(), effect_handler_PROJECT_LOS(), effect_handler_PROJECT_LOS_AWARE(), effect_handler_SUMMON(), effect_handler_THRUST_AWAY(), effect_handler_WAKE(), get_injured_kin(), get_move(), get_move_advance(), get_move_find_range(), get_move_find_safety(), grid_data_as_text(), improve_attack_modifier(), lore_do_probe(), lore_treasure(), make_attack_normal(), make_attack_spell(), make_ranged_shot(), make_ranged_throw(), mdam(), mon_create_drop(), mon_pop(), mon_set_timed(), mon_take_hit(), monster_can_hear(), monster_can_kill(), monster_can_move(), monster_can_smell(), monster_check_active(), monster_death(), monster_desc(), monster_hates_grid(), monster_is_destroyed(), monster_is_evil(), monster_is_invisible(), monster_is_nonliving(), monster_is_powerful(), monster_is_smart(), monster_is_stupid(), monster_is_unique(), monster_list_collect(), monster_passes_walls(), monster_reduce_sleep(), monster_swap(), monster_take_terrain_damage(), monster_turn(), monster_turn_can_move(), monster_turn_glyph(), monster_turn_grab_objects(), monster_turn_multiply(), monster_turn_should_stagger(), monster_turn_try_push(), multiply_monster(), place_monster(), place_new_monster_one(), process_monster_timed(), process_monsters(), process_player_cleanup(), project(), project_m(), project_m_apply_side_effects(), project_m_monster_attack(), project_monster_breath(), project_monster_dispel(), project_monster_handler_CHAOS(), project_monster_handler_FORCE(), project_monster_handler_GRAVITY(), project_monster_handler_LIGHT(), project_monster_handler_NETHER(), project_monster_hurt_immune(), project_monster_hurt_only(), project_monster_resist_element(), project_monster_resist_other(), project_monster_scare(), project_monster_teleport_away(), py_attack_real(), quest_check(), ranged_helper(), rd_monster(), react_to_specific_slay(), regen_monster(), saving_throw(), setup_tests(), spell_message(), spell_value_base_spell_power(), square_monster(), stack_message(), summon_specific(), take1(), target_able(), target_set_closest(), target_set_interactive(), target_set_interactive_aux(), test_blows(), textui_process_click(), update_mon(), update_monsters(), wipe_mon_list(), and wr_monster().

◆ tx

byte tx

◆ ty

byte ty

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