OSDN Git Service

dd794d82629a46f1658f6de9b14f1dc4c43528f3
[hengbandforosx/hengbandosx.git] / src / effect / effect-monster-util.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "spell/spell-types.h"
5
6 struct grid_type;;
7 struct monster_type;
8 struct monster_race;
9 typedef struct effect_monster_type {
10     grid_type *g_ptr;
11     monster_type *m_ptr;
12     monster_type *m_caster_ptr;
13     monster_race *r_ptr;
14     char killer[MAX_MONSTER_NAME];
15     bool seen;
16     bool seen_msg;
17     bool slept;
18     bool obvious;
19     bool known;
20     bool skipped;
21     bool get_angry;
22     bool do_polymorph;
23     int do_dist;
24     int do_conf;
25     int do_stun;
26     int do_sleep;
27     int do_fear;
28     int do_time;
29     bool heal_leper;
30     GAME_TEXT m_name[MAX_NLEN];
31     char m_poss[10];
32     PARAMETER_VALUE photo;
33     concptr note;
34     concptr note_dies;
35     DEPTH caster_lev;
36
37     MONSTER_IDX who;
38     POSITION r;
39     POSITION y;
40     POSITION x;
41     HIT_POINT dam;
42     EFFECT_ID effect_type;
43     BIT_FLAGS flag;
44     bool see_s_msg;
45 } effect_monster_type;
46
47 struct player_type;
48 effect_monster_type *initialize_effect_monster(player_type *player_ptr, effect_monster_type *em_ptr, MONSTER_IDX who, POSITION r, POSITION y, POSITION x,
49     HIT_POINT dam, EFFECT_ID effect_type, BIT_FLAGS flag, bool see_s_msg);