OSDN Git Service

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