OSDN Git Service

Merge pull request #2166 from Slimebreath6078/feature/Refactor_mflag_resist
[hengbandforosx/hengbandosx.git] / src / melee / melee-spell-util.h
1 #pragma once
2
3 #include <vector>
4
5 #include "system/angband.h"
6 #include "monster-race/race-ability-flags.h"
7 #include "util/flag-group.h"
8
9 struct monster_race;
10 struct monster_type;
11 struct melee_spell_type {
12     MONSTER_IDX m_idx;
13     POSITION y;
14     POSITION x;
15     MONSTER_IDX target_idx;
16     MonsterAbilityType thrown_spell;
17     int dam;
18     std::vector<MonsterAbilityType> spells;
19     GAME_TEXT m_name[160];
20 #ifdef JP
21 #else
22     char m_poss[160];
23 #endif
24
25     monster_type *m_ptr;
26     monster_type *t_ptr;
27     monster_race *r_ptr;
28     bool see_m;
29     bool maneable;
30     bool pet;
31     bool in_no_magic_dungeon;
32     bool can_remember;
33     EnumClassFlagGroup<MonsterAbilityType> ability_flags;
34 };
35
36 class PlayerType;
37 melee_spell_type *initialize_melee_spell_type(PlayerType *player_ptr, melee_spell_type *ms_ptr, MONSTER_IDX m_idx);