OSDN Git Service

Merge pull request #716 from sikabane-works/release/3.0.0Alpha16
[hengbandforosx/hengbandosx.git] / src / melee / melee-spell-util.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "system/monster-type-definition.h"
5
6 typedef struct melee_spell_type {
7     MONSTER_IDX m_idx;
8     POSITION y;
9     POSITION x;
10     MONSTER_IDX target_idx;
11     int thrown_spell;
12     HIT_POINT dam;
13     byte spell[96];
14     byte num;
15     GAME_TEXT m_name[160];
16 #ifdef JP
17 #else
18     char m_poss[160];
19 #endif
20
21     monster_type *m_ptr;
22     monster_type *t_ptr;
23     monster_race *r_ptr;
24     bool see_m;
25     bool maneable;
26     bool pet;
27     bool in_no_magic_dungeon;
28     bool can_remember;
29     BIT_FLAGS f4;
30     BIT_FLAGS f5;
31     BIT_FLAGS f6;
32 } melee_spell_type;
33
34 melee_spell_type *initialize_melee_spell_type(player_type *target_ptr, melee_spell_type *ms_ptr, MONSTER_IDX m_idx);