OSDN Git Service

[Refactor] #2204 HIT_POINTエイリアスをintに揃えた
[hengbandforosx/hengbandosx.git] / src / effect / effect-player.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "effect/attribute-types.h"
5
6 struct monster_type;
7 class EffectPlayerType {
8 public:
9     DEPTH rlev; // モンスターのレベル (但し0のモンスターは1になる).
10     monster_type *m_ptr;
11     char killer[MAX_MONSTER_NAME];
12     GAME_TEXT m_name[MAX_NLEN];
13     int get_damage;
14
15     MONSTER_IDX who;
16     int dam;
17     AttributeType attribute;
18     BIT_FLAGS flag;
19     EffectPlayerType(MONSTER_IDX who, int dam, AttributeType attribute, BIT_FLAGS flag);
20
21 };
22
23
24 struct ProjectResult;
25
26 class PlayerType;
27 using project_func = ProjectResult (*)(
28     PlayerType *player_ptr, MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, int dam, AttributeType typ, BIT_FLAGS flag);
29
30 bool affect_player(MONSTER_IDX who, PlayerType *player_ptr, concptr who_name, int r, POSITION y, POSITION x, int dam, AttributeType typ, BIT_FLAGS flag,
31     project_func project);