OSDN Git Service

[Refactor] 発生源に使用されているwhoをリネーム
[hengbandforosx/hengbandosx.git] / src / effect / effect-monster.h
index 40c2eed..28f8f6f 100644 (file)
@@ -1,6 +1,9 @@
-#pragma once
+#pragma once
 
+#include "effect/attribute-types.h"
 #include "system/angband.h"
+#include <optional>
 
-struct player_type;
-bool affect_monster(player_type *player_ptr, MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_POINT dam, EFFECT_ID typ, BIT_FLAGS flag, bool see_s_msg);
+class CapturedMonsterType;
+class PlayerType;
+bool affect_monster(PlayerType *player_ptr, MONSTER_IDX src_idx, POSITION r, POSITION y, POSITION x, int dam, AttributeType typ, BIT_FLAGS flag, bool see_s_msg, std::optional<CapturedMonsterType *> cap_mon_ptr = std::nullopt);