OSDN Git Service

[Refactor] #2204 HIT_POINTエイリアスをintに揃えた
[hengbandforosx/hengbandosx.git] / src / blue-magic / blue-magic-util.h
index fffe720..527e93b 100644 (file)
@@ -7,19 +7,19 @@
 #include "system/angband.h"
 
 // Blue Magic Cast.
-typedef struct bmc_type {
+struct bmc_type {
     DIRECTION dir;
     PLAYER_LEVEL plev;
     PLAYER_LEVEL summon_lev;
-    HIT_POINT damage;
+    int damage;
     bool pet;
     bool no_trump;
     BIT_FLAGS p_mode;
     BIT_FLAGS u_mode;
     BIT_FLAGS g_mode;
-} bmc_type;
+};
 
-struct player_type;
-typedef PLAYER_LEVEL (*get_pseudo_monstetr_level_pf)(player_type *caster_ptr);
+class PlayerType;
+typedef PLAYER_LEVEL (*get_pseudo_monstetr_level_pf)(PlayerType *player_ptr);
 bmc_type *initialize_blue_magic_type(
-    player_type *caster_ptr, bmc_type *bmc_ptr, const bool success, get_pseudo_monstetr_level_pf get_pseudo_monstetr_level);
+    PlayerType *player_ptr, bmc_type *bmc_ptr, const bool success, get_pseudo_monstetr_level_pf get_pseudo_monstetr_level);