OSDN Git Service

Merge pull request #1465 from Hourier/feature/Replace-NULL-to-nullptr
[hengbandforosx/hengbandosx.git] / src / monster-attack / monster-attack-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
7 /* MONster-Attack-Player、地図のMAPと紛らわしいのでmonapとした */
8 struct monster_type;
9 struct object_type;;
10 typedef struct monap_type {
11 #ifdef JP
12     int abbreviate; // 2回目以降の省略表現フラグ.
13 #endif
14     MONSTER_IDX m_idx;
15     monster_type *m_ptr;
16     concptr act;
17     int do_cut;
18     int do_stun;
19     bool touched;
20     rbm_type method;
21     bool explode;
22     DEPTH rlev;
23     GAME_TEXT m_name[MAX_NLEN];
24     bool do_silly_attack;
25     int d_dice;
26     int d_side;
27     object_type *o_ptr;
28     bool obvious;
29     HIT_POINT damage;
30     rbe_type effect;
31     bool blinked;
32     GAME_TEXT o_name[MAX_NLEN];
33     HIT_POINT get_damage;
34     GAME_TEXT ddesc[MAX_MONSTER_NAME];
35     ARMOUR_CLASS ac;
36     bool alive;
37     bool fear;
38 } monap_type;
39
40 struct player_type;
41 monap_type *initialize_monap_type(player_type *target_ptr, monap_type *monap_ptr, MONSTER_IDX m_idx);