OSDN Git Service

[Refactor] #1389 Changed monap_type from struct to class MonsterAttackPlayer
[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 struct monster_type;
8 struct object_type;
9 class MonsterAttackPlayer {
10 public:
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     RaceBlowMethodType 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     RaceBlowEffectType 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 };
39
40 class PlayerType;
41 MonsterAttackPlayer *initialize_MonsterAttackPlayer(PlayerType *player_ptr, MonsterAttackPlayer *monap_ptr, MONSTER_IDX m_idx);