OSDN Git Service

Revert "Revert "Merge branch 'master' of git.osdn.net:/gitroot/hengband/hengband""
[hengband/hengband.git] / src / melee / melee-util.h
1 #pragma once
2
3 #include "monster-attack/monster-attack-effect.h"
4 #include "monster-attack/monster-attack-types.h"
5 #include "system/angband.h"
6 #include "spell/spell-types.h"
7 #include "system/monster-type-definition.h"
8
9 /* monster-attack-monster type*/
10 typedef struct mam_type {
11     int effect_type;
12     MONRACE_IDX m_idx;
13     MONRACE_IDX t_idx;
14     monster_type *m_ptr;
15     monster_type *t_ptr;
16     GAME_TEXT m_name[MAX_NLEN];
17     GAME_TEXT t_name[MAX_NLEN];
18     HIT_POINT damage;
19     bool see_m;
20     bool see_t;
21     bool see_either;
22     POSITION y_saver;
23     POSITION x_saver;
24     rbm_type method;
25     bool explode;
26     bool touched;
27     concptr act;
28     spells_type pt;
29     rbe_type effect;
30     ARMOUR_CLASS ac;
31     DEPTH rlev;
32     bool blinked;
33     bool do_silly_attack;
34     ARMOUR_CLASS ap_cnt;
35     HIT_POINT power;
36     bool obvious;
37     int d_dice;
38     int d_side;
39     bool known;
40     bool fear;
41     bool dead;
42 } mam_type;
43
44 mam_type *initialize_mam_type(player_type *subject_ptr, mam_type *mam_ptr, MONRACE_IDX m_idx, MONRACE_IDX t_idx);