OSDN Git Service

[Refactor] enum spells-typeをenum class AttributeTypeに置換
[hengbandforosx/hengbandosx.git] / src / effect / effect-player-util.h
index 29b3198..6f89aa7 100644 (file)
@@ -1,19 +1,18 @@
 #pragma once
 
 #include "system/angband.h"
-#include "system/monster-type-definition.h"
+#include "effect/attribute-types.h"
 
-typedef struct effect_player_type
-{
-       DEPTH rlev; // モンスターのレベル (但し0のモンスターは1になる).
-       monster_type *m_ptr;
-       char killer[80];
-       GAME_TEXT m_name[MAX_NLEN];
-       int get_damage;
+struct monster_type;
+typedef struct effect_player_type {
+    DEPTH rlev; // モンスターのレベル (但し0のモンスターは1になる).
+    monster_type *m_ptr;
+    char killer[MAX_MONSTER_NAME];
+    GAME_TEXT m_name[MAX_NLEN];
+    int get_damage;
 
-       MONSTER_IDX who;
-       HIT_POINT dam;
-       EFFECT_ID effect_type;
-       BIT_FLAGS flag;
-       int monspell;
+    MONSTER_IDX who;
+    HIT_POINT dam;
+    AttributeType attribute;
+    BIT_FLAGS flag;
 } effect_player_type;