OSDN Git Service

[Refactor] enum spells-typeをenum class AttributeTypeに置換
[hengbandforosx/hengbandosx.git] / src / effect / effect-processor.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "effect/attribute-types.h"
5
6 //! project() の結果。
7 struct ProjectResult {
8     bool notice{ false }; //!< プレイヤー/モンスター/アイテム/地形などに何らかの効果を及ぼしたか
9     bool affected_player{ false }; //!< プレイヤーに何らかの効果を及ぼしたか(ラーニング判定用)
10
11     ProjectResult() = default;
12 };
13
14 struct effect_player_type;
15 struct player_type;
16 ProjectResult project(
17     player_type *player_ptr, const MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, const HIT_POINT dam, const AttributeType typ,
18     BIT_FLAGS flag);