OSDN Git Service

[Refactor] #2124 Changed struct object_type to class ObjectType
[hengbandforosx/hengbandosx.git] / src / object-hook / hook-perception.cpp
index e854cf0..78c3660 100644 (file)
@@ -10,7 +10,7 @@
  * @param o_ptr 判定するアイテムの情報参照ポインタ
  * @return 並ならばTRUEを返す
  */
-bool object_is_nameless_weapon_armour(const object_type *o_ptr)
+bool object_is_nameless_weapon_armour(const ObjectType *o_ptr)
 {
     /* Require weapon or armour */
     if (!o_ptr->is_weapon_armour_ammo())
@@ -28,7 +28,7 @@ bool object_is_nameless_weapon_armour(const object_type *o_ptr)
  * @param o_ptr 判定するアイテムの情報参照ポインタ
  * @return 実際に未鑑定ならばTRUEを返す
  */
-bool object_is_not_identified(const object_type *o_ptr)
+bool object_is_not_identified(const ObjectType *o_ptr)
 {
     return !o_ptr->is_known();
 }
@@ -38,7 +38,7 @@ bool object_is_not_identified(const object_type *o_ptr)
  * @param o_ptr 判定するアイテムの情報参照ポインタ
  * @return 実際に未鑑定の武器防具ならばTRUEを返す
  */
-bool object_is_not_identified_weapon_armor(const object_type *o_ptr)
+bool object_is_not_identified_weapon_armor(const ObjectType *o_ptr)
 {
     if (!object_is_not_identified(o_ptr))
         return false;
@@ -51,7 +51,7 @@ bool object_is_not_identified_weapon_armor(const object_type *o_ptr)
  * @param o_ptr 判定するアイテムの情報参照ポインタ
  * @return 実際に未*鑑定*ならばTRUEを返す
  */
-bool object_is_not_fully_identified(const object_type *o_ptr)
+bool object_is_not_fully_identified(const ObjectType *o_ptr)
 {
     return !o_ptr->is_known() || !o_ptr->is_fully_known();
 }
@@ -61,7 +61,7 @@ bool object_is_not_fully_identified(const object_type *o_ptr)
  * @param o_ptr 判定するアイテムの情報参照ポインタ
  * @return 実際に未*鑑定*の武器防具ならばTRUEを返す
  */
-bool object_is_not_fully_identified_weapon_armour(const object_type *o_ptr)
+bool object_is_not_fully_identified_weapon_armour(const ObjectType *o_ptr)
 {
     if (!object_is_not_fully_identified(o_ptr))
         return false;