OSDN Git Service

[Fix] #include / enum class 不足部を修正。
[hengbandforosx/hengbandosx.git] / src / melee / melee-util.h
1 #pragma once
2
3 #include "effect/attribute-types.h"
4 #include "monster-attack/monster-attack-effect.h"
5 #include "monster-attack/monster-attack-table.h"
6 #include "system/angband.h"
7
8 enum class BlowEffectType;
9
10 /* monster-attack-monster type*/
11 struct monster_type;
12 struct mam_type {
13     BlowEffectType attribute;
14     MONSTER_IDX m_idx;
15     MONSTER_IDX t_idx;
16     monster_type *m_ptr;
17     monster_type *t_ptr;
18     GAME_TEXT m_name[MAX_NLEN];
19     GAME_TEXT t_name[MAX_NLEN];
20     int damage;
21     bool see_m;
22     bool see_t;
23     bool see_either;
24     POSITION y_saver;
25     POSITION x_saver;
26     RaceBlowMethodType method;
27     bool explode;
28     bool touched;
29     concptr act;
30     AttributeType pt;
31     RaceBlowEffectType effect;
32     ARMOUR_CLASS ac;
33     DEPTH rlev;
34     bool blinked;
35     bool do_silly_attack;
36     int power;
37     bool obvious;
38     int d_dice;
39     int d_side;
40     bool known;
41     bool fear;
42     bool dead;
43 };
44
45 class PlayerType;
46 mam_type *initialize_mam_type(PlayerType *player_ptr, mam_type *mam_ptr, MONSTER_IDX m_idx, MONSTER_IDX t_idx);