OSDN Git Service

[Implement] ウサウサストライカー召喚処理を追加
[hengbandforosx/hengbandosx.git] / src / effect / effect-processor.h
1 #pragma once
2
3 #include "effect/attribute-types.h"
4 #include "system/angband.h"
5
6 //! project() の結果。
7 struct ProjectResult {
8     bool notice{ false }; //!< プレイヤー/モンスター/アイテム/地形などに何らかの効果を及ぼしたか
9     bool affected_player{ false }; //!< プレイヤーに何らかの効果を及ぼしたか(ラーニング判定用)
10
11     ProjectResult() = default;
12 };
13
14 class CapturedMonsterType;
15 class EffectPlayerType;
16 class PlayerType;
17 ProjectResult project(
18     PlayerType *player_ptr, const MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, const int dam, const AttributeType typ,
19     BIT_FLAGS flag, std::optional<CapturedMonsterType *> cap_mon_ptr = std::nullopt);