OSDN Git Service

[Refactor] #2204 HIT_POINTエイリアスをintに揃えた
[hengbandforosx/hengbandosx.git] / src / spell / spells-object.h
index 8c3919c..69ec81e 100644 (file)
@@ -2,14 +2,13 @@
 
 #include "system/angband.h"
 
-struct object_type;;
-struct player_type;
-void amusement(player_type *player_ptr, POSITION y1, POSITION x1, int num, bool known);
-void acquirement(player_type *caster_ptr, POSITION y1, POSITION x1, int num, bool great, bool special, bool known);
-bool curse_armor(player_type *player_ptr);
-bool curse_weapon_object(player_type *player_ptr, bool force, object_type *o_ptr);
-void brand_bolts(player_type *caster_ptr);
-bool perilous_secrets(player_type *user_ptr);
+class ObjectType;
+class PlayerType;
+void amusement(PlayerType *player_ptr, POSITION y1, POSITION x1, int num, bool known);
+void acquirement(PlayerType *player_ptr, POSITION y1, POSITION x1, int num, bool great, bool special, bool known);
+bool curse_armor(PlayerType *player_ptr);
+bool curse_weapon_object(PlayerType *player_ptr, bool force, ObjectType *o_ptr);
+void brand_bolts(PlayerType *player_ptr);
 
 /*
  * Bit flags for the "enchant()" function
@@ -18,6 +17,6 @@ bool perilous_secrets(player_type *user_ptr);
 #define ENCH_TODAM      0x02 /*!< 装備強化処理: ダメージ強化 / Enchant to damage */
 #define ENCH_TOAC       0x04 /*!< 装備強化処理: AC強化 / Enchant to AC */
 #define ENCH_FORCE      0x08 /*!< 装備強化処理: 無条件に成功させる / Force enchantment */
-bool enchant_equipment(player_type *caster_ptr, object_type *o_ptr, int n, int eflag);
-bool enchant_spell(player_type *caster_ptr, HIT_PROB num_hit, HIT_POINT num_dam, ARMOUR_CLASS num_ac);
-void brand_weapon(player_type *caster_ptr, int brand_type);
+bool enchant_equipment(PlayerType *player_ptr, ObjectType *o_ptr, int n, int eflag);
+bool enchant_spell(PlayerType *player_ptr, HIT_PROB num_hit, int num_dam, ARMOUR_CLASS num_ac);
+void brand_weapon(PlayerType *player_ptr, int brand_type);