OSDN Git Service

[Refactor] #2124 Changed struct object_type to class ObjectType
[hengbandforosx/hengbandosx.git] / src / autopick / autopick-destroyer.cpp
index 889c8b8..ae8f457 100644 (file)
@@ -37,7 +37,7 @@
  * @param o_ptr アイテムへの参照ポインタ
  * @return 特別なクラス、かつそのクラス特有のアイテムであればFALSE、それ以外はTRUE
  */
-static bool is_leave_special_item(PlayerType *player_ptr, object_type *o_ptr)
+static bool is_leave_special_item(PlayerType *player_ptr, ObjectType *o_ptr)
 {
     if (!leave_special)
         return true;
@@ -63,7 +63,7 @@ static bool is_leave_special_item(PlayerType *player_ptr, object_type *o_ptr)
 /*!
  * @brief Automatically destroy items in this grid.
  */
-static bool is_opt_confirm_destroy(PlayerType *player_ptr, object_type *o_ptr)
+static bool is_opt_confirm_destroy(PlayerType *player_ptr, ObjectType *o_ptr)
 {
     if (!destroy_items)
         return false;
@@ -101,7 +101,7 @@ static bool is_opt_confirm_destroy(PlayerType *player_ptr, object_type *o_ptr)
     return true;
 }
 
-void auto_destroy_item(PlayerType *player_ptr, object_type *o_ptr, int autopick_idx)
+void auto_destroy_item(PlayerType *player_ptr, ObjectType *o_ptr, int autopick_idx)
 {
     bool destroy = false;
     if (is_opt_confirm_destroy(player_ptr, o_ptr))