OSDN Git Service

[Refactor] #3453 wiz_debug_spell() から呼ばれているget_string をinput_value() に変えた
[hengbandforosx/hengbandosx.git] / src / wizard / wizard-spells.h
index 28c3e2a..e09014b 100644 (file)
@@ -1,15 +1,15 @@
 #pragma once
 
-#include "system/angband.h"
 #include "effect/attribute-types.h"
+#include "system/angband.h"
 
-constexpr int SPELL_MAX = 6;
+enum class MonsterRaceId : int16_t;
 
-struct floor_type;
+class FloorType;
 class PlayerType;
 typedef union spell_functions {
     struct debug_spell_type1 {
-        bool (*spell_function)(PlayerType *, floor_type *);
+        bool (*spell_function)(PlayerType *, FloorType *);
     } spell1;
 
     struct debug_spell_type2 {
@@ -17,11 +17,11 @@ typedef union spell_functions {
     } spell2;
 
     struct debug_spell_type3 {
-        bool (*spell_function)(PlayerType *, HIT_POINT);
+        bool (*spell_function)(PlayerType *, int);
     } spell3;
 
     struct debug_spell_type4 { // 実質 ty curse
-        bool (*spell_function)(PlayerType *, bool, int*);
+        bool (*spell_function)(PlayerType *, bool, int *);
     } spell4;
 
     struct debug_spell_type5 {
@@ -36,16 +36,14 @@ struct debug_spell_command {
     spell_functions command_function;
 };
 
-extern debug_spell_command debug_spell_commands_list[SPELL_MAX];
-
-bool wiz_debug_spell(PlayerType *player_ptr);
+void wiz_debug_spell(PlayerType *player_ptr);
 void wiz_dimension_door(PlayerType *player_ptr);
 void wiz_summon_horde(PlayerType *player_ptr);
 void wiz_teleport_back(PlayerType *player_ptr);
 void wiz_learn_blue_magic_all(PlayerType *player_ptr);
 void wiz_fillup_all_smith_essences(PlayerType *player_ptr);
-void wiz_summon_random_enemy(PlayerType *player_ptr, int num);
-void wiz_summon_specific_enemy(PlayerType *player_ptr, MONRACE_IDX r_idx);
-void wiz_summon_pet(PlayerType *player_ptr, MONRACE_IDX r_idx);
-void wiz_kill_enemy(PlayerType *player_ptr, HIT_POINT dam = 1000000, AttributeType effect_idx = AttributeType::DEBUG);
-void wiz_kill_me(PlayerType *player_ptr, HIT_POINT dam, AttributeType effect_idx);
+void wiz_generate_random_monster(PlayerType *player_ptr, int num);
+void wiz_summon_random_monster(PlayerType *player_ptr, int num);
+void wiz_summon_specific_monster(PlayerType *player_ptr, MonsterRaceId r_idx);
+void wiz_summon_pet(PlayerType *player_ptr, MonsterRaceId r_idx);
+void wiz_kill_target(PlayerType *player_ptr, int initial_dam = 1000000, AttributeType effect_idx = AttributeType::DEBUG, const bool self = false);